com.ibm.commerce.ordermanagement.objects
Class ReturnReceiptAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.ordermanagement.objects.ReturnReceiptAccessBean
All Implemented Interfaces:
ReturnReceiptAccessBeanData

public class ReturnReceiptAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements ReturnReceiptAccessBeanData

This table stores the receipt record that indicates that a returned item, from a return merchandise authorization (RMAA), has been received and specifies information about the received items. This access bean corresponds to the database table 'RTNRECEIPT'.

See Also:
Serialized Form

Constructor Summary
ReturnReceiptAccessBean()
Zero argument constructor used to initialize the access bean.
ReturnReceiptAccessBean(javax.ejb.EJBObject o)
constructor
ReturnReceiptAccessBean(java.lang.Long newRmaId, java.lang.Long newVersionSpcId, java.lang.Long newRmaItemCmpId, java.sql.Timestamp newLastUpdate, java.lang.Integer newQuantity, java.sql.Timestamp newDateReceived)
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 findByItemComponent(java.lang.Long itemComp) Retrieves all the return receipts for a particular RMA item component. The SQL query used to fetch the requested row from the RTNRECEIPT table is:
SELECT * FROM RTNRECEIPT T1 WHERE T1.RMAITEMCMP_ID = ?
java.lang.String getDateReceived()
This method provides access to the RTNRECEIPT.DATERECEIVED column of DB2 type TIMESTAMP NOT NULL.
java.sql.Timestamp getDateReceivedInEJBType()
This method provides access to the RTNRECEIPT.DATERECEIVED column of DB2 type TIMESTAMP NOT NULL.
java.lang.String getDispositionedQty()
This method provides access to the RTNRECEIPT.DISPOSITIONEDQTY column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getDispositionedQtyInEJBType()
This method provides access to the RTNRECEIPT.DISPOSITIONEDQTY column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getLastUpdate()
This method provides access to the RTNRECEIPT.LASTUPDATE column of DB2 type TIMESTAMP NOT NULL.
java.sql.Timestamp getLastUpdateInEJBType()
This method provides access to the RTNRECEIPT.LASTUPDATE column of DB2 type TIMESTAMP NOT NULL.
java.lang.String getQuantity()
This method provides access to the RTNRECEIPT.QUANTITY column of DB2 type INTEGER NOT NULL.
java.lang.Integer getQuantityInEJBType()
This method provides access to the RTNRECEIPT.QUANTITY column of DB2 type INTEGER NOT NULL.
java.lang.String getRmaId()
This method provides access to the RTNRECEIPT.RMA_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getRmaIdInEJBType()
This method provides access to the RTNRECEIPT.RMA_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getRmaItemCmpId()
This method provides access to the RTNRECEIPT.RMAITEMCMP_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getRmaItemCmpIdInEJBType()
This method provides access to the RTNRECEIPT.RMAITEMCMP_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getRtnReceiptId()
This method provides access to the RTNRECEIPT.RTNRECEIPT_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getRtnReceiptIdInEJBType()
This method provides access to the RTNRECEIPT.RTNRECEIPT_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getVersionSpcId()
This method provides access to the RTNRECEIPT.VERSIONSPC_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getVersionSpcIdInEJBType()
This method provides access to the RTNRECEIPT.VERSIONSPC_ID column of DB2 type BIGINT NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setDateReceived(java.lang.String newValue)
This method accesses a non-CMP field
void setDateReceived(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setDispositionedQty(java.lang.Integer newValue)
This method accesses a non-CMP field
void setDispositionedQty(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_rtnReceiptId(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 setQuantity(java.lang.Integer newValue)
This method accesses a non-CMP field
void setQuantity(java.lang.String newValue)
This method accesses a non-CMP field
void setRmaId(java.lang.Long newValue)
This method accesses a non-CMP field
void setRmaId(java.lang.String newValue)
This method accesses a non-CMP field
void setRmaItemCmpId(java.lang.Long newValue)
This method accesses a non-CMP field
void setRmaItemCmpId(java.lang.String newValue)
This method accesses a non-CMP field
void setRtnReceiptId(java.lang.Long newValue)
This method accesses a non-CMP field
void setRtnReceiptId(java.lang.String newValue)
This method accesses a non-CMP field
void setVersionSpcId(java.lang.Long newValue)
This method accesses a non-CMP field
void setVersionSpcId(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

ReturnReceiptAccessBean

public ReturnReceiptAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.ordermanagement.objects.ReturnReceipt com.ibm.commerce.ordermanagement.objimpl.ReturnReceiptHomeBase.findByPrimaryKey(com.ibm.commerce.ordermanagement.objects.ReturnReceiptKey) 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_rtnReceiptId( java.lang.Long )

ReturnReceiptAccessBean

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

ReturnReceiptAccessBean

public ReturnReceiptAccessBean(java.lang.Long newRmaId,
                               java.lang.Long newVersionSpcId,
                               java.lang.Long newRmaItemCmpId,
                               java.sql.Timestamp newLastUpdate,
                               java.lang.Integer newQuantity,
                               java.sql.Timestamp newDateReceived)
                        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:
newRmaId - java.lang.Long RMA ID
newVersionSpcId - Specification ID java.lang.Long Version Specification ID
newRmaItemCmpId - java.lang.Long RMA Item Component ID
newLastUpdate - java.sql.Timestamp Last Update
newQuantity - java.lang.Integer Quantity
newDateReceived - java.sql.Timestamp Date Received
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

findByItemComponent

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

Retrieves all the return receipts for a particular RMA item component.
The SQL query used to fetch the requested row from the
RTNRECEIPT table is:
SELECT * FROM RTNRECEIPT T1 WHERE T1.RMAITEMCMP_ID = ?

Parameters:
itemComp - java.lang.Long Return Item Component ID
Returns:
An Enumeration of all the ReturnReceiptAccessBeans representing rows that match the search criteria.
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_rtnReceiptId

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

getQuantity

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

This method provides access to the RTNRECEIPT.QUANTITY column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Quantity in inventory units.

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

getQuantityInEJBType

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

This method provides access to the RTNRECEIPT.QUANTITY column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Quantity in inventory units.

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

setQuantity

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

setQuantity

public void setQuantity(java.lang.Integer 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 RTNRECEIPT.LASTUPDATE column of DB2 type TIMESTAMP NOT NULL.

The following is a description of this column:

The timestamp at which this record was last changed.

Specified by:
getLastUpdate in interface ReturnReceiptAccessBeanData
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 RTNRECEIPT.LASTUPDATE column of DB2 type TIMESTAMP NOT NULL.

The following is a description of this column:

The timestamp at which this record was last changed.

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 ReturnReceiptAccessBeanData

setLastUpdate

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

getRtnReceiptId

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

This method provides access to the RTNRECEIPT.RTNRECEIPT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

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

getRtnReceiptIdInEJBType

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

This method provides access to the RTNRECEIPT.RTNRECEIPT_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

setRtnReceiptId

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

setRtnReceiptId

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

getVersionSpcId

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

This method provides access to the RTNRECEIPT.VERSIONSPC_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reserved for IBM internal use.

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

getVersionSpcIdInEJBType

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

This method provides access to the RTNRECEIPT.VERSIONSPC_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reserved for IBM internal use.

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

setVersionSpcId

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

setVersionSpcId

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

getDateReceived

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

This method provides access to the RTNRECEIPT.DATERECEIVED column of DB2 type TIMESTAMP NOT NULL.

The following is a description of this column:

Date that the returned item was received.

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

getDateReceivedInEJBType

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

This method provides access to the RTNRECEIPT.DATERECEIVED column of DB2 type TIMESTAMP NOT NULL.

The following is a description of this column:

Date that the returned item was received.

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

setDateReceived

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

setDateReceived

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

getDispositionedQty

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

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

The following is a description of this column:

The quantity of this return receipt that has been disposed.

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

getDispositionedQtyInEJBType

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

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

The following is a description of this column:

The quantity of this return receipt that has been disposed.

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

setDispositionedQty

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

setDispositionedQty

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

getRmaItemCmpId

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

This method provides access to the RTNRECEIPT.RMAITEMCMP_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The RMA item component to which this return receipt refers.

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

getRmaItemCmpIdInEJBType

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

This method provides access to the RTNRECEIPT.RMAITEMCMP_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The RMA item component to which this return receipt refers.

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

setRmaItemCmpId

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

setRmaItemCmpId

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

getRmaId

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

This method provides access to the RTNRECEIPT.RMA_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The RMA that to which this return receipt belongs.

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

getRmaIdInEJBType

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

This method provides access to the RTNRECEIPT.RMA_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The RMA that to which this return receipt belongs.

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

setRmaId

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

setRmaId

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

Feedback