java.lang.Objectcom.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
com.ibm.commerce.ordermanagement.objects.RMAChargeAccessBean
This table stores charges or credits, applied to a return merchandise authorization (RMA), which are not for sellable products or services. This can be applicable to the entire RMA or to a specific RMA item, such as restocking fees or shipping credits. This access bean corresponds to the database table 'RMACHARGE'.
Constructor Summary | |
RMAChargeAccessBean() Zero argument constructor used to initialize the access bean. |
|
RMAChargeAccessBean(javax.ejb.EJBObject o) constructor |
|
RMAChargeAccessBean(java.lang.Long newRmaId, java.math.BigDecimal newAmount, java.lang.String newCurrency, java.lang.Integer newChargeTypeId) 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 | findByRmaCharge(java.lang.Long rmaId)
Retrieves all the RMA level charges for a RMA, meaning those which are not associated with a particular RMA item.
The SQL query used to fetch the requested row from the RMACHARGE table is: SELECT * FROM RMACHARGE T1 WHERE T1.RMA_ID = ? AND T1.RMAITEM_ID IS NULL |
java.util.Enumeration | findByRmaItemId(java.lang.Long rmaItemId)
Retrieves all the RMA charges associated with a RMA item.
The SQL query used to fetch the requested row from the RMACHARGE table is: SELECT * FROM RMACHARGE T1 WHERE T1.RMAITEM_ID = ? |
java.util.Enumeration | findByRmaItemIdForUpdate(java.lang.Long rmaItemId)
Retrieves all the RMA charges associated with a particular RMA item.
The SQL query used to fetch the requested row from the RMACHARGE table is: SELECT * FROM RMACHARGE T1 WHERE T1.RMAITEM_ID = ? FOR UPDATE |
java.lang.String | getAmount() This method provides access to the RMACHARGE.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL. |
java.math.BigDecimal | getAmountInEJBType() This method provides access to the RMACHARGE.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL. |
java.lang.String | getChargeTypeId() This method provides access to the RMACHARGE.CHARGETYPE_ID column of DB2 type INTEGER NOT NULL. |
java.lang.Integer | getChargeTypeIdInEJBType() This method provides access to the RMACHARGE.CHARGETYPE_ID column of DB2 type INTEGER NOT NULL. |
java.lang.String | getCurrency() This method provides access to the RMACHARGE.CURRENCY column of DB2 type CHAR(3) NOT NULL. |
java.lang.String | getRmaChargeId() This method provides access to the RMACHARGE.RMACHARGE_ID column of DB2 type BIGINT NOT NULL. |
java.lang.Long | getRmaChargeIdInEJBType() This method provides access to the RMACHARGE.RMACHARGE_ID column of DB2 type BIGINT NOT NULL. |
java.lang.String | getRmaId() This method provides access to the RMACHARGE.RMA_ID column of DB2 type BIGINT NOT NULL. |
java.lang.Long | getRmaIdInEJBType() This method provides access to the RMACHARGE.RMA_ID column of DB2 type BIGINT NOT NULL. |
java.lang.String | getRmaItemId() This method provides access to the RMACHARGE.RMAITEM_ID column of DB2 type BIGINT. |
java.lang.Long | getRmaItemIdInEJBType() This method provides access to the RMACHARGE.RMAITEM_ID column of DB2 type BIGINT. |
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 | setChargeTypeId(java.lang.Integer newValue) This method accesses a non-CMP field |
void | setChargeTypeId(java.lang.String newValue) This method accesses a non-CMP field |
void | setCurrency(java.lang.String newValue) This method accesses a non-CMP field |
void | setInitKey_rmaChargeId(java.lang.String newValue) Set the primary key for this object |
void | setRmaChargeId(java.lang.Long newValue) This method accesses a non-CMP field |
void | setRmaChargeId(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 | 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 |
public RMAChargeAccessBean()
public RMAChargeAccessBean(javax.ejb.EJBObject o) throws java.rmi.RemoteException
public RMAChargeAccessBean(java.lang.Long newRmaId, java.math.BigDecimal newAmount, java.lang.String newCurrency, java.lang.Integer newChargeTypeId) throws javax.naming.NamingException, javax.ejb.CreateException, javax.ejb.FinderException, java.rmi.RemoteException
Maps to a corresponding ejbCreate method in the home interface of the EJB
Method Detail |
public java.util.Enumeration findByRmaCharge(java.lang.Long rmaId) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
Retrieves all the RMA level charges for a RMA, meaning those which are not associated with a particular RMA item.
The SQL query used to fetch the requested row from the RMACHARGE table is:
SELECT * FROM RMACHARGE T1 WHERE T1.RMA_ID = ? AND T1.RMAITEM_ID IS NULL
public java.util.Enumeration findByRmaItemId(java.lang.Long rmaItemId) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
Retrieves all the RMA charges associated with a RMA item.
The SQL query used to fetch the requested row from the RMACHARGE table is:
SELECT * FROM RMACHARGE T1 WHERE T1.RMAITEM_ID = ?
public java.util.Enumeration findByRmaItemIdForUpdate(java.lang.Long rmaItemId) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
Retrieves all the RMA charges associated with a particular RMA item.
The SQL query used to fetch the requested row from the RMACHARGE table is:
SELECT * FROM RMACHARGE T1 WHERE T1.RMAITEM_ID = ? FOR UPDATE
public void setInitKey_rmaChargeId(java.lang.String newValue)
Set the primary key for this object
protected java.lang.String defaultJNDIName()
protected void instantiateEJB() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
protected boolean instantiateEJBByPrimaryKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.naming.NamingException
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Update(flush) data to the EJBObject (persistent storage).
public void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
public java.lang.String getAmount() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the RMACHARGE.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL.
The following is a description of this column:
Amount of the charge or credit.
public java.math.BigDecimal getAmountInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the RMACHARGE.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL.
The following is a description of this column:
Amount of the charge or credit.
public void setAmount(java.lang.String newValue)
public void setAmount(java.math.BigDecimal newValue)
public java.lang.String getCurrency() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the RMACHARGE.CURRENCY column of DB2 type CHAR(3) NOT NULL.
The following is a description of this column:
Currency used for the charge or credit. This is a currency code as per ISO 4217 standards.
public void setCurrency(java.lang.String newValue)
public java.lang.String getChargeTypeId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the RMACHARGE.CHARGETYPE_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
The type of charge or credit. The CHARGETYPE_ID column is a foreign key to the CHARGETYPE table. A return policy uses the charge type of a restocking fee for returned items.
public java.lang.Integer getChargeTypeIdInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the RMACHARGE.CHARGETYPE_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
The type of charge or credit. The CHARGETYPE_ID column is a foreign key to the CHARGETYPE table. A return policy uses the charge type of a restocking fee for returned items.
public void setChargeTypeId(java.lang.String newValue)
public void setChargeTypeId(java.lang.Integer newValue)
public java.lang.String getRmaItemId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the RMACHARGE.RMAITEM_ID column of DB2 type BIGINT.
The following is a description of this column:
The RMA item to which this charge applies. If this field is NULL, then the charge does not apply to a specific RMA item but against the whole RMA.
public java.lang.Long getRmaItemIdInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the RMACHARGE.RMAITEM_ID column of DB2 type BIGINT.
The following is a description of this column:
The RMA item to which this charge applies. If this field is NULL, then the charge does not apply to a specific RMA item but against the whole RMA.
public void setRmaItemId(java.lang.String newValue)
public void setRmaItemId(java.lang.Long newValue)
public java.lang.String getRmaChargeId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the RMACHARGE.RMACHARGE_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
Generated unique key.
public java.lang.Long getRmaChargeIdInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the RMACHARGE.RMACHARGE_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
Generated unique key.
public void setRmaChargeId(java.lang.String newValue)
public void setRmaChargeId(java.lang.Long newValue)
public java.lang.String getRmaId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the RMACHARGE.RMA_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
The RMA to which this charge or credit applies.
public java.lang.Long getRmaIdInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the RMACHARGE.RMA_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
The RMA to which this charge or credit applies.
public void setRmaId(java.lang.String newValue)
public void setRmaId(java.lang.Long newValue)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.