com.ibm.commerce.ordermanagement.objects
Class RMAItemAdjustmentCreditAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.ordermanagement.objects.RMAItemAdjustmentCreditAccessBean
All Implemented Interfaces:
RMAItemAdjustmentCreditAccessBeanData, java.io.Serializable

public class RMAItemAdjustmentCreditAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements RMAItemAdjustmentCreditAccessBeanData

This bean provides access to the RMAIADJCRD table.

The following is a description of this table:

This table stores return merchandise authorization (RMA) item adjustment credits. These are the portion of an order item adjustment that is to be refunded to the buyer.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
RMAItemAdjustmentCreditAccessBean()
          Default constructor.
RMAItemAdjustmentCreditAccessBean(javax.ejb.EJBObject ejbObject)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
RMAItemAdjustmentCreditAccessBean(java.lang.Long rmaItemID, java.lang.Long orderAdjustment, java.math.BigDecimal monetaryAmount)
          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).
 java.util.Enumeration findByRmaItemId(java.lang.Long rmaItemID)
          Retrieves all the RMA item adjustments for a particular RMA.
The SQL query used to fetch the requested row from the RMAIADJCRD table is:
SELECT * FROM RMAIADJCRD T1 WHERE T1.RMAITEM_ID = ?
 java.util.Enumeration findByRmaItemIdForUpdate(java.lang.Long rmaItemID)
          Retrieves all the RMA item adjustments for a particular RMA item.
The SQL query used to fetch the requested row from the RMAIADJCRD table is:
SELECT * FROM RMAIADJCRD T1 WHERE T1.RMAITEM_ID = ? for update
 java.lang.String getAmount()
          This method provides access to the RMAIADJCRD.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 java.math.BigDecimal getAmountInEJBType()
          This method provides access to the RMAIADJCRD.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 java.lang.String getOrderAdjustId()
          This method provides access to the RMAIADJCRD.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderAdjustIdInEJBType()
          This method provides access to the RMAIADJCRD.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getRmaItemAdjustmentCreditId()
          This method provides access to the RMAIADJCRD.RMAIADJCRD_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getRmaItemAdjustmentCreditIdInEJBType()
          This method provides access to the RMAIADJCRD.RMAIADJCRD_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getRmaItemId()
          This method provides access to the RMAIADJCRD.RMAITEM_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getRmaItemIdInEJBType()
          This method provides access to the RMAIADJCRD.RMAITEM_ID column of DB2 type BIGINT NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setAmount(java.math.BigDecimal aAmount)
          This method provides access to the RMAIADJCRD.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 void setAmount(java.lang.String aAmount)
          This method provides access to the RMAIADJCRD.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 void setInitKey_rmaItemAdjustmentCreditId(java.lang.String aInitKey_rmaItemAdjustmentCreditId)
          Set the primary key for this object
 void setOrderAdjustId(java.lang.Long aOrderAdjustId)
          This method provides access to the RMAIADJCRD.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.
 void setOrderAdjustId(java.lang.String aOrderAdjustId)
          This method provides access to the RMAIADJCRD.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.
 void setRmaItemAdjustmentCreditId(java.lang.Long aRmaItemAdjustmentCreditId)
          This method provides access to the RMAIADJCRD.RMAIADJCRD_ID column of DB2 type BIGINT NOT NULL.
 void setRmaItemAdjustmentCreditId(java.lang.String aRmaItemAdjustmentCreditId)
          This method provides access to the RMAIADJCRD.RMAIADJCRD_ID column of DB2 type BIGINT NOT NULL.
 void setRmaItemId(java.lang.Long aRmaItemId)
          This method provides access to the RMAIADJCRD.RMAITEM_ID column of DB2 type BIGINT NOT NULL.
 void setRmaItemId(java.lang.String aRmaItemId)
          This method provides access to the RMAIADJCRD.RMAITEM_ID column of DB2 type BIGINT NOT NULL.
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMAItemAdjustmentCreditAccessBean

public RMAItemAdjustmentCreditAccessBean()

Default constructor. Maps to findByPrimaryKey.


RMAItemAdjustmentCreditAccessBean

public RMAItemAdjustmentCreditAccessBean(javax.ejb.EJBObject ejbObject)
                                  throws java.rmi.RemoteException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
ejbObject - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

RMAItemAdjustmentCreditAccessBean

public RMAItemAdjustmentCreditAccessBean(java.lang.Long rmaItemID,
                                         java.lang.Long orderAdjustment,
                                         java.math.BigDecimal monetaryAmount)
                                  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:
rmaItemID - java.lang.Long RMA Item ID
orderAdjustment - ID java.lang.Long Order Adjustment ID
monetaryAmount - java.math.BigDecimal Monetary Amount
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

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).

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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 adjustments for a particular RMA.
The SQL query used to fetch the requested row from the RMAIADJCRD table is:
SELECT * FROM RMAIADJCRD T1 WHERE T1.RMAITEM_ID = ?

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

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 adjustments for a particular RMA item.
The SQL query used to fetch the requested row from the RMAIADJCRD table is:
SELECT * FROM RMAIADJCRD T1 WHERE T1.RMAITEM_ID = ? for update

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

getAmount

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

This method provides access to the RMAIADJCRD.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

Amount of the RMA item adjustment credit.

Specified by:
getAmount in interface RMAItemAdjustmentCreditAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getAmountInEJBType

public java.math.BigDecimal getAmountInEJBType()
                                        throws java.rmi.RemoteException,
                                               javax.ejb.CreateException,
                                               javax.ejb.FinderException,
                                               javax.naming.NamingException

This method provides access to the RMAIADJCRD.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

Amount of the RMA item adjustment credit.

Returns:
java.math.BigDecimal
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getOrderAdjustId

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

This method provides access to the RMAIADJCRD.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The order adjustment that is being credited.

Specified by:
getOrderAdjustId in interface RMAItemAdjustmentCreditAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getOrderAdjustIdInEJBType

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

This method provides access to the RMAIADJCRD.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The order adjustment that is being credited.

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

getRmaItemAdjustmentCreditId

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

This method provides access to the RMAIADJCRD.RMAIADJCRD_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

Specified by:
getRmaItemAdjustmentCreditId in interface RMAItemAdjustmentCreditAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getRmaItemAdjustmentCreditIdInEJBType

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

This method provides access to the RMAIADJCRD.RMAIADJCRD_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 - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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

The following is a description of this column:

The RMA item for which the credit applies.

Specified by:
getRmaItemId in interface RMAItemAdjustmentCreditAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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

The following is a description of this column:

The RMA item for which the credit applies.

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

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setAmount

public void setAmount(java.math.BigDecimal aAmount)

This method provides access to the RMAIADJCRD.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

Amount of the RMA item adjustment credit.

Parameters:
aAmount - java.math.BigDecimal
Returns:
void

setAmount

public void setAmount(java.lang.String aAmount)

This method provides access to the RMAIADJCRD.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

Amount of the RMA item adjustment credit.

Specified by:
setAmount in interface RMAItemAdjustmentCreditAccessBeanData
Parameters:
aAmount - java.lang.String
Returns:
void

setInitKey_rmaItemAdjustmentCreditId

public void setInitKey_rmaItemAdjustmentCreditId(java.lang.String aInitKey_rmaItemAdjustmentCreditId)

Set the primary key for this object

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

setOrderAdjustId

public void setOrderAdjustId(java.lang.Long aOrderAdjustId)

This method provides access to the RMAIADJCRD.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The order adjustment that is being credited.

Parameters:
aOrderAdjustId - java.lang.Long
Returns:
void

setOrderAdjustId

public void setOrderAdjustId(java.lang.String aOrderAdjustId)

This method provides access to the RMAIADJCRD.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The order adjustment that is being credited.

Specified by:
setOrderAdjustId in interface RMAItemAdjustmentCreditAccessBeanData
Parameters:
aOrderAdjustId - java.lang.String
Returns:
void

setRmaItemAdjustmentCreditId

public void setRmaItemAdjustmentCreditId(java.lang.Long aRmaItemAdjustmentCreditId)

This method provides access to the RMAIADJCRD.RMAIADJCRD_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

Parameters:
aRmaItemAdjustmentCreditId - java.lang.Long
Returns:
void

setRmaItemAdjustmentCreditId

public void setRmaItemAdjustmentCreditId(java.lang.String aRmaItemAdjustmentCreditId)

This method provides access to the RMAIADJCRD.RMAIADJCRD_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

Specified by:
setRmaItemAdjustmentCreditId in interface RMAItemAdjustmentCreditAccessBeanData
Parameters:
aRmaItemAdjustmentCreditId - java.lang.String
Returns:
void

setRmaItemId

public void setRmaItemId(java.lang.Long aRmaItemId)

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

The following is a description of this column:

The RMA item for which the credit applies.

Parameters:
aRmaItemId - java.lang.Long
Returns:
void

setRmaItemId

public void setRmaItemId(java.lang.String aRmaItemId)

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

The following is a description of this column:

The RMA item for which the credit applies.

Specified by:
setRmaItemId in interface RMAItemAdjustmentCreditAccessBeanData
Parameters:
aRmaItemId - java.lang.String
Returns:
void