com.ibm.commerce.fulfillment.objects
Class CalculationRangeLookupResultAccessBean

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

public class CalculationRangeLookupResultAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CalculationRangeLookupResultAccessBeanData

This bean provides access to the CALRLOOKUP table.

The following is a description of this table:

Each row in this table represents a CalculationRangeLookupResult, which is part of a CalculationRange.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
CalculationRangeLookupResultAccessBean()
          Default constructor.
CalculationRangeLookupResultAccessBean(javax.ejb.EJBObject aEJBObject)
          Creates an access bean for the specified EJB.
CalculationRangeLookupResultAccessBean(java.lang.Integer aCalculationRangeId)
          Creates an access bean with the specified attributes.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByRange(java.lang.Integer aCalculationRangeId)
          Retrieves the CalculationRangeLookupResultAccessBeans of the specified CalculationRange.
 java.util.Enumeration findByRangeAndCurrency(java.lang.Integer aCalculationRangeId, java.lang.String aCurrency)
          Retrieves the CalculationRangeLookupResultAccessBeans that match the specified CalculationRange and currency.
 java.util.Enumeration findPercentageLookupResultsByRange(java.lang.Integer aCalculationRangeId)
          Retrieves the CalculationRangeLookupResultAccessBeans of the specified CalculationRange, with no currency specified.
 java.lang.String getCalculationRangeId()
          This method provides access to the CALRLOOKUP.CALRANGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCalculationRangeIdInEJBType()
          This method provides access to the CALRLOOKUP.CALRANGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getCalculationRangeLookupResultId()
          This method provides access to the CALRLOOKUP.CALRLOOKUP_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCalculationRangeLookupResultIdInEJBType()
          This method provides access to the CALRLOOKUP.CALRLOOKUP_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getCurrency()
          This method provides access to the CALRLOOKUP.SETCCURR column of DB2 type CHAR(3) NULL.
 java.lang.String getValue()
          This method provides access to the CALRLOOKUP.VALUE column of DB2 type DECIMAL(20,5) NOT NULL.
 java.math.BigDecimal getValueInEJBType()
          This method provides access to the CALRLOOKUP.VALUE column of DB2 type DECIMAL(20,5) NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCalculationRangeId(java.lang.Integer aCalculationRangeId)
          This method provides access to the CALRLOOKUP.CALRANGE_ID column of DB2 type INTEGER NOT NULL.
 void setCalculationRangeId(java.lang.String aCalculationRangeId)
          This method provides access to the CALRLOOKUP.CALRANGE_ID column of DB2 type INTEGER NOT NULL.
 void setCurrency(java.lang.String aCurrency)
          This method provides access to the CALRLOOKUP.SETCCURR column of DB2 type CHAR(3) NULL.
 void setInitKey_calculationRangeLookupResultId(java.lang.String aInitKey_calculationRangeLookupResultId)
          Set the primary key for this object
 void setValue(java.math.BigDecimal aValue)
          This method provides access to the CALRLOOKUP.VALUE column of DB2 type DECIMAL(20,5) NOT NULL.
 void setValue(java.lang.String aValue)
          This method provides access to the CALRLOOKUP.VALUE column of DB2 type DECIMAL(20,5) NOT 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

CalculationRangeLookupResultAccessBean

public CalculationRangeLookupResultAccessBean()

Default constructor. Maps to findByPrimaryKey.


CalculationRangeLookupResultAccessBean

public CalculationRangeLookupResultAccessBean(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

CalculationRangeLookupResultAccessBean

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

Creates an access bean with the specified attributes.

Parameters:
aCalculationRangeId - the CalculationRange 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
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

findByRange

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

Retrieves the CalculationRangeLookupResultAccessBeans of the specified CalculationRange.

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

Parameters:
aCalculationRangeId - the CalculationRange ID
Returns:
An Enumeration of all the CalculationRangeLookupResultAccessBeans 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

findByRangeAndCurrency

public java.util.Enumeration findByRangeAndCurrency(java.lang.Integer aCalculationRangeId,
                                                    java.lang.String aCurrency)
                                             throws java.rmi.RemoteException,
                                                    javax.ejb.FinderException,
                                                    javax.naming.NamingException

Retrieves the CalculationRangeLookupResultAccessBeans that match the specified CalculationRange and currency.

The SQL query used to fetch all the required rows from the CALRLOOKUP table is:
SELECT * FROM CALRLOOKUP T1 WHERE
T1.CALRANGE_ID = ? AND T1.SETCCURR = ?

Parameters:
aCalculationRangeId - the CalculationRange ID
aCurrency - the currency
Returns:
An Enumeration of all the CalculationRangeLookupResultAccessBeans 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

findPercentageLookupResultsByRange

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

Retrieves the CalculationRangeLookupResultAccessBeans of the specified CalculationRange, with no currency specified. Reserved for IBM internal use.

The SQL query used to fetch all the required rows from the CALRLOOKUP table is:
SELECT * FROM CALRLOOKUP T1 WHERE
T1.CALRANGE_ID = ? AND T1.SETCCURR IS NULL

Parameters:
aCalculationRangeId - the CalculationRange ID
Returns:
An Enumeration of all the CalculationRangeLookupResultAccessBeans 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

getCalculationRangeId

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

This method provides access to the CALRLOOKUP.CALRANGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRange of which this CalculationRangeLookupResult is a part.

Specified by:
getCalculationRangeId in interface CalculationRangeLookupResultAccessBeanData
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

getCalculationRangeIdInEJBType

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

This method provides access to the CALRLOOKUP.CALRANGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRange of which this CalculationRangeLookupResult is a part.

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

getCalculationRangeLookupResultId

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

This method provides access to the CALRLOOKUP.CALRLOOKUP_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique identifier.

Specified by:
getCalculationRangeLookupResultId in interface CalculationRangeLookupResultAccessBeanData
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

getCalculationRangeLookupResultIdInEJBType

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

This method provides access to the CALRLOOKUP.CALRLOOKUP_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 - 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

getCurrency

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

This method provides access to the CALRLOOKUP.SETCCURR column of DB2 type CHAR(3) NULL.

The following is a description of this column:

If specified, this is the currency of the monetary amount in the VALUE column. This is a currency code as per ISO 4217 standards.

Specified by:
getCurrency in interface CalculationRangeLookupResultAccessBeanData
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

getValue

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

This method provides access to the CALRLOOKUP.VALUE column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

The value of the CalculationRangeLookupResult, used by the CalculationRangeMethod of the CalculationRange to determine a monetary result.

Specified by:
getValue in interface CalculationRangeLookupResultAccessBeanData
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

getValueInEJBType

public java.math.BigDecimal getValueInEJBType()
                                       throws java.rmi.RemoteException,
                                              javax.ejb.CreateException,
                                              javax.ejb.FinderException,
                                              javax.naming.NamingException

This method provides access to the CALRLOOKUP.VALUE column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

The value of the CalculationRangeLookupResult, used by the CalculationRangeMethod of the CalculationRange to determine a monetary result.

Returns:
java.math.BigDecimal
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

setCalculationRangeId

public void setCalculationRangeId(java.lang.Integer aCalculationRangeId)

This method provides access to the CALRLOOKUP.CALRANGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRange of which this CalculationRangeLookupResult is a part.

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

setCalculationRangeId

public void setCalculationRangeId(java.lang.String aCalculationRangeId)

This method provides access to the CALRLOOKUP.CALRANGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRange of which this CalculationRangeLookupResult is a part.

Specified by:
setCalculationRangeId in interface CalculationRangeLookupResultAccessBeanData
Parameters:
aCalculationRangeId - java.lang.String
Returns:
void

setCurrency

public void setCurrency(java.lang.String aCurrency)

This method provides access to the CALRLOOKUP.SETCCURR column of DB2 type CHAR(3) NULL.

The following is a description of this column:

If specified, this is the currency of the monetary amount in the VALUE column. This is a currency code as per ISO 4217 standards.

Specified by:
setCurrency in interface CalculationRangeLookupResultAccessBeanData
Parameters:
aCurrency - java.lang.String
Returns:
void

setInitKey_calculationRangeLookupResultId

public void setInitKey_calculationRangeLookupResultId(java.lang.String aInitKey_calculationRangeLookupResultId)

Set the primary key for this object

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

setValue

public void setValue(java.math.BigDecimal aValue)

This method provides access to the CALRLOOKUP.VALUE column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

The value of the CalculationRangeLookupResult, used by the CalculationRangeMethod of the CalculationRange to determine a monetary result.

Parameters:
aValue - java.math.BigDecimal
Returns:
void

setValue

public void setValue(java.lang.String aValue)

This method provides access to the CALRLOOKUP.VALUE column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

The value of the CalculationRangeLookupResult, used by the CalculationRangeMethod of the CalculationRange to determine a monetary result.

Specified by:
setValue in interface CalculationRangeLookupResultAccessBeanData
Parameters:
aValue - java.lang.String
Returns:
void