com.ibm.commerce.fulfillment.objects
Class CatalogEntryCalculationCodeAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.fulfillment.objects.CatalogEntryCalculationCodeAccessBean
All Implemented Interfaces:
CatalogEntryCalculationCodeAccessBeanData, java.io.Serializable

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

This bean provides access to the CATENCALCD table.

The following is a description of this table:

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).

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
CatalogEntryCalculationCodeAccessBean()
          Default constructor.
CatalogEntryCalculationCodeAccessBean(javax.ejb.EJBObject aEJBObject)
          Creates an access bean for the specified EJB.
CatalogEntryCalculationCodeAccessBean(java.lang.Integer aStoreId, java.lang.Integer aCalculationCodeId, java.lang.Long aCatalogEntryId)
          Creates an access bean with the specified attributes.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByCalculationCodeAndStore(java.lang.Integer aCalculationCodeId, java.lang.Integer aStoreId)
          Retrieves the CatalogEntryCalculationCodeAccessBeans that match the specified CalculationCode and Store.
 java.util.Enumeration findByCatalogEntryAndStore(java.lang.Long aCatalogEntryId, java.lang.Integer aStoreId)
          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 NULL.
 java.lang.Long getCatalogEntryIdInEJBType()
          This method provides access to the CATENCALCD.CATENTRY_ID column of DB2 type BIGINT NULL.
 java.lang.String getContractId()
          This method provides access to the CATENCALCD.TRADING_ID column of DB2 type BIGINT NULL.
 java.lang.Long getContractIdInEJBType()
          This method provides access to the CATENCALCD.TRADING_ID column of DB2 type BIGINT NULL.
 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.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCalculationCodeId(java.lang.Integer aCalculationCodeId)
          This method provides access to the CATENCALCD.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 void setCalculationCodeId(java.lang.String aCalculationCodeId)
          This method provides access to the CATENCALCD.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 void setCatalogEntryId(java.lang.Long aCatalogEntryId)
          This method provides access to the CATENCALCD.CATENTRY_ID column of DB2 type BIGINT NULL.
 void setCatalogEntryId(java.lang.String aCatalogEntryId)
          This method provides access to the CATENCALCD.CATENTRY_ID column of DB2 type BIGINT NULL.
 void setContractId(java.lang.Long aContractId)
          This method provides access to the CATENCALCD.TRADING_ID column of DB2 type BIGINT NULL.
 void setContractId(java.lang.String aContractId)
          This method provides access to the CATENCALCD.TRADING_ID column of DB2 type BIGINT NULL.
 void setInitKey_catalogEntryCalculationCodeId(java.lang.String aInitKey_catalogEntryCalculationCodeId)
          Set the primary key for this object
 void setStoreId(java.lang.Integer aStoreId)
          This method provides access to the CATENCALCD.STORE_ID column of DB2 type INTEGER NOT NULL.
 void setStoreId(java.lang.String aStoreId)
          This method provides access to the CATENCALCD.STORE_ID column of DB2 type INTEGER NOT NULL.
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalogEntryCalculationCodeAccessBean

public CatalogEntryCalculationCodeAccessBean()

Default constructor. Maps to findByPrimaryKey.


CatalogEntryCalculationCodeAccessBean

public CatalogEntryCalculationCodeAccessBean(javax.ejb.EJBObject aEJBObject)
                                      throws java.rmi.RemoteException

Creates an access bean for the specified EJB.

Parameters:
aEJBObject - The EJB Object used for the access bean construction.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

CatalogEntryCalculationCodeAccessBean

public CatalogEntryCalculationCodeAccessBean(java.lang.Integer aStoreId,
                                             java.lang.Integer aCalculationCodeId,
                                             java.lang.Long aCatalogEntryId)
                                      throws javax.naming.NamingException,
                                             javax.ejb.CreateException,
                                             javax.ejb.FinderException,
                                             java.rmi.RemoteException

Creates an access bean with the specified attributes.

Parameters:
aStoreId - the Store ID
aCalculationCodeId - the CalculationCode ID
aCatalogEntryId - 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
Method Detail

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).

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByCalculationCodeAndStore

public java.util.Enumeration findByCalculationCodeAndStore(java.lang.Integer aCalculationCodeId,
                                                           java.lang.Integer aStoreId)
                                                    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:
aCalculationCodeId - the CalculationCode ID
aStoreId - 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 - The javax.naming.NamingException exception

findByCatalogEntryAndStore

public java.util.Enumeration findByCatalogEntryAndStore(java.lang.Long aCatalogEntryId,
                                                        java.lang.Integer aStoreId)
                                                 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:
aCatalogEntryId - the CatalogEntry ID
aStoreId - 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 - The javax.naming.NamingException exception

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 CalculationCode.

Specified by:
getCalculationCodeId in interface CatalogEntryCalculationCodeAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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 CalculationCode.

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

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:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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 - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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 NULL.

The following is a description of this column:

The CatalogEntry. NULL implies all CatalogEntries. If the CatalogEntry has children in the CATENTREL table with a CATRELTYPE_ID of "PRODUCT_ITEM", then the CalculationCode is also attached to those children.

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

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 NULL.

The following is a description of this column:

The CatalogEntry. NULL implies all CatalogEntries. If the CatalogEntry has children in the CATENTREL table with a CATRELTYPE_ID of "PRODUCT_ITEM", then the CalculationCode is also attached to those children.

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

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 NULL.

The following is a description of this column:

The TradingAgreement. NULL implies all TradingAgreements.

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

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 NULL.

The following is a description of this column:

The TradingAgreement. NULL implies all TradingAgreements.

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

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:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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 - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setCalculationCodeId

public void setCalculationCodeId(java.lang.Integer aCalculationCodeId)

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 CalculationCode.

Parameters:
aCalculationCodeId - java.lang.Integer
Returns:
void

setCalculationCodeId

public void setCalculationCodeId(java.lang.String aCalculationCodeId)

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 CalculationCode.

Specified by:
setCalculationCodeId in interface CatalogEntryCalculationCodeAccessBeanData
Parameters:
aCalculationCodeId - java.lang.String
Returns:
void

setCatalogEntryId

public void setCatalogEntryId(java.lang.Long aCatalogEntryId)

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

The following is a description of this column:

The CatalogEntry. NULL implies all CatalogEntries. If the CatalogEntry has children in the CATENTREL table with a CATRELTYPE_ID of "PRODUCT_ITEM", then the CalculationCode is also attached to those children.

Parameters:
aCatalogEntryId - java.lang.Long
Returns:
void

setCatalogEntryId

public void setCatalogEntryId(java.lang.String aCatalogEntryId)

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

The following is a description of this column:

The CatalogEntry. NULL implies all CatalogEntries. If the CatalogEntry has children in the CATENTREL table with a CATRELTYPE_ID of "PRODUCT_ITEM", then the CalculationCode is also attached to those children.

Specified by:
setCatalogEntryId in interface CatalogEntryCalculationCodeAccessBeanData
Parameters:
aCatalogEntryId - java.lang.String
Returns:
void

setContractId

public void setContractId(java.lang.Long aContractId)

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

The following is a description of this column:

The TradingAgreement. NULL implies all TradingAgreements.

Parameters:
aContractId - java.lang.Long
Returns:
void

setContractId

public void setContractId(java.lang.String aContractId)

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

The following is a description of this column:

The TradingAgreement. NULL implies all TradingAgreements.

Specified by:
setContractId in interface CatalogEntryCalculationCodeAccessBeanData
Parameters:
aContractId - java.lang.String
Returns:
void

setInitKey_catalogEntryCalculationCodeId

public void setInitKey_catalogEntryCalculationCodeId(java.lang.String aInitKey_catalogEntryCalculationCodeId)

Set the primary key for this object

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

setStoreId

public void setStoreId(java.lang.Integer aStoreId)

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.

Parameters:
aStoreId - java.lang.Integer
Returns:
void

setStoreId

public void setStoreId(java.lang.String aStoreId)

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:
setStoreId in interface CatalogEntryCalculationCodeAccessBeanData
Parameters:
aStoreId - java.lang.String
Returns:
void