com.ibm.commerce.ordermanagement.objects
Class ChargeTypeAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.ordermanagement.objects.ChargeTypeAccessBean
All Implemented Interfaces:
ChargeTypeAccessBeanData

public class ChargeTypeAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements ChargeTypeAccessBeanData

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

See Also:
Serialized Form

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

ChargeTypeAccessBean

public ChargeTypeAccessBean()
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.ChargeType com.ibm.commerce.ordermanagement.objimpl.ChargeTypeHomeBase.findByPrimaryKey(com.ibm.commerce.ordermanagement.objects.ChargeTypeKey) 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_chargeTypeId( java.lang.Integer )

ChargeTypeAccessBean

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

ChargeTypeAccessBean

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

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

findByCodeAndStoreIdOrStoreGroupIdOrderByStoreent

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

Parameters:
code - java.lang.String Code
Returns:
An Enumeration of all the ChargeTypeAccessBeans 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

setInitKey_chargeTypeId

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

getCode

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.

Specified by:
getCode in interface ChargeTypeAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCode

public void setCode(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setCode in interface ChargeTypeAccessBeanData

getStoreentId

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.

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

getStoreentIdInEJBType

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.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setStoreentId

public void setStoreentId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setStoreentId in interface ChargeTypeAccessBeanData

setStoreentId

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

getChargeTypeId

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.

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

getChargeTypeIdInEJBType

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.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setChargeTypeId

public void setChargeTypeId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setChargeTypeId in interface ChargeTypeAccessBeanData

setChargeTypeId

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

getDisplayAggregated

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.

Specified by:
getDisplayAggregated in interface ChargeTypeAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setDisplayAggregated

public void setDisplayAggregated(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setDisplayAggregated in interface ChargeTypeAccessBeanData

getMarkForDeleted

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

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

getMarkForDeletedInEJBType

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

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setMarkForDeleted

public void setMarkForDeleted(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setMarkForDeleted in interface ChargeTypeAccessBeanData

setMarkForDeleted

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

Feedback