com.ibm.commerce.ordermanagement.objects
Class RMAItemComponentAccessBean

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

public class RMAItemComponentAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements RMAItemComponentAccessBeanData

This table describes the smallest unit of inventory items involved in a return merchandise authorization (RMA). This access bean corresponds to the database table 'RMAITEMCMP'.

See Also:
Serialized Form

Constructor Summary
RMAItemComponentAccessBean()
Zero argument constructor used to initialize the access bean.
RMAItemComponentAccessBean(javax.ejb.EJBObject o)
constructor
RMAItemComponentAccessBean(java.lang.Long newRmaItemId, java.lang.Double newQuantity, java.lang.Long newItemSpcId)
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 findByRmaItemComponentIdForUpdate(java.lang.Long rmaItemComponentId)
Retrieves all the RMA item components for a particular RMA item component ID.
java.util.Enumeration findByRmaItemId(java.lang.Long rmaItemId) Retrieves all the RMA item components defined for a store and its corresponding store group, and returns the list sorted by store entity. The SQL query used to fetch the requested row from the RMAITEMCMP table is:
SELECT * FROM RMAITEMCMP T1 WHERE T1.RMAITEM_ID = ?
java.util.Enumeration findByRmaItemIdForUpdate(java.lang.Long rmaItemId) Retrieves all the RMA item components for a particular RMA item. The SQL query used to fetch the requested row from the RMAITEMCMP table is:
SELECT * FROM RMAITEMCMP T1 WHERE T1.RMAITEM_ID = ? FOR UPDATE
java.util.Enumeration findReceivableByRmaId(java.lang.Long rmaId) Retrieves all the RMA item components for a particular RMA item. The SQL query used to fetch the requested row from the RMAITEMCMP table is:
SELECT * FROM RMAITEMCMP T1 WHERE T1.RMAITEM_ID = RMAITEM.RMAITEM_ID AND RMAITEM.RMA_ID = ? AND T1.SHOULDRECEIVE = 'Y'
java.lang.String getCatentryId()
This method provides access to the RMAITEMCMP.CATENTRY_ID column of DB2 type BIGINT.
java.lang.Long getCatentryIdInEJBType()
This method provides access to the RMAITEMCMP.CATENTRY_ID column of DB2 type BIGINT.
java.lang.String getInventoryQuantity()
This method provides access to the RMAITEMCMP.INVQUANTITY column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getInventoryQuantityInEJBType()
This method provides access to the RMAITEMCMP.INVQUANTITY column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getItemSpcId()
This method provides access to the RMAITEMCMP.ITEMSPC_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getItemSpcIdInEJBType()
This method provides access to the RMAITEMCMP.ITEMSPC_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getQuantity()
This method provides access to the RMAITEMCMP.QUANTITY column of DB2 type FLOAT NOT NULL.
java.lang.Double getQuantityInEJBType()
This method provides access to the RMAITEMCMP.QUANTITY column of DB2 type FLOAT NOT NULL.
java.lang.String getRmaItemCmpId()
This method provides access to the RMAITEMCMP.RMAITEMCMP_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getRmaItemCmpIdInEJBType()
This method provides access to the RMAITEMCMP.RMAITEMCMP_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getRmaItemId()
This method provides access to the RMAITEMCMP.RMAITEM_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getRmaItemIdInEJBType()
This method provides access to the RMAITEMCMP.RMAITEM_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getShouldReceive()
This method provides access to the RMAITEMCMP.SHOULDRECEIVE column of DB2 type CHAR(1) NOT NULL DEFAULT 'Y'.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCatentryId(java.lang.Long newValue)
This method accesses a non-CMP field
void setCatentryId(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_rmaItemCmpId(java.lang.String newValue)
Set the primary key for this object
void setInventoryQuantity(java.lang.Integer newValue)
This method accesses a non-CMP field
void setInventoryQuantity(java.lang.String newValue)
This method accesses a non-CMP field
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 setQuantity(java.lang.Double newValue)
This method accesses a non-CMP field
void setQuantity(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 setRmaItemId(java.lang.Long newValue)
This method accesses a non-CMP field
void setRmaItemId(java.lang.String newValue)
This method accesses a non-CMP field
void setShouldReceive(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

RMAItemComponentAccessBean

public RMAItemComponentAccessBean()
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.RMAItemComponent com.ibm.commerce.ordermanagement.objimpl.RMAItemComponentHomeBase.findByPrimaryKey(com.ibm.commerce.ordermanagement.objects.RMAItemComponentKey) 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_rmaItemCmpId( java.lang.Long )

RMAItemComponentAccessBean

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

RMAItemComponentAccessBean

public RMAItemComponentAccessBean(java.lang.Long newRmaItemId,
                                  java.lang.Double newQuantity,
                                  java.lang.Long newItemSpcId)
                           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 Item Specification ID
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

findByRmaItemComponentIdForUpdate

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

Retrieves all the RMA item components for a particular RMA item component ID. There will be only one match.
The SQL query used to fetch the requested row from the
RMAITEMCMP table is:
SELECT * FROM RMAITEMCMP T1 WHERE T1.RMAITEMCMP_ID = ? FOR UPDATE

Parameters:
rmaItemComponentId - java.lang.Long RMA Item Component ID
Returns:
An Enumeration of all the RMAItemComponentAccessBeans 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

findByRmaItemId

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

Retrieves all the RMA item components defined for a store and its corresponding store group, and returns the list sorted by store entity.
The SQL query used to fetch the requested row from the
RMAITEMCMP table is:
SELECT * FROM RMAITEMCMP T1 WHERE T1.RMAITEM_ID = ?

Parameters:
rmaItemId - java.lang.Long RMA item ID
Returns:
An Enumeration of all the RMAItemComponentAccessBeans 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

findByRmaItemIdForUpdate

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

Retrieves all the RMA item components for a particular RMA item.
The SQL query used to fetch the requested row from the
RMAITEMCMP table is:
SELECT * FROM RMAITEMCMP T1 WHERE T1.RMAITEM_ID = ? FOR UPDATE

Parameters:
rmaItemId - java.lang.Long RMA item ID
Returns:
An Enumeration of all the RMAItemComponentAccessBeans 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

findReceivableByRmaId

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

Retrieves all the RMA item components for a particular RMA item.
The SQL query used to fetch the requested row from the
RMAITEMCMP table is:
SELECT * FROM RMAITEMCMP T1 WHERE T1.RMAITEM_ID = RMAITEM.RMAITEM_ID AND RMAITEM.RMA_ID = ? AND T1.SHOULDRECEIVE = 'Y'

Parameters:
rmaId - java.lang.Long RMA ID
Returns:
An Enumeration of all the RMAItemComponentAccessBeans 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

setInitKey_rmaItemCmpId

public void setInitKey_rmaItemCmpId(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 RMAITEMCMP.QUANTITY column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

The result of multiplying QUANTITY by CATENTSHIP.NOMINALQUANTITY must be a multiple of CATENTSHIP.QUANTITYMULTIPLE, and represents the actual quantity being purchased, in the unit of measurement specified by CATENTSHIP.QUANTITYMEASURE.

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

getQuantityInEJBType

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

This method provides access to the RMAITEMCMP.QUANTITY column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

The result of multiplying QUANTITY by CATENTSHIP.NOMINALQUANTITY must be a multiple of CATENTSHIP.QUANTITYMULTIPLE, and represents the actual quantity being purchased, in the unit of measurement specified by CATENTSHIP.QUANTITYMEASURE.

Returns:
java.lang.Double
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 RMAItemComponentAccessBeanData

setQuantity

public void setQuantity(java.lang.Double 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 RMAITEMCMP.ITEMSPC_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Identity of the inventory item.

Specified by:
getItemSpcId in interface RMAItemComponentAccessBeanData
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 RMAITEMCMP.ITEMSPC_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Identity of the inventory item.

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 RMAItemComponentAccessBeanData

setItemSpcId

public void setItemSpcId(java.lang.Long 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 RMAITEMCMP.RMAITEMCMP_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

Specified by:
getRmaItemCmpId in interface RMAItemComponentAccessBeanData
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 RMAITEMCMP.RMAITEMCMP_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

setRmaItemCmpId

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

setRmaItemCmpId

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

getInventoryQuantity

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

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

The following is a description of this column:

Quantity in inventory units of this component

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

getInventoryQuantityInEJBType

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

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

The following is a description of this column:

Quantity in inventory units of this component

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

setInventoryQuantity

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

setInventoryQuantity

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

getRmaItemId

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

This method provides access to the RMAITEMCMP.RMAITEM_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The RMAItem that this component is a part of.

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

getRmaItemIdInEJBType

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

This method provides access to the RMAITEMCMP.RMAITEM_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The RMAItem that this component is a part of.

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

setRmaItemId

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

setRmaItemId

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

getCatentryId

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

This method provides access to the RMAITEMCMP.CATENTRY_ID column of DB2 type BIGINT.

The following is a description of this column:

Reserved for IBM internal use.

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

getCatentryIdInEJBType

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

This method provides access to the RMAITEMCMP.CATENTRY_ID column of DB2 type BIGINT.

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

setCatentryId

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

setCatentryId

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

getShouldReceive

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

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

The following is a description of this column:

A flag that indicates whether this component will actually be received by the seller. Valid values are as follows:&l

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

setShouldReceive

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

Feedback