com.ibm.commerce.inventory.objects
Class StoreItemAccessBean

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

public class StoreItemAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements StoreItemAccessBeanData

Each row of this table contains attributes that affect how a particular Store allocates inventory for the specified items of a particular Base Item. If there is no row for the Store, then the row for its Store Group is used. This access bean corresponds to the database table 'STOREITEM'.

See Also:
Serialized Form

Constructor Summary
StoreItemAccessBean()
Zero argument constructor used to initialize the access bean.
StoreItemAccessBean(javax.ejb.EJBObject o)
constructor
StoreItemAccessBean(java.lang.Long arg0, java.lang.Integer arg1)
constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByForeignSystem(java.lang.Long arg0)
java.util.Enumeration findByStoreId(java.lang.Long aStoreId) Retrieves the attributes that affect how a particular Store allocates inventory for the specified STOREENT_ID The SQL query used to fetch the requested row from the STOREITEM table is:
SELECT * FROM STOREITEM T1 WHERE T1.STOREENT_ID = ?
java.lang.String getBackOrderable()
This method provides access to the STOREITEM.BACKORDERABLE column of DB2 type CHAR(1) NOT NULL DEFAULT 'Y'.
java.lang.String getBaseItemId()
This method provides access to the STOREITEM.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getBaseItemIdInEJBType()
This method provides access to the STOREITEM.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getCreditable()
This method provides access to the STOREITEM.CREDITABLE column of DB2 type CHAR(1) NOT NULL DEFAULT 'Y'.
java.lang.String getForceBackOrder()
This method provides access to the STOREITEM.FORCEBACKORDER column of DB2 type CHAR(1) NOT NULL DEFAULT 'N'.
java.lang.String getForeignSKU()
This method provides access to the STOREITEM.FOREIGNSKU column of DB2 type CHAR(20).
java.lang.String getForeignSystem()
This method provides access to the STOREITEM.FOREIGNSYSTEM column of DB2 type BIGINT.
java.lang.Long getForeignSystemInEJBType()
This method provides access to the STOREITEM.FOREIGNSYSTEM column of DB2 type BIGINT.
java.lang.String getLastupdate()
This method provides access to the STOREITEM.LASTUPDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getLastupdateInEJBType()
This method provides access to the STOREITEM.LASTUPDATE column of DB2 type TIMESTAMP.
java.lang.String getMinimumQtyForSplit()
This method provides access to the STOREITEM.MINQTYFORSPLIT column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getMinimumQtyForSplitInEJBType()
This method provides access to the STOREITEM.MINQTYFORSPLIT column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getReleaseSeparately()
This method provides access to the STOREITEM.RELEASESEPARATELY column of DB2 type CHAR(1) NOT NULL DEFAULT 'N'.
java.lang.String getReturnNotDesired()
This method provides access to the STOREITEM.RETURNNOTDESIRED column of DB2 type CHAR(1) NOT NULL DEFAULT 'N'.
java.lang.String getStoreentId()
This method provides access to the STOREITEM.STOREENT_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getStoreentIdInEJBType()
This method provides access to the STOREITEM.STOREENT_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getTrackInventory()
This method provides access to the STOREITEM.TRACKINVENTORY column of DB2 type CHAR(1) NOT NULL DEFAULT 'Y'.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setBackOrderable(java.lang.String newValue)
This method accesses a non-CMP field
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 setCreditable(java.lang.String newValue)
This method accesses a non-CMP field
void setForceBackOrder(java.lang.String newValue)
This method accesses a non-CMP field
void setforeignSKU(java.lang.String newValue)
This method accesses a non-CMP field
void setForeignSystem(java.lang.Long newValue)
This method accesses a non-CMP field
void setForeignSystem(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 setInitKey_storeentId(java.lang.String newValue)
Set the primary key for this object
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 setMinimumQtyForSplit(java.lang.Integer newValue)
This method accesses a non-CMP field
void setMinimumQtyForSplit(java.lang.String newValue)
This method accesses a non-CMP field
void setReleaseSeparately(java.lang.String newValue)
This method accesses a non-CMP field
void setReturnNotDesired(java.lang.String newValue)
This method accesses a non-CMP field
void setStoreentId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setStoreentId(java.lang.String newValue)
This method accesses a non-CMP field
void setTrackInventory(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

StoreItemAccessBean

public StoreItemAccessBean()
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.StoreItem com.ibm.commerce.inventory.objimpl.StoreItemHomeBase.findByPrimaryKey(com.ibm.commerce.inventory.objects.StoreItemKey) 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 ) setInitKey_storeentId( java.lang.Integer )

StoreItemAccessBean

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

StoreItemAccessBean

public StoreItemAccessBean(java.lang.Long arg0,
                           java.lang.Integer arg1)
                    throws javax.naming.NamingException,
                           javax.ejb.CreateException,
                           java.rmi.RemoteException,
                           javax.ejb.FinderException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.Integer
Throws:
javax.naming.NamingException
javax.ejb.CreateException
java.rmi.RemoteException
javax.ejb.FinderException
Method Detail

findByForeignSystem

public java.util.Enumeration findByForeignSystem(java.lang.Long arg0)
                                          throws java.rmi.RemoteException,
                                                 javax.ejb.FinderException,
                                                 javax.naming.NamingException
Parameters:
arg0 - java.lang.Long
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

findByStoreId

public java.util.Enumeration findByStoreId(java.lang.Long aStoreId)
                                    throws java.rmi.RemoteException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException

Retrieves the attributes that affect how a particular Store allocates inventory for the specified STOREENT_ID
The SQL query used to fetch the requested row from the
STOREITEM table is:
SELECT * FROM STOREITEM T1 WHERE T1.STOREENT_ID = ?

Parameters:
aStoreId - - java.lang.Long
Returns:
java.util.Enumeration
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

setInitKey_storeentId

public void setInitKey_storeentId(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

getForeignSystem

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

This method provides access to the STOREITEM.FOREIGNSYSTEM column of DB2 type BIGINT.

The following is a description of this column:

Customizable.

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

getForeignSystemInEJBType

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

This method provides access to the STOREITEM.FOREIGNSYSTEM column of DB2 type BIGINT.

The following is a description of this column:

Customizable.

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

setForeignSystem

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

setForeignSystem

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

getForceBackOrder

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

This method provides access to the STOREITEM.FORCEBACKORDER column of DB2 type CHAR(1) NOT NULL DEFAULT 'N'.

The following is a description of this column:

Can be used to temporarily suspend allocation of specified items for this Base Item.&l

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

setForceBackOrder

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

getTrackInventory

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

This method provides access to the STOREITEM.TRACKINVENTORY column of DB2 type CHAR(1) NOT NULL DEFAULT 'Y'.

The following is a description of this column:

Controls whether or not inventory is tracked in the RECEIPT table.&l

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

setTrackInventory

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

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 STOREITEM.LASTUPDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The most recent time this row was updated.

Specified by:
getLastupdate in interface StoreItemAccessBeanData
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 STOREITEM.LASTUPDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The most recent time this row 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 StoreItemAccessBeanData

setLastupdate

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

getBackOrderable

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

This method provides access to the STOREITEM.BACKORDERABLE column of DB2 type CHAR(1) NOT NULL DEFAULT 'Y'.

The following is a description of this column:

Can be used to indicate that specified items for this Base Item cannot be backordered.&l

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

setBackOrderable

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

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 STOREITEM.BASEITEM_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Base Item.

Specified by:
getBaseItemId in interface StoreItemAccessBeanData
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 STOREITEM.BASEITEM_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Base Item.

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 StoreItemAccessBeanData

setBaseItemId

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

getStoreentId

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

This method provides access to the STOREITEM.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The Store or Store Group for this row. Attributes in this row apply to the specified Store, or to Stores in the specified Store Group that do not have their own row.

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

getStoreentIdInEJBType

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

This method provides access to the STOREITEM.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The Store or Store Group for this row. Attributes in this row apply to the specified Store, or to Stores in the specified Store Group that do not have their own row.

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

setStoreentId

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

setStoreentId

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

getReturnNotDesired

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

This method provides access to the STOREITEM.RETURNNOTDESIRED column of DB2 type CHAR(1) NOT NULL DEFAULT 'N'.

The following is a description of this column:

Item return not wanted, even if customer is willing or able to return it. For example, perishable food items. &l

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

setReturnNotDesired

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

getCreditable

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

This method provides access to the STOREITEM.CREDITABLE column of DB2 type CHAR(1) NOT NULL DEFAULT 'Y'.

The following is a description of this column:

Whether the merchant will, without an override, issue a credit for this item.&l

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

setCreditable

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

getForeignSKU

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

This method provides access to the STOREITEM.FOREIGNSKU column of DB2 type CHAR(20).

The following is a description of this column:

Customizable.

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

setforeignSKU

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

getMinimumQtyForSplit

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

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

The following is a description of this column:

Used by the default AllocateInventory task command implementation. Order Items will not be automatically split during inventory allocation if the remaining unallocated quantity in the new Order Item would be less than the specified minimum quantity.

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

getMinimumQtyForSplitInEJBType

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

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

The following is a description of this column:

Used by the default AllocateInventory task command implementation. Order Items will not be automatically split during inventory allocation if the remaining unallocated quantity in the new Order Item would be less than the specified minimum quantity.

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

setMinimumQtyForSplit

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

setMinimumQtyForSplit

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

getReleaseSeparately

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

This method provides access to the STOREITEM.RELEASESEPARATELY column of DB2 type CHAR(1) NOT NULL DEFAULT 'N'.

The following is a description of this column:

Controls how Order Items for specified items for this Base Item are released.&l

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

setReleaseSeparately

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

Feedback