com.ibm.commerce.fulfillment.objects
Class CalculationRangeLookupResultAccessBean

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

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

Each row in this table represents a CalculationRangeLookupResult, which is part of a CalculationRange. This access bean corresponds to the database table 'CALRLOOKUP'.

See Also:
Serialized Form

Constructor Summary
CalculationRangeLookupResultAccessBean()
Zero argument constructor used to initialize the access bean.
CalculationRangeLookupResultAccessBean(java.lang.Integer arg1, java.lang.String arg2)
CalculationRangeLookupResultAccessBean(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 findByRange(java.lang.Integer calculationRangeId)
Retrieves the CalculationRangeLookupResultAccessBeans of the specified CalculationRange.
java.util.Enumeration findByRangeAndCurrency(java.lang.Integer calculationRangeId, java.lang.String currencyCode)
Retrieves the CalculationRangeLookupResultAccessBeans that match the specified CalculationRange and currency.
java.util.Enumeration findPercentageLookupResultsByRange(java.lang.Integer calculationRangeId)
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).
java.lang.String getValue()
This method provides access to the CALRLOOKUP.VALUE column of DB2 type DECIMAL(20 5) NOT NULL DEFAULT 0.
java.math.BigDecimal getValueInEJBType()
This method provides access to the CALRLOOKUP.VALUE column of DB2 type DECIMAL(20 5) NOT NULL DEFAULT 0.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCalculationRangeId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCalculationRangeId(java.lang.String newValue)
This method accesses a non-CMP field
void setCurrency(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_calculationRangeLookupResultId(java.lang.String newValue)
Set the primary key for this object
void setValue(java.math.BigDecimal newValue)
This method accesses a non-CMP field
void setValue(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

CalculationRangeLookupResultAccessBean

public CalculationRangeLookupResultAccessBean()
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.CalculationRangeLookupResult com.ibm.commerce.fulfillment.objimpl.CalculationRangeLookupResultHomeBase.findByPrimaryKey(com.ibm.commerce.fulfillment.objects.CalculationRangeLookupResultKey) 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_calculationRangeLookupResultId( java.lang.Integer )

CalculationRangeLookupResultAccessBean

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

CalculationRangeLookupResultAccessBean

public CalculationRangeLookupResultAccessBean(java.lang.Integer arg1,
                                              java.lang.String arg2)
                                       throws javax.naming.NamingException,
                                              javax.ejb.FinderException,
                                              javax.ejb.CreateException,
                                              java.rmi.RemoteException
Parameters:
arg1 - java.lang.Integer
arg2 - java.lang.String
Throws:
javax.naming.NamingException
javax.ejb.CreateException
javax.ejb.FinderException
java.rmi.RemoteException
Method Detail

findByRange

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

findByRangeAndCurrency

public java.util.Enumeration findByRangeAndCurrency(java.lang.Integer calculationRangeId,
                                                    java.lang.String currencyCode)
                                             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:
calculationRangeId - the CalculationRange ID
currencyCode - 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

findPercentageLookupResultsByRange

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

setInitKey_calculationRangeLookupResultId

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

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 DEFAULT 0.

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

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 DEFAULT 0.

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

setValue

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

setValue

public void setValue(java.math.BigDecimal newValue)
This method accesses a non-CMP field

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

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

setCurrency

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

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

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

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

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

setCalculationRangeId

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

setCalculationRangeId

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

Feedback