com.ibm.commerce.fulfillment.objects
Class OrderItemCalculationCodeAccessBean

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

public class OrderItemCalculationCodeAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements OrderItemCalculationCodeAccessBeanData

Each row of this table indicates to the CalculationCodeCombineMethod that a CalculationCode is directly attached to an OrderItem. The attachment is not effective unless the directCalculationCodeAttachment flag in ORDERITEMS.PREPAREFLAGS is 1. This access bean corresponds to the database table 'ORDICALCD'.

See Also:
Serialized Form

Constructor Summary
OrderItemCalculationCodeAccessBean()
Zero argument constructor used to initialize the access bean.
OrderItemCalculationCodeAccessBean(javax.ejb.EJBObject o)
constructor
OrderItemCalculationCodeAccessBean(java.lang.Long newOrderItemId, java.lang.Integer newCalculationCodeId)
Creates an access bean with the specified attributes.
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByOrderItemId(java.lang.Long orderItemId)
Retrieves the OrderItemCalculationCodeAccessBeans that match the specified Order Item.
java.util.Enumeration findByOrderItemIdAndCalculationCodeId(java.lang.Long orderItemId, java.lang.Integer calculationCodeId)
Retrieves the OrderCalculationCodeAccessBeans that match the specified OrderItem and CalculationCode.
java.util.Enumeration findByOrderItems(java.lang.Long[] orderItemIds)
Retrieves the OrderItemCalculationCodeAccessBeans that match the specified OrderItems.
java.lang.String getCalculationCodeId()
This method provides access to the ORDICALCD.CALCODE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getCalculationCodeIdInEJBType()
This method provides access to the ORDICALCD.CALCODE_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getCalculationFlags()
This method provides access to the ORDICALCD.CALFLAGS column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getCalculationFlagsInEJBType()
This method provides access to the ORDICALCD.CALFLAGS column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getCalculationParameterAmount()
This method provides access to the ORDICALCD.CALPARMAMT column of DB2 type DECIMAL(20 5) NOT NULL DEFAULT 0.
java.math.BigDecimal getCalculationParameterAmountInEJBType()
This method provides access to the ORDICALCD.CALPARMAMT column of DB2 type DECIMAL(20 5) NOT NULL DEFAULT 0.
java.lang.String getCalculationParameterType()
This method provides access to the ORDICALCD.CALPARMTYPE column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getCalculationParameterTypeInEJBType()
This method provides access to the ORDICALCD.CALPARMTYPE column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getOrderItemCalculationCodeId()
This method provides access to the ORDICALCD.ORDICALCD_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getOrderItemCalculationCodeIdInEJBType()
This method provides access to the ORDICALCD.ORDICALCD_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getOrderItemId()
This method provides access to the ORDICALCD.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getOrderItemIdInEJBType()
This method provides access to the ORDICALCD.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCalculationCodeId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCalculationCodeId(java.lang.String newValue)
This method accesses a non-CMP field
void setCalculationFlags(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCalculationFlags(java.lang.String newValue)
This method accesses a non-CMP field
void setCalculationParameterAmount(java.math.BigDecimal newValue)
This method accesses a non-CMP field
void setCalculationParameterAmount(java.lang.String newValue)
This method accesses a non-CMP field
void setCalculationParameterType(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCalculationParameterType(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_orderItemCalculationCodeId(java.lang.String newValue)
Set the primary key for this object
void setOrderItemCalculationCodeId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrderItemCalculationCodeId(java.lang.String newValue)
This method accesses a non-CMP field
void setOrderItemId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrderItemId(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

OrderItemCalculationCodeAccessBean

public OrderItemCalculationCodeAccessBean()
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.OrderItemCalculationCode com.ibm.commerce.fulfillment.objimpl.OrderItemCalculationCodeHomeBase.findByPrimaryKey(com.ibm.commerce.fulfillment.objects.OrderItemCalculationCodeKey) 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_orderItemCalculationCodeId( java.lang.Long )

OrderItemCalculationCodeAccessBean

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

OrderItemCalculationCodeAccessBean

public OrderItemCalculationCodeAccessBean(java.lang.Long newOrderItemId,
                                          java.lang.Integer newCalculationCodeId)
                                   throws javax.naming.NamingException,
                                          javax.ejb.FinderException,
                                          javax.ejb.CreateException,
                                          java.rmi.RemoteException

Creates an access bean with the specified attributes.

Parameters:
newCalculationCodeId - the CalculationCode 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

findByOrderItemId

public java.util.Enumeration findByOrderItemId(java.lang.Long orderItemId)
                                        throws java.rmi.RemoteException,
                                               javax.ejb.FinderException,
                                               javax.naming.NamingException

Retrieves the OrderItemCalculationCodeAccessBeans that match the specified Order Item.

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

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

findByOrderItems

public java.util.Enumeration findByOrderItems(java.lang.Long[] orderItemIds)
                                       throws java.rmi.RemoteException,
                                              javax.ejb.FinderException,
                                              javax.naming.NamingException

Retrieves the OrderItemCalculationCodeAccessBeans that match the specified OrderItems.

The SQL query used to fetch all the required rows from the ORDICALCD table is: SELECT * FROM ORDICALCD T1 WHERE T1.ORDERITEMS_ID IN (?, ...)

Parameters:
orderItemIds - the OrderItem IDs
Returns:
An Enumeration of all the OrderItemCalculationCodeAccessBeans 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_orderItemCalculationCodeId

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

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

The following is a description of this column:

The CalculationCode.

Specified by:
getCalculationCodeId in interface OrderItemCalculationCodeAccessBeanData
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 ORDICALCD.CALCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCode.

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

setCalculationCodeId

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

setCalculationCodeId

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

getCalculationParameterAmount

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

This method provides access to the ORDICALCD.CALPARMAMT column of DB2 type DECIMAL(20 5) NOT NULL DEFAULT 0.

The following is a description of this column:

The amount of a fixed or percentage adjustment that can be applied to adjust or replace the results of the CalculationScales associated with the attached CalculationCode.

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

getCalculationParameterAmountInEJBType

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

This method provides access to the ORDICALCD.CALPARMAMT column of DB2 type DECIMAL(20 5) NOT NULL DEFAULT 0.

The following is a description of this column:

The amount of a fixed or percentage adjustment that can be applied to adjust or replace the results of the CalculationScales associated with the attached CalculationCode.

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

setCalculationParameterAmount

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

setCalculationParameterAmount

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

getCalculationParameterType

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

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

The following is a description of this column:

Indicates how CALPARMAMT is used.&l

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

getCalculationParameterTypeInEJBType

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

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

The following is a description of this column:

Indicates how CALPARMAMT is used.&l

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

setCalculationParameterType

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

setCalculationParameterType

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

getOrderItemCalculationCodeId

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

This method provides access to the ORDICALCD.ORDICALCD_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

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

getOrderItemCalculationCodeIdInEJBType

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

This method provides access to the ORDICALCD.ORDICALCD_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

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

setOrderItemCalculationCodeId

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

setOrderItemCalculationCodeId

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

getOrderItemId

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

This method provides access to the ORDICALCD.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderItem.

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

getOrderItemIdInEJBType

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

This method provides access to the ORDICALCD.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderItem.

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

setOrderItemId

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

setOrderItemId

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

getCalculationFlags

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

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

The following is a description of this column:

Contains the following bit flag:&l

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

getCalculationFlagsInEJBType

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

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

The following is a description of this column:

Contains the following bit flag:&l

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

setCalculationFlags

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

setCalculationFlags

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

findByOrderItemIdAndCalculationCodeId

public java.util.Enumeration findByOrderItemIdAndCalculationCodeId(java.lang.Long orderItemId,
                                                                   java.lang.Integer calculationCodeId)
                                                            throws javax.naming.NamingException,
                                                                   javax.ejb.FinderException,
                                                                   java.rmi.RemoteException

Retrieves the OrderCalculationCodeAccessBeans that match the specified OrderItem and CalculationCode.

The SQL query used to fetch all the required rows from the ORDICALCD table is: SELECT * FROM ORDICALCD T1 WHERE T1.ORDERITEMS_ID = ? AND T1.CALCODE_ID = ?

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

Feedback