com.ibm.commerce.inventory.objects
Class AvailableReceiptAccessBean

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

public class AvailableReceiptAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements AvailableReceiptAccessBeanData

Defines which DistributionArrangements have access to received inventory. This access bean corresponds to the database table 'RCPTAVAIL'.

See Also:
Serialized Form

Constructor Summary
AvailableReceiptAccessBean()
Zero argument constructor used to initialize the access bean.
AvailableReceiptAccessBean(javax.ejb.EJBObject o)
constructor
AvailableReceiptAccessBean(java.lang.Long newReceiptId, java.lang.Long newDistArrangId)
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 findByReceiptId(java.lang.Long receiptId) Retrieves the AvailableReceiptAccessBean representing the receipts available with the specified receipt ID The SQL query used to fetch the requested row from the RCPTAVAIL table is:
SELECT * FROM RCPTAVAIL T1 WHERE T1.RECEIPT_ID = ?
java.lang.String getDistArrangId()
This method provides access to the RCPTAVAIL.DISTARRANG_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getDistArrangIdInEJBType()
This method provides access to the RCPTAVAIL.DISTARRANG_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getLastUpdate()
This method provides access to the RCPTAVAIL.LASTUPDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getLastUpdateInEJBType()
This method provides access to the RCPTAVAIL.LASTUPDATE column of DB2 type TIMESTAMP.
java.lang.String getPrecedence()
This method provides access to the RCPTAVAIL.PRECEDENCE column of DB2 type INTEGER.
java.lang.Integer getPrecedenceInEJBType()
This method provides access to the RCPTAVAIL.PRECEDENCE column of DB2 type INTEGER.
java.lang.String getRcptAvailId()
This method provides access to the RCPTAVAIL.RCPTAVAIL_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getRcptAvailIdInEJBType()
This method provides access to the RCPTAVAIL.RCPTAVAIL_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getReceiptId()
This method provides access to the RCPTAVAIL.RECEIPT_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getReceiptIdInEJBType()
This method provides access to the RCPTAVAIL.RECEIPT_ID column of DB2 type BIGINT NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setDistArrangId(java.lang.Long newValue)
This method accesses a non-CMP field
void setDistArrangId(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_rcptAvailId(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 setPrecedence(java.lang.Integer newValue)
This method accesses a non-CMP field
void setPrecedence(java.lang.String newValue)
This method accesses a non-CMP field
void setRcptAvailId(java.lang.Long newValue)
This method accesses a non-CMP field
void setRcptAvailId(java.lang.String newValue)
This method accesses a non-CMP field
void setReceiptId(java.lang.Long newValue)
This method accesses a non-CMP field
void setReceiptId(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

AvailableReceiptAccessBean

public AvailableReceiptAccessBean()
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.AvailableReceipt com.ibm.commerce.inventory.objimpl.AvailableReceiptHomeBase.findByPrimaryKey(com.ibm.commerce.inventory.objects.AvailableReceiptKey) 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_rcptAvailId( java.lang.Long )

AvailableReceiptAccessBean

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

AvailableReceiptAccessBean

public AvailableReceiptAccessBean(java.lang.Long newReceiptId,
                                  java.lang.Long newDistArrangId)
                           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:
newReceiptId - - java.lang.Long
newDistArrangId - - java.lang.Long
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

findByReceiptId

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

Retrieves the AvailableReceiptAccessBean representing the receipts available with the specified receipt ID
The SQL query used to fetch the requested row from the
RCPTAVAIL table is:
SELECT * FROM RCPTAVAIL T1 WHERE T1.RECEIPT_ID = ?

Parameters:
receiptId - - 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

setInitKey_rcptAvailId

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

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

The following is a description of this column:

Timestamp of last update.

Specified by:
getLastUpdate in interface AvailableReceiptAccessBeanData
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 RCPTAVAIL.LASTUPDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

Timestamp of last update.

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 AvailableReceiptAccessBeanData

setLastUpdate

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

getDistArrangId

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

This method provides access to the RCPTAVAIL.DISTARRANG_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Indicates the DistributionArrangement under which this receipt is available.

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

getDistArrangIdInEJBType

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

This method provides access to the RCPTAVAIL.DISTARRANG_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Indicates the DistributionArrangement under which this receipt is available.

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

setDistArrangId

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

setDistArrangId

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

getRcptAvailId

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

This method provides access to the RCPTAVAIL.RCPTAVAIL_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Unique identifier.

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

getRcptAvailIdInEJBType

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

This method provides access to the RCPTAVAIL.RCPTAVAIL_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Unique identifier.

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

setRcptAvailId

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

setRcptAvailId

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

getReceiptId

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

This method provides access to the RCPTAVAIL.RECEIPT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Indicates which receipt is available under the DistributionArrangement.

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

getReceiptIdInEJBType

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

This method provides access to the RCPTAVAIL.RECEIPT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Indicates which receipt is available under the DistributionArrangement.

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

setReceiptId

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

setReceiptId

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

getPrecedence

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

This method provides access to the RCPTAVAIL.PRECEDENCE column of DB2 type INTEGER.

The following is a description of this column:

Represents the order in which inventory should be picked. Picking starts with the lowest number first.

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

getPrecedenceInEJBType

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

This method provides access to the RCPTAVAIL.PRECEDENCE column of DB2 type INTEGER.

The following is a description of this column:

Represents the order in which inventory should be picked. Picking starts with the lowest number first.

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

setPrecedence

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

setPrecedence

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

Feedback