com.ibm.commerce.fulfillment.objects
Class CalculationCodeDescriptionAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.fulfillment.objects.CalculationCodeDescriptionAccessBean
All Implemented Interfaces:
CalculationCodeDescriptionAccessBeanData

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

Each row of this table contains Language-dependent information for a CalculationCode. This access bean corresponds to the database table 'CALCODEDSC'.

See Also:
Serialized Form

Constructor Summary
CalculationCodeDescriptionAccessBean()
Zero argument constructor used to initialize the access bean.
CalculationCodeDescriptionAccessBean(java.lang.Integer codeId, java.lang.Integer languageId)
Creates an access bean with the specified attributes.
CalculationCodeDescriptionAccessBean(java.lang.Integer codeId, java.lang.Integer languageId, java.lang.String description)
Creates an access bean with the specified attributes.
CalculationCodeDescriptionAccessBean(java.lang.Integer codeId, java.lang.Integer languageId, java.lang.String description, java.lang.String longDescription)
Creates an access bean with the specified attributes.
CalculationCodeDescriptionAccessBean(javax.ejb.EJBObject o)
constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByCalculationCode(java.lang.Integer calculationCodeId)
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).
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 accesses a non-CMP field
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setDescription(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_calculationCodeId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_languageId(java.lang.String newValue)
Set the primary key for this object
void setLongDescription(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

CalculationCodeDescriptionAccessBean

public CalculationCodeDescriptionAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.fulfillment.objects.CalculationCodeDescription com.ibm.commerce.fulfillment.objimpl.CalculationCodeDescriptionHomeBase.findByPrimaryKey(com.ibm.commerce.fulfillment.objects.CalculationCodeDescriptionKey) 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_calculationCodeId( java.lang.Integer ) setInitKey_languageId( java.lang.Integer )

CalculationCodeDescriptionAccessBean

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

CalculationCodeDescriptionAccessBean

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

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

Parameters:
codeId - the CalculationCode ID
languageId - 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 codeId,
                                            java.lang.Integer languageId,
                                            java.lang.String description)
                                     throws javax.ejb.CreateException,
                                            java.rmi.RemoteException,
                                            javax.naming.NamingException

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

Parameters:
codeId - the CalculationCode ID
languageId - the Language ID
description - 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 codeId,
                                            java.lang.Integer languageId,
                                            java.lang.String description,
                                            java.lang.String longDescription)
                                     throws javax.ejb.CreateException,
                                            java.rmi.RemoteException,
                                            javax.naming.NamingException

Creates an access bean with the specified attributes.

Parameters:
codeId - the CalculationCode ID
languageId - the Language ID
description - the description
longDescription - 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

findByCalculationCode

public java.util.Enumeration findByCalculationCode(java.lang.Integer calculationCodeId)
                                            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:
calculationCodeId - 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

setInitKey_calculationCodeId

public void setInitKey_calculationCodeId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_languageId

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

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

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setDescription

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

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getLongDescription

public java.lang.String getLongDescription()
                                    throws java.rmi.RemoteException,
                                           javax.ejb.CreateException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getLongDescription in interface CalculationCodeDescriptionAccessBeanData
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setLongDescription

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

Feedback