com.ibm.commerce.fulfillment.objects
Class CalculationCodeDescriptionAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.fulfillment.objects.CalculationCodeDescriptionAccessBean
All Implemented Interfaces:
CalculationCodeDescriptionAccessBeanData, java.io.Serializable

public class CalculationCodeDescriptionAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CalculationCodeDescriptionAccessBeanData

This bean provides access to the CALCODEDSC table.

The following is a description of this table:

Each row of this table contains Language-dependent information for a CalculationCode.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
CalculationCodeDescriptionAccessBean()
          Default constructor.
CalculationCodeDescriptionAccessBean(javax.ejb.EJBObject aEJBObject)
          Creates an access bean for the specified EJB.
CalculationCodeDescriptionAccessBean(java.lang.Integer aCalculationCodeId, java.lang.Integer aLanguageId)
          Creates an access bean with the specified attributes.
CalculationCodeDescriptionAccessBean(java.lang.Integer aCalculationCodeId, java.lang.Integer aLanguageId, java.lang.String aDescription)
          Creates an access bean with the specified attributes.
CalculationCodeDescriptionAccessBean(java.lang.Integer aCalculationCodeId, java.lang.Integer aLanguageId, java.lang.String aDescription, java.lang.String aLongDescription)
          Creates an access bean with the specified attributes.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByCalculationCode(java.lang.Integer aCalculationCodeId)
          Retrieves the CalculationCodeDescriptionAccessBeans that match the specified CalculationCode.
 java.lang.String getCalculationCodeId()
          This method provides access to the CALCODEDSC.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCalculationCodeIdInEJBType()
          This method provides access to the CALCODEDSC.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getDescription()
          This method provides access to the CALCODEDSC.DESCRIPTION column of DB2 type VARCHAR(254) NULL.
 java.lang.String getLanguageId()
          This method provides access to the CALCODEDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getLanguageIdInEJBType()
          This method provides access to the CALCODEDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getLongDescription()
          This method provides access to the CALCODEDSC.LONGDESCRIPTION column of DB2 type LONG NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setDescription(java.lang.String aDescription)
          This method provides access to the CALCODEDSC.DESCRIPTION column of DB2 type VARCHAR(254) NULL.
 void setInitKey_calculationCodeId(java.lang.String aInitKey_calculationCodeId)
          Set the primary key for this object
 void setInitKey_languageId(java.lang.String aInitKey_languageId)
          Set the primary key for this object
 void setLongDescription(java.lang.String aLongDescription)
          This method provides access to the CALCODEDSC.LONGDESCRIPTION column of DB2 type LONG NULL.
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalculationCodeDescriptionAccessBean

public CalculationCodeDescriptionAccessBean()

Default constructor. Maps to findByPrimaryKey.


CalculationCodeDescriptionAccessBean

public CalculationCodeDescriptionAccessBean(javax.ejb.EJBObject aEJBObject)
                                     throws java.rmi.RemoteException

Creates an access bean for the specified EJB.

Parameters:
aEJBObject - The EJB Object used for the access bean construction.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

CalculationCodeDescriptionAccessBean

public CalculationCodeDescriptionAccessBean(java.lang.Integer aCalculationCodeId,
                                            java.lang.Integer aLanguageId)
                                     throws javax.ejb.CreateException,
                                            java.rmi.RemoteException,
                                            javax.naming.NamingException

Creates an access bean with the specified attributes. Reserved for IBM internal use.

Parameters:
aCalculationCodeId - the CalculationCode ID
aLanguageId - the Language ID
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception

CalculationCodeDescriptionAccessBean

public CalculationCodeDescriptionAccessBean(java.lang.Integer aCalculationCodeId,
                                            java.lang.Integer aLanguageId,
                                            java.lang.String aDescription)
                                     throws javax.ejb.CreateException,
                                            java.rmi.RemoteException,
                                            javax.naming.NamingException

Creates an access bean with the specified attributes. Reserved for IBM internal use.

Parameters:
aCalculationCodeId - the CalculationCode ID
aLanguageId - the Language ID
aDescription - the description
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception

CalculationCodeDescriptionAccessBean

public CalculationCodeDescriptionAccessBean(java.lang.Integer aCalculationCodeId,
                                            java.lang.Integer aLanguageId,
                                            java.lang.String aDescription,
                                            java.lang.String aLongDescription)
                                     throws javax.ejb.CreateException,
                                            java.rmi.RemoteException,
                                            javax.naming.NamingException

Creates an access bean with the specified attributes.

Parameters:
aCalculationCodeId - the CalculationCode ID
aLanguageId - the Language ID
aDescription - the description
aLongDescription - the long description
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception
Method Detail

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

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByCalculationCode

public java.util.Enumeration findByCalculationCode(java.lang.Integer aCalculationCodeId)
                                            throws java.rmi.RemoteException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException

Retrieves the CalculationCodeDescriptionAccessBeans that match the specified CalculationCode.

The SQL query used to fetch all the required rows from the CALCODEDSC table is:
SELECT * FROM CALCODEDSC T1 WHERE
T1.CALCODE_ID = ?

Parameters:
aCalculationCodeId - the CalculationCode ID
Returns:
An Enumeration of all the CalculationCodeDescriptionAccessBeans 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

getCalculationCodeId

public java.lang.String getCalculationCodeId()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.ejb.FinderException,
                                             javax.naming.NamingException

This method provides access to the CALCODEDSC.CALCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCode to which this information applies.

Specified by:
getCalculationCodeId in interface CalculationCodeDescriptionAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getCalculationCodeIdInEJBType

public java.lang.Integer getCalculationCodeIdInEJBType()
                                                throws java.rmi.RemoteException,
                                                       javax.ejb.CreateException,
                                                       javax.ejb.FinderException,
                                                       javax.naming.NamingException

This method provides access to the CALCODEDSC.CALCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCode to which this information applies.

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

getDescription

public java.lang.String getDescription()
                                throws java.rmi.RemoteException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException

This method provides access to the CALCODEDSC.DESCRIPTION column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

A short description of the CalculationCode. For discount CalculationCodes, this information is copied to the OrderItemAdjustments created when the CalculationCode is applied to OrderItems in an Order.

Specified by:
getDescription in interface CalculationCodeDescriptionAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getLanguageId

public java.lang.String getLanguageId()
                               throws java.rmi.RemoteException,
                                      javax.ejb.CreateException,
                                      javax.ejb.FinderException,
                                      javax.naming.NamingException

This method provides access to the CALCODEDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language for which this information applies. For a list of language components, see the LANGUAGE table.

Specified by:
getLanguageId in interface CalculationCodeDescriptionAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getLanguageIdInEJBType

public java.lang.Integer getLanguageIdInEJBType()
                                         throws java.rmi.RemoteException,
                                                javax.ejb.CreateException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException

This method provides access to the CALCODEDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language for which this information applies. For a list of language components, see the LANGUAGE table.

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

getLongDescription

public java.lang.String getLongDescription()
                                    throws java.rmi.RemoteException,
                                           javax.ejb.CreateException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException

This method provides access to the CALCODEDSC.LONGDESCRIPTION column of DB2 type LONG NULL.

The following is a description of this column:

A detailed description of the CalculationCode.

Specified by:
getLongDescription in interface CalculationCodeDescriptionAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setDescription

public void setDescription(java.lang.String aDescription)

This method provides access to the CALCODEDSC.DESCRIPTION column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

A short description of the CalculationCode. For discount CalculationCodes, this information is copied to the OrderItemAdjustments created when the CalculationCode is applied to OrderItems in an Order.

Specified by:
setDescription in interface CalculationCodeDescriptionAccessBeanData
Parameters:
aDescription - java.lang.String
Returns:
void

setInitKey_calculationCodeId

public void setInitKey_calculationCodeId(java.lang.String aInitKey_calculationCodeId)

Set the primary key for this object

Parameters:
aInitKey_calculationCodeId - java.lang.String
Returns:
void

setInitKey_languageId

public void setInitKey_languageId(java.lang.String aInitKey_languageId)

Set the primary key for this object

Parameters:
aInitKey_languageId - java.lang.String
Returns:
void

setLongDescription

public void setLongDescription(java.lang.String aLongDescription)

This method provides access to the CALCODEDSC.LONGDESCRIPTION column of DB2 type LONG NULL.

The following is a description of this column:

A detailed description of the CalculationCode.

Specified by:
setLongDescription in interface CalculationCodeDescriptionAccessBeanData
Parameters:
aLongDescription - java.lang.String
Returns:
void