com.ibm.commerce.contract.objects
Class StoreContractAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.contract.objects.StoreContractAccessBean
All Implemented Interfaces:
java.io.Serializable, StoreContractAccessBeanData

public class StoreContractAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements StoreContractAccessBeanData

This bean provides access to the STORECNTR.html" table.

The following is a description of this table:

Each row of this table indicates that a Contract is deployed in a Store.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
StoreContractAccessBean()
          Default constructor.
StoreContractAccessBean(javax.ejb.EJBObject anObject)
          Creates an access bean for the specified EJB
StoreContractAccessBean(com.ibm.commerce.contract.objects.StoreContractKey storeContractKey)
          Constructs an StoreContractAccessBean object with the specified storeContractKey.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByContract(java.lang.Long contractId)
          Retrieves an Enumeration of StoreContractAccessBeans representing all the relationship between stores and the specified contract ID.
 java.util.Enumeration findByStore(java.lang.Integer storeId)
          Retrieves an Enumeration of StoreContractAccessBeans representing all the relationship between contracts and the specified store ID.
 java.lang.String getContractReferenceNumber()
          This method provides access to the STORECNTR.CONTRACT_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getContractReferenceNumberInEJBType()
          This method provides access to the STORECNTR.CONTRACT_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getStoreId()
          This method provides access to the STORECNTR.STORE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getStoreIdInEJBType()
          This method provides access to the STORECNTR.STORE_ID column of DB2 type INTEGER NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_contractReferenceNumber(java.lang.String aInitKey_contractReferenceNumber)
          Set the primary key for this object
 void setInitKey_storeId(java.lang.String aInitKey_storeId)
          Set the primary key for this object
 
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

StoreContractAccessBean

public StoreContractAccessBean()

Default constructor. Maps to findByPrimaryKey.


StoreContractAccessBean

public StoreContractAccessBean(javax.ejb.EJBObject anObject)
                        throws java.rmi.RemoteException

Creates an access bean for the specified EJB

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

StoreContractAccessBean

public StoreContractAccessBean(com.ibm.commerce.contract.objects.StoreContractKey storeContractKey)
                        throws javax.ejb.CreateException,
                               java.rmi.RemoteException,
                               javax.naming.NamingException

Constructs an StoreContractAccessBean object with the specified storeContractKey.

Parameters:
aReContractAccessBean - com.ibm.commerce.contract.objects.StoreContractKey
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

findByContract

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

Retrieves an Enumeration of StoreContractAccessBeans representing all the relationship between stores and the specified contract ID.

The SQL query used to fetch the required rows from the table is:

select * from storecntr T1 where T1.contract_id = ?

Parameters:
contractId - The ID of the contract.
Returns:
An Enumeration of all the StoreContractAccessBeans 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

findByStore

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

Retrieves an Enumeration of StoreContractAccessBeans representing all the relationship between contracts and the specified store ID.

The SQL query used to fetch the required rows from the table is:

select * from storecntr T1 where T1.store_id = ?

Parameters:
storeId - The store ID.
Returns:
An Enumeration of all the StoreContractAccessBeans 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

getContractReferenceNumber

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

This method provides access to the STORECNTR.CONTRACT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Contract.

Specified by:
getContractReferenceNumber in interface StoreContractAccessBeanData
Returns:
The ID of the contract.
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

getContractReferenceNumberInEJBType

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

This method provides access to the STORECNTR.CONTRACT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Contract.

Returns:
The ID of the contract.
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 STORECNTR.STORE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The Store.

Specified by:
getStoreId in interface StoreContractAccessBeanData
Returns:
The ID of the store the contract belongs to.
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 STORECNTR.STORE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The Store.

Returns:
The ID of the store the contract belongs to.
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

setInitKey_contractReferenceNumber

public void setInitKey_contractReferenceNumber(java.lang.String aInitKey_contractReferenceNumber)

Set the primary key for this object

Parameters:
aInitKey_contractReferenceNumber - The ID of the contract.
Returns:
void

setInitKey_storeId

public void setInitKey_storeId(java.lang.String aInitKey_storeId)

Set the primary key for this object

Parameters:
aInitKey_storeId - The ID of the store.
Returns:
void