com.ibm.commerce.order.objects
Class OrderAdjustmentDescriptionAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.order.objects.OrderAdjustmentDescriptionAccessBean
All Implemented Interfaces:
OrderAdjustmentDescriptionAccessBeanData
Direct Known Subclasses:
OrderAdjustmentDescriptionDataBeanBase

public class OrderAdjustmentDescriptionAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements OrderAdjustmentDescriptionAccessBeanData

Each row of this table contains language-dependent information for an OrderAdjustment. This access bean corresponds to the database table 'ORDADJDSC'.

See Also:
Serialized Form

Constructor Summary
OrderAdjustmentDescriptionAccessBean()
Zero argument constructor used to initialize the access bean.
OrderAdjustmentDescriptionAccessBean(javax.ejb.EJBObject o)
constructor
OrderAdjustmentDescriptionAccessBean(java.lang.Long arg1, java.lang.Integer arg2)
Maps to a corresponding ejbCreate method in the home interface of the EJB
OrderAdjustmentDescriptionAccessBean(java.lang.Long arg1, java.lang.Integer arg2, java.lang.String arg3)
Maps to a corresponding ejbCreate method in the home interface of the EJB
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByOrderAdjustmentForUpdate(java.lang.Long adjustment) Retrieves all the order adjustment descriptions for specified adjustment id. The SQL query used to fetch all the required rows from the ORDADJDSC table is:
SELECT * FROM ORDADJDSC T1 WHERE T1.ORDADJUST_ID = ? FOR UPDATE
java.lang.String getDescription()
This method provides access to the ORDADJDSC.DESCRIPTION column of DB2 type VARCHAR(254).
java.lang.String getLanguageId()
This method provides access to the ORDADJDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getLanguageIdInEJBType()
This method provides access to the ORDADJDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getOrderAdjustmentId()
This method provides access to the ORDADJDSC.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getOrderAdjustmentIdInEJBType()
This method provides access to the ORDADJDSC.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setDescription(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_languageId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_orderAdjustmentId(java.lang.String newValue)
Set the primary key for this object
void setLanguageId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setLanguageId(java.lang.String newValue)
This method accesses a non-CMP field
void setOrderAdjustmentId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrderAdjustmentId(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

OrderAdjustmentDescriptionAccessBean

public OrderAdjustmentDescriptionAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.order.objects.OrderAdjustmentDescription com.ibm.commerce.order.objimpl.OrderAdjustmentDescriptionHomeBase.findByPrimaryKey(com.ibm.commerce.order.objects.OrderAdjustmentDescriptionKey) 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_languageId( java.lang.Integer ) setInitKey_orderAdjustmentId( java.lang.Long )

OrderAdjustmentDescriptionAccessBean

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

OrderAdjustmentDescriptionAccessBean

public OrderAdjustmentDescriptionAccessBean(java.lang.Long arg1,
                                            java.lang.Integer arg2)
                                     throws javax.ejb.CreateException,
                                            java.rmi.RemoteException,
                                            javax.naming.NamingException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
arg1 - java.lang.Long Order adjustment identifier
arg2 - java.lang.Integer Language of the description
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException

OrderAdjustmentDescriptionAccessBean

public OrderAdjustmentDescriptionAccessBean(java.lang.Long arg1,
                                            java.lang.Integer arg2,
                                            java.lang.String arg3)
                                     throws javax.ejb.CreateException,
                                            java.rmi.RemoteException,
                                            javax.naming.NamingException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
arg1 - java.lang.Long Order adjustment identifier
arg2 - java.lang.Integer Language of the description
arg3 - java.lang.String A brief description of the order adjustment
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException
Method Detail

setInitKey_languageId

public void setInitKey_languageId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_orderAdjustmentId

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

getDescription

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

This method provides access to the ORDADJDSC.DESCRIPTION column of DB2 type VARCHAR(254).

The following is a description of this column:

A brief description of the OrderAdjustment, suitable for display to a customer. Normally, this is the CalculationCode description (CALCODEDSC.DESCRIPTION) of the CalculationCode used to create the OrderAdjustment.

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

setDescription

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

getLanguageId

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

This method provides access to the ORDADJDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language of the description. For a list of language components, see the LANGUAGE table.

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

getLanguageIdInEJBType

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

This method provides access to the ORDADJDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language of the description. For a list of language components, see the LANGUAGE table.

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

setLanguageId

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

setLanguageId

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

getOrderAdjustmentId

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

This method provides access to the ORDADJDSC.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

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

getOrderAdjustmentIdInEJBType

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

This method provides access to the ORDADJDSC.ORDADJUST_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

setOrderAdjustmentId

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

setOrderAdjustmentId

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

findByOrderAdjustmentForUpdate

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

Retrieves all the order adjustment descriptions for specified adjustment id.
The SQL query used to fetch all the required rows from the
ORDADJDSC table is:
SELECT * FROM ORDADJDSC T1 WHERE T1.ORDADJUST_ID = ? FOR UPDATE

Returns:
java.util.Enumeration An Enumeration of all the OrderAdjustmentAccessBean objects 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

Feedback