com.ibm.commerce.ordermanagement.objects
Class RMAItemAdjustmentCreditAccessBean

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

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

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

Constructor Summary
RMAItemAdjustmentCreditAccessBean()
          constructor
RMAItemAdjustmentCreditAccessBean(javax.ejb.EJBObject o)
          constructor
RMAItemAdjustmentCreditAccessBean(java.lang.Long arg0, java.lang.Long arg1, java.math.BigDecimal arg2)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findByRmaItemId(java.lang.Long arg0)           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 arg0)           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 DEFAULT 0.
 java.math.BigDecimal getAmountInEJBType()
          This method provides access to the RMAIADJCRD.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL DEFAULT 0.
 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.
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setAmount(java.math.BigDecimal newValue)
          This method provides access to the RMAIADJCRD.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL DEFAULT 0.
 void setAmount(java.lang.String newValue)
          This method provides access to the RMAIADJCRD.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL DEFAULT 0.
 void setInitKey_rmaItemAdjustmentCreditId(java.lang.String newValue)
          Set the primary key for this object
 void setOrderAdjustId(java.lang.Long newValue)
          This method provides access to the RMAIADJCRD.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.
 void setOrderAdjustId(java.lang.String newValue)
          This method provides access to the RMAIADJCRD.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.
 void setRmaItemAdjustmentCreditId(java.lang.Long newValue)
          This method provides access to the RMAIADJCRD.RMAIADJCRD_ID column of DB2 type BIGINT NOT NULL.
 void setRmaItemAdjustmentCreditId(java.lang.String newValue)
          This method provides access to the RMAIADJCRD.RMAIADJCRD_ID column of DB2 type BIGINT NOT NULL.
 void setRmaItemId(java.lang.Long newValue)
          This method provides access to the RMAIADJCRD.RMAITEM_ID column of DB2 type BIGINT NOT NULL.
 void setRmaItemId(java.lang.String newValue)
          This method provides access to the RMAIADJCRD.RMAITEM_ID column of DB2 type BIGINT NOT NULL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMAItemAdjustmentCreditAccessBean

public RMAItemAdjustmentCreditAccessBean()
constructor

RMAItemAdjustmentCreditAccessBean

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

RMAItemAdjustmentCreditAccessBean

public RMAItemAdjustmentCreditAccessBean(java.lang.Long arg0,
                                         java.lang.Long arg1,
                                         java.math.BigDecimal arg2)
                                  throws javax.naming.NamingException,
                                         javax.ejb.CreateException,
                                         java.rmi.RemoteException,
                                         javax.ejb.FinderException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.Long
arg2 - java.math.BigDecimal
Throws:
javax.naming.NamingException
javax.ejb.CreateException
java.rmi.RemoteException
javax.ejb.FinderException
Method Detail

findByRmaItemId

public java.util.Enumeration findByRmaItemId(java.lang.Long arg0)
                                      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 = ?

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

findByRmaItemIdForUpdate

public java.util.Enumeration findByRmaItemIdForUpdate(java.lang.Long arg0)
                                               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

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

setInitKey_rmaItemAdjustmentCreditId

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

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 DEFAULT 0.

The following is a description of this column:

Amount of the RMA item adjustment credit.

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

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 DEFAULT 0.

The following is a description of this column:

Amount of the RMA item adjustment credit.

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

setAmount

public void setAmount(java.lang.String newValue)

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

The following is a description of this column:

Amount of the RMA item adjustment credit.

Specified by:
setAmount in interface RMAItemAdjustmentCreditAccessBeanData
Parameters:
newValue - String
Returns:
void

setAmount

public void setAmount(java.math.BigDecimal newValue)

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

The following is a description of this column:

Amount of the RMA item adjustment credit.

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

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setRmaItemAdjustmentCreditId

public void setRmaItemAdjustmentCreditId(java.lang.String newValue)

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:
newValue - String
Returns:
void

setRmaItemAdjustmentCreditId

public void setRmaItemAdjustmentCreditId(java.lang.Long newValue)

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:
newValue - java.lang.Long
Returns:
void

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:
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 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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setRmaItemId

public void setRmaItemId(java.lang.String newValue)

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:
newValue - String
Returns:
void

setRmaItemId

public void setRmaItemId(java.lang.Long newValue)

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:
newValue - java.lang.Long
Returns:
void

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setOrderAdjustId

public void setOrderAdjustId(java.lang.String newValue)

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:
newValue - String
Returns:
void

setOrderAdjustId

public void setOrderAdjustId(java.lang.Long newValue)

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:
newValue - java.lang.Long
Returns:
void