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. This access bean corresponds to the database table 'RMAIADJCRD'.

See Also:
Serialized Form

Constructor Summary
RMAItemAdjustmentCreditAccessBean()
Zero argument constructor used to initialize the access bean.
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 findByOrderAdjustmentIdForUpdate(java.lang.Long adjustmentId) 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.ORDAJUST_ID = ? for update
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 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 accesses a non-CMP field
void setAmount(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_rmaItemAdjustmentCreditId(java.lang.String newValue)
Set the primary key for this object
void setOrderAdjustId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrderAdjustId(java.lang.String newValue)
This method accesses a non-CMP field
void setRmaItemAdjustmentCreditId(java.lang.Long newValue)
This method accesses a non-CMP field
void setRmaItemAdjustmentCreditId(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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

RMAItemAdjustmentCreditAccessBean

public RMAItemAdjustmentCreditAccessBean()
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.RMAItemAdjustmentCredit com.ibm.commerce.ordermanagement.objimpl.RMAItemAdjustmentCreditHomeBase.findByPrimaryKey(com.ibm.commerce.ordermanagement.objects.RMAItemAdjustmentCreditKey) 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_rmaItemAdjustmentCreditId( java.lang.Long )

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

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

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 accesses a non-CMP field
Specified by:
setAmount in interface RMAItemAdjustmentCreditAccessBeanData

setAmount

public void setAmount(java.math.BigDecimal newValue)
This method accesses a non-CMP field

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 accesses a non-CMP field
Specified by:
setRmaItemAdjustmentCreditId in interface RMAItemAdjustmentCreditAccessBeanData

setRmaItemAdjustmentCreditId

public void setRmaItemAdjustmentCreditId(java.lang.Long 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 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 accesses a non-CMP field
Specified by:
setRmaItemId in interface RMAItemAdjustmentCreditAccessBeanData

setRmaItemId

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

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 accesses a non-CMP field
Specified by:
setOrderAdjustId in interface RMAItemAdjustmentCreditAccessBeanData

setOrderAdjustId

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

findByOrderAdjustmentIdForUpdate

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

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

Feedback