com.ibm.commerce.fulfillment.objects
Class CalculationRangeAccessBean

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

public class CalculationRangeAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CalculationRangeAccessBeanData

Each row of this table represents a CalculationRange, which conceptually represents a row in a CalculationScale. This access bean corresponds to the database table 'CALRANGE'.

See Also:
Serialized Form

Constructor Summary
CalculationRangeAccessBean()
Zero argument constructor used to initialize the access bean.
CalculationRangeAccessBean(java.lang.Integer calculationScaleId, java.math.BigDecimal rangeStart, java.lang.Integer calMethodId)
Creates an access bean with the specified attributes.
CalculationRangeAccessBean(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 findByCalculationScale(java.lang.Integer calculationScaleId)
Retrieves the CalculationRangeAccessBeans of the specified CalculationScale.
java.util.Enumeration findByCalculationScaleAndLookupNumber(java.lang.Integer calculationScaleId, java.lang.Double lookupNumber)
Retrieves the CalculationRangeAccessBeans that match the specified CalculationScale and lookup number.
java.lang.String getCalculationMethodId()
This method provides access to the CALRANGE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getCalculationMethodIdInEJBType()
This method provides access to the CALRANGE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getCalculationRangeId()
This method provides access to the CALRANGE.CALRANGE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getCalculationRangeIdInEJBType()
This method provides access to the CALRANGE.CALRANGE_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getCalculationScaleId()
This method provides access to the CALRANGE.CALSCALE_ID column of DB2 type INTEGER.
java.lang.Integer getCalculationScaleIdInEJBType()
This method provides access to the CALRANGE.CALSCALE_ID column of DB2 type INTEGER.
java.lang.String getCumulative()
This method provides access to the CALRANGE.CUMULATIVE column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getCumulativeInEJBType()
This method provides access to the CALRANGE.CUMULATIVE column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getField1()
This method provides access to the CALRANGE.FIELD1 column of DB2 type DECIMAL(20 5).
java.math.BigDecimal getField1InEJBType()
This method provides access to the CALRANGE.FIELD1 column of DB2 type DECIMAL(20 5).
java.lang.String getField2()
This method provides access to the CALRANGE.FIELD2 column of DB2 type DECIMAL(20 5).
java.math.BigDecimal getField2InEJBType()
This method provides access to the CALRANGE.FIELD2 column of DB2 type DECIMAL(20 5).
java.lang.String getField3()
This method provides access to the CALRANGE.FIELD3 column of DB2 type VARCHAR(254).
java.lang.String getMarkForDelete()
This method provides access to the CALRANGE.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getMarkForDeleteInEJBType()
This method provides access to the CALRANGE.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getRangeStart()
This method provides access to the CALRANGE.RANGESTART column of DB2 type DECIMAL(20 5).
java.math.BigDecimal getRangeStartInEJBType()
This method provides access to the CALRANGE.RANGESTART column of DB2 type DECIMAL(20 5).
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 setCalculationScaleId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCalculationScaleId(java.lang.String newValue)
This method accesses a non-CMP field
void setCumulative(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCumulative(java.lang.String newValue)
This method accesses a non-CMP field
void setField1(java.math.BigDecimal newValue)
This method accesses a non-CMP field
void setField1(java.lang.String newValue)
This method accesses a non-CMP field
void setField2(java.math.BigDecimal newValue)
This method accesses a non-CMP field
void setField2(java.lang.String newValue)
This method accesses a non-CMP field
void setField3(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_calculationRangeId(java.lang.String newValue)
Set the primary key for this object
void setMarkForDelete(java.lang.Integer newValue)
This method accesses a non-CMP field
void setMarkForDelete(java.lang.String newValue)
This method accesses a non-CMP field
void setRangeStart(java.math.BigDecimal newValue)
This method accesses a non-CMP field
void setRangeStart(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

CalculationRangeAccessBean

public CalculationRangeAccessBean()
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.CalculationRange com.ibm.commerce.fulfillment.objimpl.CalculationRangeHomeBase.findByPrimaryKey(com.ibm.commerce.fulfillment.objects.CalculationRangeKey) 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_calculationRangeId( java.lang.Integer )

CalculationRangeAccessBean

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

CalculationRangeAccessBean

public CalculationRangeAccessBean(java.lang.Integer calculationScaleId,
                                  java.math.BigDecimal rangeStart,
                                  java.lang.Integer calMethodId)
                           throws javax.naming.NamingException,
                                  javax.ejb.CreateException,
                                  javax.ejb.FinderException,
                                  java.rmi.RemoteException

Creates an access bean with the specified attributes.

Parameters:
calculationScaleId - the CalculationScale ID
rangeStart - the range start
calMethodId - the CalculationMethod 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
javax.ejb.FinderException
Method Detail

findByCalculationScale

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

Retrieves the CalculationRangeAccessBeans of the specified CalculationScale.

The SQL query used to fetch all the required rows from the CALRANGE table is: SELECT * FROM CALRANGE T1 WHERE T1.CALSCALE_ID = ? ORDER BY T1.RANGESTART

Parameters:
calculationScaleId - the CalculationScale ID
Returns:
An Enumeration of all the CalculationScaleAccessBeans 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

findByCalculationScaleAndLookupNumber

public java.util.Enumeration findByCalculationScaleAndLookupNumber(java.lang.Integer calculationScaleId,
                                                                   java.lang.Double lookupNumber)
                                                            throws java.rmi.RemoteException,
                                                                   javax.ejb.FinderException,
                                                                   javax.naming.NamingException

Retrieves the CalculationRangeAccessBeans that match the specified CalculationScale and lookup number.

The SQL query used to fetch all the required rows from the CALRANGE table is: SELECT * FROM CALRANGE T1 WHERE T1.CALSCALE_ID = ? AND T1.RANGESTART <= ? ORDER BY T1.RANGESTART

Parameters:
calculationScaleId - the CalculationScale ID
lookupNumber - the lookup number
Returns:
An Enumeration of all the CalculationScaleAccessBeans 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_calculationRangeId

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

getCalculationScaleId

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

This method provides access to the CALRANGE.CALSCALE_ID column of DB2 type INTEGER.

The following is a description of this column:

The CalculationScale of which this CalculationRange is a part.

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

getCalculationScaleIdInEJBType

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

This method provides access to the CALRANGE.CALSCALE_ID column of DB2 type INTEGER.

The following is a description of this column:

The CalculationScale of which this CalculationRange is a part.

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

setCalculationScaleId

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

setCalculationScaleId

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

getMarkForDelete

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

This method provides access to the CALRANGE.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Reserved for IBM internal use.

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

getMarkForDeleteInEJBType

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

This method provides access to the CALRANGE.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Reserved for IBM internal use.

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

setMarkForDelete

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

setMarkForDelete

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

getField3

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

This method provides access to the CALRANGE.FIELD3 column of DB2 type VARCHAR(254).

The following is a description of this column:

Customizable.

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

setField3

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

getField2

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

This method provides access to the CALRANGE.FIELD2 column of DB2 type DECIMAL(20 5).

The following is a description of this column:

Customizable.

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

getField2InEJBType

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

This method provides access to the CALRANGE.FIELD2 column of DB2 type DECIMAL(20 5).

The following is a description of this column:

Customizable.

Returns:
java.math.BigDecimal
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setField2

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

setField2

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

getField1

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

This method provides access to the CALRANGE.FIELD1 column of DB2 type DECIMAL(20 5).

The following is a description of this column:

Customizable.

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

getField1InEJBType

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

This method provides access to the CALRANGE.FIELD1 column of DB2 type DECIMAL(20 5).

The following is a description of this column:

Customizable.

Returns:
java.math.BigDecimal
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setField1

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

setField1

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

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 CALRANGE.CALRANGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique identifier.

Specified by:
getCalculationRangeId in interface CalculationRangeAccessBeanData
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 CALRANGE.CALRANGE_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

getRangeStart

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

This method provides access to the CALRANGE.RANGESTART column of DB2 type DECIMAL(20 5).

The following is a description of this column:

If a lookup number is greater than or equal to RANGESTART, or if RANGESTART is NULL, this row matches the lookup number.

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

getRangeStartInEJBType

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

This method provides access to the CALRANGE.RANGESTART column of DB2 type DECIMAL(20 5).

The following is a description of this column:

If a lookup number is greater than or equal to RANGESTART, or if RANGESTART is NULL, this row matches the lookup number.

Returns:
java.math.BigDecimal
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setRangeStart

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

setRangeStart

public void setRangeStart(java.math.BigDecimal 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 CALRANGE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRangeMethod that determines a monetary amount from the CalculationRangeLookupResult. For example, FixedAmountCalculationRangeCmd, PerUnitAmountCalculationRangeCmd, or PercentageCalculationRangeCmd.

Specified by:
getCalculationMethodId in interface CalculationRangeAccessBeanData
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 CALRANGE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRangeMethod that determines a monetary amount from the CalculationRangeLookupResult. For example, FixedAmountCalculationRangeCmd, PerUnitAmountCalculationRangeCmd, or PercentageCalculationRangeCmd.

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 CalculationRangeAccessBeanData

setCalculationMethodId

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

getCumulative

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

This method provides access to the CALRANGE.CUMULATIVE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Valid values:&l

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

getCumulativeInEJBType

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

This method provides access to the CALRANGE.CUMULATIVE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Valid values:&l

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

setCumulative

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

setCumulative

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

Feedback