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.

See Also:
Serialized Form

Constructor Summary
BaseItemAccessBean()
          constructor
BaseItemAccessBean(javax.ejb.EJBObject o)
          constructor
BaseItemAccessBean(java.lang.Long arg0, java.lang.String arg1, java.lang.String arg2)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
  BaseItemAccessBean findByMemberIdAndPartNumber(java.lang.Long arg0, java.lang.String arg1)           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 provides access to the BASEITEM.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
 void setBaseItemId(java.lang.String newValue)
          This method provides access to the BASEITEM.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
 void setInitKey_baseItemId(java.lang.String newValue)
          Set the primary key for this object
 void setItemTypeId(java.lang.String newValue)
          This method provides access to the BASEITEM.ITEMTYPE_ID column of DB2 type CHAR(4) NOT NULL.
 void setLastupdate(java.lang.String newValue)
          This method provides access to the BASEITEM.LASTUPDATE column of DB2 type TIMESTAMP.
 void setLastupdate(java.sql.Timestamp newValue)
          This method provides access to the BASEITEM.LASTUPDATE column of DB2 type TIMESTAMP.
 void setMarkForDelete(java.lang.Integer newValue)
          This method provides access to the BASEITEM.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setMarkForDelete(java.lang.String newValue)
          This method provides access to the BASEITEM.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setMemberId(java.lang.Long newValue)
          This method provides access to the BASEITEM.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setMemberId(java.lang.String newValue)
          This method provides access to the BASEITEM.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setPartnumber(java.lang.String newValue)
          This method provides access to the BASEITEM.PARTNUMBER column of DB2 type VARCHAR(64) NOT NULL.
 void setQuantityMeasure(java.lang.String newValue)
          This method provides access to the BASEITEM.QUANTITYMEASURE column of DB2 type CHAR(16) NOT NULL DEFAULT 'C62'.
 void setQuantityMultiple(java.lang.Double newValue)
          This method provides access to the BASEITEM.QUANTITYMULTIPLE column of DB2 type DOUBLE NOT NULL DEFAULT 1.0.
 void setQuantityMultiple(java.lang.String newValue)
          This method provides access to the BASEITEM.QUANTITYMULTIPLE column of DB2 type DOUBLE NOT NULL DEFAULT 1.0.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseItemAccessBean

public BaseItemAccessBean()
constructor

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 arg0,
                          java.lang.String arg1,
                          java.lang.String arg2)
                   throws javax.naming.NamingException,
                          javax.ejb.CreateException,
                          java.rmi.RemoteException,
                          javax.ejb.FinderException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.String
arg2 - java.lang.String
Throws:
javax.naming.NamingException
javax.ejb.CreateException
java.rmi.RemoteException
javax.ejb.FinderException
Method Detail

findByMemberIdAndPartNumber

public BaseItemAccessBean findByMemberIdAndPartNumber(java.lang.Long arg0,
                                                      java.lang.String arg1)
                                               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 = ?

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 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:
setPartnumber in interface BaseItemAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

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 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:
setItemTypeId in interface BaseItemAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

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 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:
setLastupdate in interface BaseItemAccessBeanData
Parameters:
newValue - String
Returns:
void

setLastupdate

public void setLastupdate(java.sql.Timestamp newValue)

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.

Parameters:
newValue - java.sql.Timestamp
Returns:
void

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 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:
setBaseItemId in interface BaseItemAccessBeanData
Parameters:
newValue - String
Returns:
void

setBaseItemId

public void setBaseItemId(java.lang.Long newValue)

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.

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

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 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:
setMarkForDelete in interface BaseItemAccessBeanData
Parameters:
newValue - String
Returns:
void

setMarkForDelete

public void setMarkForDelete(java.lang.Integer newValue)

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

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

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 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:
setQuantityMultiple in interface BaseItemAccessBeanData
Parameters:
newValue - String
Returns:
void

setQuantityMultiple

public void setQuantityMultiple(java.lang.Double newValue)

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.

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

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 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:
setMemberId in interface BaseItemAccessBeanData
Parameters:
newValue - String
Returns:
void

setMemberId

public void setMemberId(java.lang.Long newValue)

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.

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

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 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:
setQuantityMeasure in interface BaseItemAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void