com.ibm.commerce.fulfillment.objects
Class OrderCalculationCodeAccessBean

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

public class OrderCalculationCodeAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements OrderCalculationCodeAccessBeanData

Each row of this table indicates to the CalculationCodeCombineMethod that a CalculationCode is directly attached to all OrderItems in an Order whose directCalculationCodeAttachment flag in ORDERITEMS.PREPAREFLAGS is 1. This access bean corresponds to the database table 'ORDCALCD'.

See Also:
Serialized Form

Constructor Summary
OrderCalculationCodeAccessBean()
Zero argument constructor used to initialize the access bean.
OrderCalculationCodeAccessBean(javax.ejb.EJBObject o)
constructor
OrderCalculationCodeAccessBean(java.lang.Long newOrderId, 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 findByOrderId(java.lang.Long orderId)
Retrieves the OrderCalculationCodeAccessBeans that match the specified Order.
java.util.Enumeration findByOrderIdAndCalculationCodeId(java.lang.Long orderId, java.lang.Integer calculationCodeId)
Retrieves the OrderCalculationCodeAccessBeans that match the specified Order and CalculationCode.
java.lang.String getCalculationCodeId()
This method provides access to the ORDCALCD.CALCODE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getCalculationCodeIdInEJBType()
This method provides access to the ORDCALCD.CALCODE_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getCalculationFlags()
This method provides access to the ORDCALCD.CALFLAGS column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getCalculationFlagsInEJBType()
This method provides access to the ORDCALCD.CALFLAGS column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getCalculationParameterAmount()
This method provides access to the ORDCALCD.CALPARMAMT column of DB2 type DECIMAL(20 5) NOT NULL DEFAULT 0.
java.math.BigDecimal getCalculationParameterAmountInEJBType()
This method provides access to the ORDCALCD.CALPARMAMT column of DB2 type DECIMAL(20 5) NOT NULL DEFAULT 0.
java.lang.String getCalculationParameterType()
This method provides access to the ORDCALCD.CALPARMTYPE column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getCalculationParameterTypeInEJBType()
This method provides access to the ORDCALCD.CALPARMTYPE column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getOrderCalculationCodeId()
This method provides access to the ORDCALCD.ORDCALCD_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getOrderCalculationCodeIdInEJBType()
This method provides access to the ORDCALCD.ORDCALCD_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getOrderId()
This method provides access to the ORDCALCD.ORDERS_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getOrderIdInEJBType()
This method provides access to the ORDCALCD.ORDERS_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_orderCalculationCodeId(java.lang.String newValue)
Set the primary key for this object
void setOrderCalculationCodeId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrderCalculationCodeId(java.lang.String newValue)
This method accesses a non-CMP field
void setOrderId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrderId(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

OrderCalculationCodeAccessBean

public OrderCalculationCodeAccessBean()
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.OrderCalculationCode com.ibm.commerce.fulfillment.objimpl.OrderCalculationCodeHomeBase.findByPrimaryKey(com.ibm.commerce.fulfillment.objects.OrderCalculationCodeKey) 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_orderCalculationCodeId( java.lang.Long )

OrderCalculationCodeAccessBean

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

OrderCalculationCodeAccessBean

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

Creates an access bean with the specified attributes.

Parameters:
newOrderId - the Order ID
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

findByOrderId

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

Retrieves the OrderCalculationCodeAccessBeans that match the specified Order.

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

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

findByOrderIdAndCalculationCodeId

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

Retrieves the OrderCalculationCodeAccessBeans that match the specified Order and CalculationCode.

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

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

setInitKey_orderCalculationCodeId

public void setInitKey_orderCalculationCodeId(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 ORDCALCD.CALCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCode.

Specified by:
getCalculationCodeId in interface OrderCalculationCodeAccessBeanData
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 ORDCALCD.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 OrderCalculationCodeAccessBeanData

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 ORDCALCD.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 OrderCalculationCodeAccessBeanData
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 ORDCALCD.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 OrderCalculationCodeAccessBeanData

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 ORDCALCD.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 OrderCalculationCodeAccessBeanData
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 ORDCALCD.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 OrderCalculationCodeAccessBeanData

setCalculationParameterType

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

getOrderCalculationCodeId

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

This method provides access to the ORDCALCD.ORDCALCD_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

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

getOrderCalculationCodeIdInEJBType

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

This method provides access to the ORDCALCD.ORDCALCD_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

setOrderCalculationCodeId

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

setOrderCalculationCodeId

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

getOrderId

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

This method provides access to the ORDCALCD.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Order.

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

getOrderIdInEJBType

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

This method provides access to the ORDCALCD.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Order.

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

setOrderId

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

setOrderId

public void setOrderId(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 ORDCALCD.CALFLAGS column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Contains the following bit flag value:&l

Specified by:
getCalculationFlags in interface OrderCalculationCodeAccessBeanData
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 ORDCALCD.CALFLAGS column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Contains the following bit flag value:&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 OrderCalculationCodeAccessBeanData

setCalculationFlags

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

Feedback