java.lang.Objectcom.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
com.ibm.commerce.ordermanagement.objects.ChargeTypeAccessBean
Charge or credit applied against a transaction which is not for product. Examples include expedite fees, customization fees, and restocking fees. This access bean corresponds to the database table 'CHARGETYPE'.
Constructor Summary | |
ChargeTypeAccessBean() Zero argument constructor used to initialize the access bean. |
|
ChargeTypeAccessBean(javax.ejb.EJBObject o) constructor |
|
ChargeTypeAccessBean(java.lang.String newCode, java.lang.String newDisplayAggregated, java.lang.Integer newStoreentId) 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 | findByCodeAndStoreIdOrStoreGroupIdOrderByStoreent(java.lang.String code, java.lang.Integer storeentId, java.lang.Integer storeGroupId)
Retrieves all the charge types 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 CHARGETYPE table is: SELECT * FROM CHARGETYPE T1 where T1.Code = ? and (T1.Storeent_id = ? or T1.Storeent_id=?) and T1.MarkForDelete=0 order by storeent_id desc |
java.lang.String | getChargeTypeId() This method provides access to the CHARGETYPE.CHARGETYPE_ID column of DB2 type INTEGER NOT NULL. |
java.lang.Integer | getChargeTypeIdInEJBType() This method provides access to the CHARGETYPE.CHARGETYPE_ID column of DB2 type INTEGER NOT NULL. |
java.lang.String | getCode() This method provides access to the CHARGETYPE.CODE column of DB2 type CHAR(10) NOT NULL. |
java.lang.String | getDisplayAggregated() This method provides access to the CHARGETYPE.DISPLAYAGGREGATED column of DB2 type CHAR(1) NOT NULL. |
java.lang.String | getMarkForDeleted() This method provides access to the CHARGETYPE.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0. |
java.lang.Integer | getMarkForDeletedInEJBType() This method provides access to the CHARGETYPE.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0. |
java.lang.String | getStoreentId() This method provides access to the CHARGETYPE.STOREENT_ID column of DB2 type INTEGER NOT NULL. |
java.lang.Integer | getStoreentIdInEJBType() This method provides access to the CHARGETYPE.STOREENT_ID column of DB2 type INTEGER NOT NULL. |
protected void | instantiateEJB() |
protected boolean | instantiateEJBByPrimaryKey() |
void | refreshCopyHelper() Load data from the EJBObject. |
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 | setCode(java.lang.String newValue) This method accesses a non-CMP field |
void | setDisplayAggregated(java.lang.String newValue) This method accesses a non-CMP field |
void | setInitKey_chargeTypeId(java.lang.String newValue) Set the primary key for this object |
void | setMarkForDeleted(java.lang.Integer newValue) This method accesses a non-CMP field |
void | setMarkForDeleted(java.lang.String newValue) This method accesses a non-CMP field |
void | setStoreentId(java.lang.Integer newValue) This method accesses a non-CMP field |
void | setStoreentId(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 ChargeTypeAccessBean()
public ChargeTypeAccessBean(javax.ejb.EJBObject o) throws java.rmi.RemoteException
public ChargeTypeAccessBean(java.lang.String newCode, java.lang.String newDisplayAggregated, java.lang.Integer newStoreentId) 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
Method Detail |
public java.util.Enumeration findByCodeAndStoreIdOrStoreGroupIdOrderByStoreent(java.lang.String code, java.lang.Integer storeentId, java.lang.Integer storeGroupId) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
Retrieves all the charge types 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 CHARGETYPE table is:
SELECT * FROM CHARGETYPE T1 where T1.Code = ? and (T1.Storeent_id = ? or T1.Storeent_id=?) and T1.MarkForDelete=0 order by storeent_id desc
public void setInitKey_chargeTypeId(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 getCode() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CHARGETYPE.CODE column of DB2 type CHAR(10) NOT NULL.
The following is a description of this column:
Code used for referencing this Charge Type.
public void setCode(java.lang.String newValue)
public java.lang.String getStoreentId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CHARGETYPE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
The Store Entity that uses this Charge Type.
public java.lang.Integer getStoreentIdInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CHARGETYPE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
The Store Entity that uses this Charge Type.
public void setStoreentId(java.lang.String newValue)
public void setStoreentId(java.lang.Integer 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 CHARGETYPE.CHARGETYPE_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Generated unique key.
public java.lang.Integer getChargeTypeIdInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CHARGETYPE.CHARGETYPE_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Generated unique key.
public void setChargeTypeId(java.lang.String newValue)
public void setChargeTypeId(java.lang.Integer newValue)
public java.lang.String getDisplayAggregated() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CHARGETYPE.DISPLAYAGGREGATED column of DB2 type CHAR(1) NOT NULL.
The following is a description of this column:
A suggestion to the GUI to aggregate the charge or credit into the appropriate transaction or transaction item for display purposes. Charges or credits are stored individually to facilitate tax calculations.
public void setDisplayAggregated(java.lang.String newValue)
public java.lang.String getMarkForDeleted() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CHARGETYPE.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
The following is a description of this column:
Indicates if this Charge Type has been marked for deletion:&l
public java.lang.Integer getMarkForDeletedInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CHARGETYPE.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
The following is a description of this column:
Indicates if this Charge Type has been marked for deletion:&l
public void setMarkForDeleted(java.lang.String newValue)
public void setMarkForDeleted(java.lang.Integer newValue)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.