com.ibm.commerce.fulfillment.objects
Class CalculationMethodAccessBean

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

public class CalculationMethodAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CalculationMethodAccessBeanData

Each row of this table defines a CalculationMethod implementation. This access bean corresponds to the database table 'CALMETHOD'.

See Also:
Serialized Form

Constructor Summary
CalculationMethodAccessBean()
Zero argument constructor used to initialize the access bean.
CalculationMethodAccessBean(java.lang.Integer calculationMethodId, java.lang.String name, java.lang.Integer storeentId, java.lang.Integer calculationUsageId, java.lang.Integer subclass)
Maps to a corresponding ejbCreate method in the home interface of the EJB
CalculationMethodAccessBean(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 findActiveCalculationCodeCombineMethods()
Retrieves the CalculationMethodAccessBeans referenced by STENCALUSG.ACTCC_CALMETHOD_ID.
java.util.Enumeration findActiveCalculationCodeCombineMethodsByStoreEntityAndCalculationUsage(java.lang.Integer storeEntityId, java.lang.Integer usageId)
Retrieves the active CalculationCodeCombine CalculationMethodAccessBeans of the specified StoreEntity and CalculationUsage.
java.util.Enumeration findActiveCalculationRuleCombineMethods()
Retrieves the CalculationMethodAccessBeans referenced by STENCALUSG.ACTRC_CALMETHOD_ID.
java.util.Enumeration findActiveCalculationRuleCombineMethodsByStoreEntityAndCalculationUsage(java.lang.Integer storeEntityId, java.lang.Integer usageId)
Retrieves the active CalculationRuleCombine CalculationMethodAccessBeans of the specified StoreEntity and CalculationUsage.
java.util.Enumeration findAll()
Retrieves all CalculationMethodAccessBeans.
java.lang.String getCalculationMethodId()
This method provides access to the CALMETHOD.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getCalculationMethodIdInEJBType()
This method provides access to the CALMETHOD.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getCalculationUsageId()
This method provides access to the CALMETHOD.CALUSAGE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getCalculationUsageIdInEJBType()
This method provides access to the CALMETHOD.CALUSAGE_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getDescription()
This method provides access to the CALMETHOD.DESCRIPTION column of DB2 type VARCHAR(508).
java.lang.String getName()
This method provides access to the CALMETHOD.NAME column of DB2 type VARCHAR(254).
java.lang.String getStoreEntityId()
This method provides access to the CALMETHOD.STOREENT_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getStoreEntityIdInEJBType()
This method provides access to the CALMETHOD.STOREENT_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getSubclass()
This method provides access to the CALMETHOD.SUBCLASS column of DB2 type INTEGER.
java.lang.Integer getSubclassInEJBType()
This method provides access to the CALMETHOD.SUBCLASS column of DB2 type INTEGER.
java.lang.String getTaskName()
This method provides access to the CALMETHOD.TASKNAME column of DB2 type VARCHAR(254).
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCalculationMethodId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCalculationMethodId(java.lang.String newValue)
This method accesses a non-CMP field
void setCalculationUsageId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCalculationUsageId(java.lang.String newValue)
This method accesses a non-CMP field
void setDescription(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_calculationMethodId(java.lang.String newValue)
Set the primary key for this object
void setName(java.lang.String newValue)
This method accesses a non-CMP field
void setStoreEntityId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setStoreEntityId(java.lang.String newValue)
This method accesses a non-CMP field
void setSubclass(java.lang.Integer newValue)
This method accesses a non-CMP field
void setSubclass(java.lang.String newValue)
This method accesses a non-CMP field
void setTaskName(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

CalculationMethodAccessBean

public CalculationMethodAccessBean()
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.CalculationMethod com.ibm.commerce.fulfillment.objimpl.CalculationMethodHomeBase.findByPrimaryKey(com.ibm.commerce.fulfillment.objects.CalculationMethodKey) 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_calculationMethodId( java.lang.Integer )

CalculationMethodAccessBean

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

CalculationMethodAccessBean

public CalculationMethodAccessBean(java.lang.Integer calculationMethodId,
                                   java.lang.String name,
                                   java.lang.Integer storeentId,
                                   java.lang.Integer calculationUsageId,
                                   java.lang.Integer subclass)
                            throws javax.naming.NamingException,
                                   javax.ejb.CreateException,
                                   javax.ejb.FinderException,
                                   java.rmi.RemoteException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
calculationMethodId - java.lang.Integer
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
Method Detail

findActiveCalculationCodeCombineMethods

public java.util.Enumeration findActiveCalculationCodeCombineMethods()
                                                              throws java.rmi.RemoteException,
                                                                     javax.ejb.FinderException,
                                                                     javax.naming.NamingException

Retrieves the CalculationMethodAccessBeans referenced by STENCALUSG.ACTCC_CALMETHOD_ID. Reserved for IBM internal use.

The SQL query used to fetch all the required rows from the CALMETHOD table is: SELECT * FROM CALMETHOD T1 WHERE T1.CALMETHOD_ID IN (SELECT STENCALUSG.ACTCC_CALMETHOD_ID FROM STENCALUSG)

Returns:
An Enumeration of all the CalculationMethodAccessBeans 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

findActiveCalculationCodeCombineMethodsByStoreEntityAndCalculationUsage

public java.util.Enumeration findActiveCalculationCodeCombineMethodsByStoreEntityAndCalculationUsage(java.lang.Integer storeEntityId,
                                                                                                     java.lang.Integer usageId)
                                                                                              throws java.rmi.RemoteException,
                                                                                                     javax.ejb.FinderException,
                                                                                                     javax.naming.NamingException

Retrieves the active CalculationCodeCombine CalculationMethodAccessBeans of the specified StoreEntity and CalculationUsage.

The SQL query used to fetch all the required rows from the CALMETHOD table is: SELECT * FROM CALMETHOD T1 WHERE T1.CALMETHOD_ID = (SELECT STENCALUSG.ACTCC_CALMETHOD_ID FROM STENCALUSG WHERE STENCALUSG.STOREENT_ID = ? AND STENCALUSG.CALUSAGE_ID = ?)

Parameters:
storeEntityId - the StoreEntity ID
usageId - the CalculationUsage ID
Returns:
An Enumeration of all the CalculationMethodAccessBeans 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

findActiveCalculationRuleCombineMethods

public java.util.Enumeration findActiveCalculationRuleCombineMethods()
                                                              throws java.rmi.RemoteException,
                                                                     javax.ejb.FinderException,
                                                                     javax.naming.NamingException

Retrieves the CalculationMethodAccessBeans referenced by STENCALUSG.ACTRC_CALMETHOD_ID. Reserved for IBM internal use.

The SQL query used to fetch all the required rows from the CALMETHOD table is: SELECT * FROM CALMETHOD T1 WHERE T1.CALMETHOD_ID IN (SELECT STENCALUSG.ACTRC_CALMETHOD_ID FROM STENCALUSG)

Returns:
An Enumeration of all the CalculationMethodAccessBeans 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

findActiveCalculationRuleCombineMethodsByStoreEntityAndCalculationUsage

public java.util.Enumeration findActiveCalculationRuleCombineMethodsByStoreEntityAndCalculationUsage(java.lang.Integer storeEntityId,
                                                                                                     java.lang.Integer usageId)
                                                                                              throws java.rmi.RemoteException,
                                                                                                     javax.ejb.FinderException,
                                                                                                     javax.naming.NamingException

Retrieves the active CalculationRuleCombine CalculationMethodAccessBeans of the specified StoreEntity and CalculationUsage.

The SQL query used to fetch all the required rows from the CALMETHOD table is: SELECT * FROM CALMETHOD T1 WHERE T1.CALMETHOD_ID = (SELECT STENCALUSG.ACTRC_CALMETHOD_ID FROM STENCALUSG WHERE STENCALUSG.STOREENT_ID = ? AND STENCALUSG.CALUSAGE_ID = ?)

Parameters:
storeEntityId - the StoreEntity ID
usageId - the CalculationUsage ID
Returns:
An Enumeration of all the CalculationMethodAccessBeans 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

findAll

public java.util.Enumeration findAll()
                              throws java.rmi.RemoteException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException

Retrieves all CalculationMethodAccessBeans.

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

Returns:
An Enumeration of all the CalculationMethodAccessBeans 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_calculationMethodId

public void setInitKey_calculationMethodId(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 CALMETHOD.DESCRIPTION column of DB2 type VARCHAR(508).

The following is a description of this column:

A description of the CalculationMethod, suitable for display by a user interface that creates and updates CalculationCodes and CalculationScales.

Specified by:
getDescription in interface CalculationMethodAccessBeanData
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 CalculationMethodAccessBeanData

getSubclass

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

This method provides access to the CALMETHOD.SUBCLASS column of DB2 type INTEGER.

The following is a description of this column:

The type of CalculationMethod. Refer to &l

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

getSubclassInEJBType

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

This method provides access to the CALMETHOD.SUBCLASS column of DB2 type INTEGER.

The following is a description of this column:

The type of CalculationMethod. Refer to &l

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

setSubclass

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

setSubclass

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

getStoreEntityId

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

This method provides access to the CALMETHOD.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The StoreEntity of which this CalculationMethod definition is a part.

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

getStoreEntityIdInEJBType

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

This method provides access to the CALMETHOD.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The StoreEntity of which this CalculationMethod definition is a part.

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

setStoreEntityId

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

setStoreEntityId

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

getCalculationMethodId

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

This method provides access to the CALMETHOD.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique identifier.

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

getCalculationMethodIdInEJBType

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

This method provides access to the CALMETHOD.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique identifier.

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

setCalculationMethodId

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

setCalculationMethodId

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

getCalculationUsageId

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

This method provides access to the CALMETHOD.CALUSAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationUsage (such as discount, shipping, sales tax, shipping tax) of the CalculationMethod.

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

getCalculationUsageIdInEJBType

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

This method provides access to the CALMETHOD.CALUSAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationUsage (such as discount, shipping, sales tax, shipping tax) of the CalculationMethod.

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

setCalculationUsageId

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

setCalculationUsageId

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

getTaskName

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

This method provides access to the CALMETHOD.TASKNAME column of DB2 type VARCHAR(254).

The following is a description of this column:

Complete name of the Java Interface Class for the method. For example, com.ibm.commerce.order.utils.CalculationCodeCombineCmd

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

setTaskName

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

getName

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

This method provides access to the CALMETHOD.NAME column of DB2 type VARCHAR(254).

The following is a description of this column:

A character string that uniquely identifies this CalculationMethod for a particular combination of StoreEntity, SubClass, and CalculationUsage.

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

setName

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

Feedback