com.ibm.commerce.fulfillment.objects
Class CatalogEntryCalculationCodeAccessBean

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

public class CatalogEntryCalculationCodeAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CatalogEntryCalculationCodeAccessBeanData

A row in this table indicates that a CalculationCode is attached to a CatalogEntry and its PRODUCT_ITEM children (or all CatalogEntries) for the specified Store and TradingAgreement (or all TradingAgreements). This access bean corresponds to the database table 'CATENCALCD'.

See Also:
Serialized Form

Constructor Summary
CatalogEntryCalculationCodeAccessBean()
Zero argument constructor used to initialize the access bean.
CatalogEntryCalculationCodeAccessBean(java.lang.Integer storeId, java.lang.Integer calculationCodeId, java.lang.Long catalogEntryId)
Creates an access bean with the specified attributes.
CatalogEntryCalculationCodeAccessBean(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 findByCalculationCodeAndStore(java.lang.Integer calculationCodeId, java.lang.Integer storeId)
Retrieves the CatalogEntryCalculationCodeAccessBeans that match the specified CalculationCode and Store.
java.util.Enumeration findByCatalogEntryAndStore(java.lang.Long catalogEntryId, java.lang.Integer storeId)
Retrieves the CatalogEntryCalculationCodeAccessBeans that match the specified CatalogEntry and Store.
java.lang.String getCalculationCodeId()
This method provides access to the CATENCALCD.CALCODE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getCalculationCodeIdInEJBType()
This method provides access to the CATENCALCD.CALCODE_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getCatalogEntryCalculationCodeId()
This method provides access to the CATENCALCD.CATENCALCD_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getCatalogEntryCalculationCodeIdInEJBType()
This method provides access to the CATENCALCD.CATENCALCD_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getCatalogEntryId()
This method provides access to the CATENCALCD.CATENTRY_ID column of DB2 type BIGINT.
java.lang.Long getCatalogEntryIdInEJBType()
This method provides access to the CATENCALCD.CATENTRY_ID column of DB2 type BIGINT.
java.lang.String getContractId()
This method provides access to the CATENCALCD.TRADING_ID column of DB2 type BIGINT.
java.lang.Long getContractIdInEJBType()
This method provides access to the CATENCALCD.TRADING_ID column of DB2 type BIGINT.
java.lang.String getStoreId()
This method provides access to the CATENCALCD.STORE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getStoreIdInEJBType()
This method provides access to the CATENCALCD.STORE_ID column of DB2 type INTEGER 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 setCatalogEntryId(java.lang.Long newValue)
This method accesses a non-CMP field
void setCatalogEntryId(java.lang.String newValue)
This method accesses a non-CMP field
void setContractId(java.lang.Long newValue)
This method accesses a non-CMP field
void setContractId(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_catalogEntryCalculationCodeId(java.lang.String newValue)
Set the primary key for this object
void setStoreId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setStoreId(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

CatalogEntryCalculationCodeAccessBean

public CatalogEntryCalculationCodeAccessBean()
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.CatalogEntryCalculationCode com.ibm.commerce.fulfillment.objimpl.CatalogEntryCalculationCodeHomeBase.findByPrimaryKey(com.ibm.commerce.fulfillment.objects.CatalogEntryCalculationCodeKey) 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_catalogEntryCalculationCodeId( java.lang.Long )

CatalogEntryCalculationCodeAccessBean

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

CatalogEntryCalculationCodeAccessBean

public CatalogEntryCalculationCodeAccessBean(java.lang.Integer storeId,
                                             java.lang.Integer calculationCodeId,
                                             java.lang.Long catalogEntryId)
                                      throws javax.naming.NamingException,
                                             javax.ejb.CreateException,
                                             javax.ejb.FinderException,
                                             java.rmi.RemoteException

Creates an access bean with the specified attributes.

Parameters:
storeId - the Store ID
calculationCodeId - the CalculationCode ID
catalogEntryId - the CatalogEntry 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

findByCalculationCodeAndStore

public java.util.Enumeration findByCalculationCodeAndStore(java.lang.Integer calculationCodeId,
                                                           java.lang.Integer storeId)
                                                    throws java.rmi.RemoteException,
                                                           javax.ejb.FinderException,
                                                           javax.naming.NamingException

Retrieves the CatalogEntryCalculationCodeAccessBeans that match the specified CalculationCode and Store.

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

Parameters:
calculationCodeId - the CalculationCode ID
storeId - the Store ID
Returns:
An Enumeration of all the CatalogEntryCalculationCodeAccessBeans 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

findByCatalogEntryAndStore

public java.util.Enumeration findByCatalogEntryAndStore(java.lang.Long catalogEntryId,
                                                        java.lang.Integer storeId)
                                                 throws java.rmi.RemoteException,
                                                        javax.ejb.FinderException,
                                                        javax.naming.NamingException

Retrieves the CatalogEntryCalculationCodeAccessBeans that match the specified CatalogEntry and Store.

The SQL query used to fetch all the required rows from the CATENCALCD table is: SELECT * FROM CATENCALCD T1 WHERE T1.CATENTRY_ID = ? AND T1.STORE_ID = ?

Parameters:
catalogEntryId - the CatalogEntry ID
storeId - the Store ID
Returns:
An Enumeration of all the CatalogEntryCalculationCodeAccessBeans 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_catalogEntryCalculationCodeId

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

The following is a description of this column:

The Calculation Code. &l

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

The following is a description of this column:

The Calculation Code. &l

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 CatalogEntryCalculationCodeAccessBeanData

setCalculationCodeId

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

getCatalogEntryCalculationCodeId

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

This method provides access to the CATENCALCD.CATENCALCD_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

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

getCatalogEntryCalculationCodeIdInEJBType

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

This method provides access to the CATENCALCD.CATENCALCD_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

getCatalogEntryId

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

This method provides access to the CATENCALCD.CATENTRY_ID column of DB2 type BIGINT.

The following is a description of this column:

The Catalog Entry. NULL implies all Catalog Entries. If the Catalog Entry has children in the CATENTREL table with a CATRELTYPE_ID of &quo

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

getCatalogEntryIdInEJBType

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

This method provides access to the CATENCALCD.CATENTRY_ID column of DB2 type BIGINT.

The following is a description of this column:

The Catalog Entry. NULL implies all Catalog Entries. If the Catalog Entry has children in the CATENTREL table with a CATRELTYPE_ID of &quo

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

setCatalogEntryId

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

setCatalogEntryId

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

getContractId

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

This method provides access to the CATENCALCD.TRADING_ID column of DB2 type BIGINT.

The following is a description of this column:

The Trading Agreement. NULL implies all Trading Agreements.

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

getContractIdInEJBType

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

This method provides access to the CATENCALCD.TRADING_ID column of DB2 type BIGINT.

The following is a description of this column:

The Trading Agreement. NULL implies all Trading Agreements.

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

setContractId

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

setContractId

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

getStoreId

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

This method provides access to the CATENCALCD.STORE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The Store.

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

getStoreIdInEJBType

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

This method provides access to the CATENCALCD.STORE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The Store.

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

setStoreId

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

setStoreId

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

Feedback