com.ibm.commerce.inventory.objects
Class BaseItemAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.inventory.objects.BaseItemAccessBean
All Implemented Interfaces:
BaseItemAccessBeanData

public class BaseItemAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements BaseItemAccessBeanData

BaseItems represent a general family of goods with a common name and description. BaseItems are used exclusively for fulfillment. Each CatalogEntry that represents a Product in the catalog has a corresponding BaseItem for fulfillment purposes. This access bean corresponds to the database table 'BASEITEM'.

See Also:
Serialized Form

Constructor Summary
BaseItemAccessBean()
Zero argument constructor used to initialize the access bean.
BaseItemAccessBean(javax.ejb.EJBObject o)
constructor
BaseItemAccessBean(java.lang.Long newMemberId, java.lang.String newPartnumber, java.lang.String newItemTypeId)
Maps to a corresponding ejbCreate method in the home interface of the EJB
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
BaseItemAccessBean findByMemberIdAndPartNumber(java.lang.Long memberId, java.lang.String partNumber) Retrieves the BaseItemAccessBean representing the baseitem information with the specified PARTNUMBER and MEMBER_ID The SQL query used to fetch the requested row from the BASEITEM table is:
SELECT * FROM BASEITEM T1 WHERE T1.MEMBER_ID = ? AND T1.PARTNUMBER = ?
java.lang.String getBaseItemId()
This method provides access to the BASEITEM.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getBaseItemIdInEJBType()
This method provides access to the BASEITEM.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getItemTypeId()
This method provides access to the BASEITEM.ITEMTYPE_ID column of DB2 type CHAR(4) NOT NULL.
java.lang.String getLastupdate()
This method provides access to the BASEITEM.LASTUPDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getLastupdateInEJBType()
This method provides access to the BASEITEM.LASTUPDATE column of DB2 type TIMESTAMP.
java.lang.String getMarkForDelete()
This method provides access to the BASEITEM.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getMarkForDeleteInEJBType()
This method provides access to the BASEITEM.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getMemberId()
This method provides access to the BASEITEM.MEMBER_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getMemberIdInEJBType()
This method provides access to the BASEITEM.MEMBER_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getPartnumber()
This method provides access to the BASEITEM.PARTNUMBER column of DB2 type VARCHAR(64) NOT NULL.
java.lang.String getQuantityMeasure()
This method provides access to the BASEITEM.QUANTITYMEASURE column of DB2 type CHAR(16) NOT NULL DEFAULT 'C62'.
java.lang.String getQuantityMultiple()
This method provides access to the BASEITEM.QUANTITYMULTIPLE column of DB2 type DOUBLE NOT NULL DEFAULT 1.0.
java.lang.Double getQuantityMultipleInEJBType()
This method provides access to the BASEITEM.QUANTITYMULTIPLE column of DB2 type DOUBLE NOT NULL DEFAULT 1.0.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setBaseItemId(java.lang.Long newValue)
This method accesses a non-CMP field
void setBaseItemId(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_baseItemId(java.lang.String newValue)
Set the primary key for this object
void setItemTypeId(java.lang.String newValue)
This method accesses a non-CMP field
void setLastupdate(java.lang.String newValue)
This method accesses a non-CMP field
void setLastupdate(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setMarkForDelete(java.lang.Integer newValue)
This method accesses a non-CMP field
void setMarkForDelete(java.lang.String newValue)
This method accesses a non-CMP field
void setMemberId(java.lang.Long newValue)
This method accesses a non-CMP field
void setMemberId(java.lang.String newValue)
This method accesses a non-CMP field
void setPartnumber(java.lang.String newValue)
This method accesses a non-CMP field
void setQuantityMeasure(java.lang.String newValue)
This method accesses a non-CMP field
void setQuantityMultiple(java.lang.Double newValue)
This method accesses a non-CMP field
void setQuantityMultiple(java.lang.String newValue)
This method accesses a non-CMP field
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

BaseItemAccessBean

public BaseItemAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.inventory.objects.BaseItem com.ibm.commerce.inventory.objimpl.BaseItemHomeBase.findByPrimaryKey(com.ibm.commerce.inventory.objects.BaseItemKey) throws java.rmi.RemoteException,javax.ejb.FinderException The home interface method properties need to be set by calling the following setter methods before calling any business methods: setInitKey_baseItemId( java.lang.Long )

BaseItemAccessBean

public BaseItemAccessBean(javax.ejb.EJBObject o)
                   throws java.rmi.RemoteException
constructor
Parameters:
o - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException

BaseItemAccessBean

public BaseItemAccessBean(java.lang.Long newMemberId,
                          java.lang.String newPartnumber,
                          java.lang.String newItemTypeId)
                   throws javax.naming.NamingException,
                          javax.ejb.CreateException,
                          java.rmi.RemoteException,
                          javax.ejb.FinderException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
newMemberId - - java.lang.Long
newPartnumber - - java.lang.String
newItemTypeId - - java.lang.String
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
Method Detail

findByMemberIdAndPartNumber

public BaseItemAccessBean findByMemberIdAndPartNumber(java.lang.Long memberId,
                                                      java.lang.String partNumber)
                                               throws java.rmi.RemoteException,
                                                      javax.ejb.FinderException,
                                                      javax.naming.NamingException

Retrieves the BaseItemAccessBean representing the baseitem information with the specified PARTNUMBER and MEMBER_ID
The SQL query used to fetch the requested row from the BASEITEM table is:
SELECT * FROM BASEITEM T1 WHERE T1.MEMBER_ID = ? AND T1.PARTNUMBER = ?

Parameters:
memberId - - java.lang.Long
partNumber - - java.lang.String
Returns:
com.ibm.commerce.inventory.objects.BaseItemAccessBean
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setInitKey_baseItemId

public void setInitKey_baseItemId(java.lang.String newValue)

Set the primary key for this object

Parameters:
newValue - java.lang.String
Returns:
void

defaultJNDIName

protected java.lang.String defaultJNDIName()
Returns:
String

instantiateEJB

protected void instantiateEJB()
                       throws java.rmi.RemoteException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException
Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

instantiateEJBByPrimaryKey

protected boolean instantiateEJBByPrimaryKey()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.naming.NamingException
Returns:
boolean
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.naming.NamingException

commitCopyHelper

public void commitCopyHelper()
                      throws java.rmi.RemoteException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException

Update(flush) data to the EJBObject (persistent storage).

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getPartnumber

public java.lang.String getPartnumber()
                               throws java.rmi.RemoteException,
                                      javax.ejb.CreateException,
                                      javax.ejb.FinderException,
                                      javax.naming.NamingException

This method provides access to the BASEITEM.PARTNUMBER column of DB2 type VARCHAR(64) NOT NULL.

The following is a description of this column:

Uniquely identifies a BaseItem for a particular owner.

Specified by:
getPartnumber in interface BaseItemAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setPartnumber

public void setPartnumber(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setPartnumber in interface BaseItemAccessBeanData

getItemTypeId

public java.lang.String getItemTypeId()
                               throws java.rmi.RemoteException,
                                      javax.ejb.CreateException,
                                      javax.ejb.FinderException,
                                      javax.naming.NamingException

This method provides access to the BASEITEM.ITEMTYPE_ID column of DB2 type CHAR(4) NOT NULL.

The following is a description of this column:

The type of BaseItem.

Specified by:
getItemTypeId in interface BaseItemAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setItemTypeId

public void setItemTypeId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setItemTypeId in interface BaseItemAccessBeanData

getLastupdate

public java.lang.String getLastupdate()
                               throws java.rmi.RemoteException,
                                      javax.ejb.CreateException,
                                      javax.ejb.FinderException,
                                      javax.naming.NamingException

This method provides access to the BASEITEM.LASTUPDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The last time this BaseItem was updated.

Specified by:
getLastupdate in interface BaseItemAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getLastupdateInEJBType

public java.sql.Timestamp getLastupdateInEJBType()
                                          throws java.rmi.RemoteException,
                                                 javax.ejb.CreateException,
                                                 javax.ejb.FinderException,
                                                 javax.naming.NamingException

This method provides access to the BASEITEM.LASTUPDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The last time this BaseItem was updated.

Returns:
java.sql.Timestamp
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setLastupdate

public void setLastupdate(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setLastupdate in interface BaseItemAccessBeanData

setLastupdate

public void setLastupdate(java.sql.Timestamp newValue)
This method accesses a non-CMP field

getBaseItemId

public java.lang.String getBaseItemId()
                               throws java.rmi.RemoteException,
                                      javax.ejb.CreateException,
                                      javax.ejb.FinderException,
                                      javax.naming.NamingException

This method provides access to the BASEITEM.BASEITEM_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

Specified by:
getBaseItemId in interface BaseItemAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getBaseItemIdInEJBType

public java.lang.Long getBaseItemIdInEJBType()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.ejb.FinderException,
                                             javax.naming.NamingException

This method provides access to the BASEITEM.BASEITEM_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

Returns:
java.lang.Long
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setBaseItemId

public void setBaseItemId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setBaseItemId in interface BaseItemAccessBeanData

setBaseItemId

public void setBaseItemId(java.lang.Long newValue)
This method accesses a non-CMP field

getMarkForDelete

public java.lang.String getMarkForDelete()
                                  throws java.rmi.RemoteException,
                                         javax.ejb.CreateException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException

This method provides access to the BASEITEM.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates whether a BaseItem has been marked for deletion:&l

Specified by:
getMarkForDelete in interface BaseItemAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getMarkForDeleteInEJBType

public java.lang.Integer getMarkForDeleteInEJBType()
                                            throws java.rmi.RemoteException,
                                                   javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException

This method provides access to the BASEITEM.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates whether a BaseItem has been marked for deletion:&l

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setMarkForDelete

public void setMarkForDelete(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setMarkForDelete in interface BaseItemAccessBeanData

setMarkForDelete

public void setMarkForDelete(java.lang.Integer newValue)
This method accesses a non-CMP field

getQuantityMultiple

public java.lang.String getQuantityMultiple()
                                     throws java.rmi.RemoteException,
                                            javax.ejb.CreateException,
                                            javax.ejb.FinderException,
                                            javax.naming.NamingException

This method provides access to the BASEITEM.QUANTITYMULTIPLE column of DB2 type DOUBLE NOT NULL DEFAULT 1.0.

The following is a description of this column:

Amounts of this BaseItem are measured in integral units. QUANTITYMULTIPLE, along with QUANTITYMEASURE, indicates how much each integral unit represents. For example, textiles might be measured in integral units each representing one quarter of an inch.

Specified by:
getQuantityMultiple in interface BaseItemAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getQuantityMultipleInEJBType

public java.lang.Double getQuantityMultipleInEJBType()
                                              throws java.rmi.RemoteException,
                                                     javax.ejb.CreateException,
                                                     javax.ejb.FinderException,
                                                     javax.naming.NamingException

This method provides access to the BASEITEM.QUANTITYMULTIPLE column of DB2 type DOUBLE NOT NULL DEFAULT 1.0.

The following is a description of this column:

Amounts of this BaseItem are measured in integral units. QUANTITYMULTIPLE, along with QUANTITYMEASURE, indicates how much each integral unit represents. For example, textiles might be measured in integral units each representing one quarter of an inch.

Returns:
java.lang.Double
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setQuantityMultiple

public void setQuantityMultiple(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setQuantityMultiple in interface BaseItemAccessBeanData

setQuantityMultiple

public void setQuantityMultiple(java.lang.Double newValue)
This method accesses a non-CMP field

getMemberId

public java.lang.String getMemberId()
                             throws java.rmi.RemoteException,
                                    javax.ejb.CreateException,
                                    javax.ejb.FinderException,
                                    javax.naming.NamingException

This method provides access to the BASEITEM.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The owner of this BaseItem.

Specified by:
getMemberId in interface BaseItemAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getMemberIdInEJBType

public java.lang.Long getMemberIdInEJBType()
                                    throws java.rmi.RemoteException,
                                           javax.ejb.CreateException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException

This method provides access to the BASEITEM.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The owner of this BaseItem.

Returns:
java.lang.Long
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setMemberId

public void setMemberId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setMemberId in interface BaseItemAccessBeanData

setMemberId

public void setMemberId(java.lang.Long newValue)
This method accesses a non-CMP field

getQuantityMeasure

public java.lang.String getQuantityMeasure()
                                    throws java.rmi.RemoteException,
                                           javax.ejb.CreateException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException

This method provides access to the BASEITEM.QUANTITYMEASURE column of DB2 type CHAR(16) NOT NULL DEFAULT 'C62'.

The following is a description of this column:

The unit of measure for QUANTITYMULTIPLE. For example, to represent one quarter of an inch, QUANTITYMULTIPLE would be 0.25, and QUANTITYMEASURE would indicate the QTYUNIT that represents inches (normally INH).

Specified by:
getQuantityMeasure in interface BaseItemAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setQuantityMeasure

public void setQuantityMeasure(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setQuantityMeasure in interface BaseItemAccessBeanData

Feedback