com.ibm.commerce.inventory.objects
Class BackOrderAllocationAccessBean

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

public class BackOrderAllocationAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements BackOrderAllocationAccessBeanData

Each row contains information about the quantity required for this backordered order item and the amount of available inventory allocated to this item. This access bean corresponds to the database table 'BKORDALLOC'.

See Also:
Serialized Form

Constructor Summary
BackOrderAllocationAccessBean()
Zero argument constructor used to initialize the access bean.
BackOrderAllocationAccessBean(javax.ejb.EJBObject o)
constructor
BackOrderAllocationAccessBean(java.lang.Long newItemSpcId, java.lang.Long newOrderItemsId, java.lang.Integer newBkOrdNum)
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()
java.util.Enumeration findByItemSpcId(java.lang.Long itemSpcId) Retrieves the BackOrderAllocationAccessBean representing the information about the quantity required for a backordered order item and the amount of available inventory allocated to a specified ITEMSPC_ID The SQL query used to fetch the requested row from the BKORDALLOC table is:
SELECT * FROM BKORDALLOC T1 WHERE T1.ITEMSPC_ID = ?
java.lang.String getBkOrdNum()
This method provides access to the BKORDALLOC.BKORDNUM column of DB2 type INTEGER NOT NULL.
java.lang.Integer getBkOrdNumInEJBType()
This method provides access to the BKORDALLOC.BKORDNUM column of DB2 type INTEGER NOT NULL.
java.lang.String getItemSpcId()
This method provides access to the BKORDALLOC.ITEMSPC_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getItemSpcIdInEJBType()
This method provides access to the BKORDALLOC.ITEMSPC_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getLastupdate()
This method provides access to the BKORDALLOC.LASTUPDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getLastupdateInEJBType()
This method provides access to the BKORDALLOC.LASTUPDATE column of DB2 type TIMESTAMP.
java.lang.String getOrderItemsId()
This method provides access to the BKORDALLOC.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getOrderItemsIdInEJBType()
This method provides access to the BKORDALLOC.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getQtyAllocated()
This method provides access to the BKORDALLOC.QTYALLOCATED column of DB2 type INTEGER.
java.lang.Integer getQtyAllocatedInEJBType()
This method provides access to the BKORDALLOC.QTYALLOCATED column of DB2 type INTEGER.
java.lang.String getQtyAvailable()
This method provides access to the BKORDALLOC.QTYAVAILABLE column of DB2 type INTEGER.
java.lang.Integer getQtyAvailableInEJBType()
This method provides access to the BKORDALLOC.QTYAVAILABLE column of DB2 type INTEGER.
java.lang.String getQtyNeeded()
This method provides access to the BKORDALLOC.QTYNEEDED column of DB2 type INTEGER.
java.lang.Integer getQtyNeededInEJBType()
This method provides access to the BKORDALLOC.QTYNEEDED column of DB2 type INTEGER.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setBkOrdNum(java.lang.Integer newValue)
This method accesses a non-CMP field
void setBkOrdNum(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_bkOrdNum(java.lang.String newValue)
Set the primary key for this object
void setInitKey_orderItemsId(java.lang.String newValue)
Set the primary key for this object
void setItemSpcId(java.lang.Long newValue)
This method accesses a non-CMP field
void setItemSpcId(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 setOrderItemsId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrderItemsId(java.lang.String newValue)
This method accesses a non-CMP field
void setQtyAllocated(java.lang.Integer newValue)
This method accesses a non-CMP field
void setQtyAllocated(java.lang.String newValue)
This method accesses a non-CMP field
void setQtyAvailable(java.lang.Integer newValue)
This method accesses a non-CMP field
void setQtyAvailable(java.lang.String newValue)
This method accesses a non-CMP field
void setQtyNeeded(java.lang.Integer newValue)
This method accesses a non-CMP field
void setQtyNeeded(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

BackOrderAllocationAccessBean

public BackOrderAllocationAccessBean()
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.BackOrderAllocation com.ibm.commerce.inventory.objimpl.BackOrderAllocationHomeBase.findByPrimaryKey(com.ibm.commerce.inventory.objects.BackOrderAllocationKey) 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_orderItemsId( java.lang.Long ) setInitKey_bkOrdNum( java.lang.Integer )

BackOrderAllocationAccessBean

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

BackOrderAllocationAccessBean

public BackOrderAllocationAccessBean(java.lang.Long newItemSpcId,
                                     java.lang.Long newOrderItemsId,
                                     java.lang.Integer newBkOrdNum)
                              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:
newItemSpcId - - java.lang.Long
newOrderItemsId - - java.lang.Long
newBkOrdNum - - java.lang.Integer
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

findByItemSpcId

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

Retrieves the BackOrderAllocationAccessBean representing the information about the quantity required for a backordered order item and the amount of available inventory allocated to a specified ITEMSPC_ID
The SQL query used to fetch the requested row from the
BKORDALLOC table is:
SELECT * FROM BKORDALLOC T1 WHERE T1.ITEMSPC_ID = ?

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_orderItemsId

public void setInitKey_orderItemsId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_bkOrdNum

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

getOrderItemsId

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

This method provides access to the BKORDALLOC.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderItem that is backordered.

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

getOrderItemsIdInEJBType

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

This method provides access to the BKORDALLOC.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderItem that is backordered.

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

setOrderItemsId

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

setOrderItemsId

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

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

The following is a description of this column:

Timestamp of the last update to this order allocation.

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

The following is a description of this column:

Timestamp of the last update to this order allocation.

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 BackOrderAllocationAccessBeanData

setLastupdate

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

getQtyAllocated

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

This method provides access to the BKORDALLOC.QTYALLOCATED column of DB2 type INTEGER.

The following is a description of this column:

The quantity of available inventory that has been allocated to the backorder.

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

getQtyAllocatedInEJBType

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

This method provides access to the BKORDALLOC.QTYALLOCATED column of DB2 type INTEGER.

The following is a description of this column:

The quantity of available inventory that has been allocated to the backorder.

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

setQtyAllocated

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

setQtyAllocated

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

getItemSpcId

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

This method provides access to the BKORDALLOC.ITEMSPC_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

If the OrderItem is a kit, then the ITEMSPC_ID will be for the kit component. If the OrderItem is not a kit, then ITEMSPC_ID is the same as the ORDERITEMS.ITEMSPC_ID.

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

getItemSpcIdInEJBType

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

This method provides access to the BKORDALLOC.ITEMSPC_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

If the OrderItem is a kit, then the ITEMSPC_ID will be for the kit component. If the OrderItem is not a kit, then ITEMSPC_ID is the same as the ORDERITEMS.ITEMSPC_ID.

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

setItemSpcId

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

setItemSpcId

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

getQtyAvailable

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

This method provides access to the BKORDALLOC.QTYAVAILABLE column of DB2 type INTEGER.

The following is a description of this column:

The quantity of inventory available for this item, or QTYNEEDED, whichever is smaller.

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

getQtyAvailableInEJBType

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

This method provides access to the BKORDALLOC.QTYAVAILABLE column of DB2 type INTEGER.

The following is a description of this column:

The quantity of inventory available for this item, or QTYNEEDED, whichever is smaller.

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

setQtyAvailable

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

setQtyAvailable

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

getQtyNeeded

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

This method provides access to the BKORDALLOC.QTYNEEDED column of DB2 type INTEGER.

The following is a description of this column:

The quantity required for this component to fulfill the line item.

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

getQtyNeededInEJBType

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

This method provides access to the BKORDALLOC.QTYNEEDED column of DB2 type INTEGER.

The following is a description of this column:

The quantity required for this component to fulfill the line item.

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

setQtyNeeded

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

setQtyNeeded

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

getBkOrdNum

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

This method provides access to the BKORDALLOC.BKORDNUM column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

A number that uniquely identifies this backorder allocation along with its specified OrderItem.

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

getBkOrdNumInEJBType

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

This method provides access to the BKORDALLOC.BKORDNUM column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

A number that uniquely identifies this backorder allocation along with its specified OrderItem.

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

setBkOrdNum

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

setBkOrdNum

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

Feedback