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.

See Also:
Serialized Form

Constructor Summary
ChargeTypeAccessBean()
          constructor
ChargeTypeAccessBean(javax.ejb.EJBObject o)
          constructor
ChargeTypeAccessBean(java.lang.String arg0, java.lang.String arg1, java.lang.Integer arg2)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findByCodeAndStoreIdOrStoreGroupIdOrderByStoreent(java.lang.String arg0, java.lang.Integer arg1, java.lang.Integer arg2)           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 provides access to the CHARGETYPE.CHARGETYPE_ID column of DB2 type INTEGER NOT NULL.
 void setChargeTypeId(java.lang.String newValue)
          This method provides access to the CHARGETYPE.CHARGETYPE_ID column of DB2 type INTEGER NOT NULL.
 void setCode(java.lang.String newValue)
          This method provides access to the CHARGETYPE.CODE column of DB2 type CHAR(10) NOT NULL.
 void setDisplayAggregated(java.lang.String newValue)
          This method provides access to the CHARGETYPE.DISPLAYAGGREGATED column of DB2 type CHAR(1) NOT NULL.
 void setInitKey_chargeTypeId(java.lang.String newValue)
          Set the primary key for this object
 void setMarkForDeleted(java.lang.Integer newValue)
          This method provides access to the CHARGETYPE.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setMarkForDeleted(java.lang.String newValue)
          This method provides access to the CHARGETYPE.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setStoreentId(java.lang.Integer newValue)
          This method provides access to the CHARGETYPE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void setStoreentId(java.lang.String newValue)
          This method provides access to the CHARGETYPE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChargeTypeAccessBean

public ChargeTypeAccessBean()
constructor

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 arg0,
                            java.lang.String arg1,
                            java.lang.Integer arg2)
                     throws javax.naming.NamingException,
                            javax.ejb.CreateException,
                            java.rmi.RemoteException,
                            javax.ejb.FinderException
constructor
Parameters:
arg0 - java.lang.String
arg1 - java.lang.String
arg2 - java.lang.Integer
Throws:
javax.naming.NamingException
javax.ejb.CreateException
java.rmi.RemoteException
javax.ejb.FinderException
Method Detail

findByCodeAndStoreIdOrStoreGroupIdOrderByStoreent

public java.util.Enumeration findByCodeAndStoreIdOrStoreGroupIdOrderByStoreent(java.lang.String arg0,
                                                                               java.lang.Integer arg1,
                                                                               java.lang.Integer arg2)
                                                                        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

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 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:
setCode in interface ChargeTypeAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

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 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:
setStoreentId in interface ChargeTypeAccessBeanData
Parameters:
newValue - String
Returns:
void

setStoreentId

public void setStoreentId(java.lang.Integer newValue)

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.

Parameters:
newValue - java.lang.Integer
Returns:
void

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 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:
setChargeTypeId in interface ChargeTypeAccessBeanData
Parameters:
newValue - String
Returns:
void

setChargeTypeId

public void setChargeTypeId(java.lang.Integer newValue)

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.

Parameters:
newValue - java.lang.Integer
Returns:
void

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 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:
setDisplayAggregated in interface ChargeTypeAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

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 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:
setMarkForDeleted in interface ChargeTypeAccessBeanData
Parameters:
newValue - String
Returns:
void

setMarkForDeleted

public void setMarkForDeleted(java.lang.Integer newValue)

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

Parameters:
newValue - java.lang.Integer
Returns:
void