com.ibm.commerce.contract.objects
Class StoreContractAccessBean

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

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

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

See Also:
Serialized Form

Constructor Summary
StoreContractAccessBean()
          constructor
StoreContractAccessBean(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 findByContract(java.lang.Long arg0)
          Retrieves an Enumeration of StoreContractAccessBeans representing all the relationship between stores and the specified contract ID.
 java.util.Enumeration findByStore(java.lang.Integer arg0)
          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.
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_contractReferenceNumber(java.lang.String newValue)
          Set the primary key for this object
 void setInitKey_storeId(java.lang.String newValue)
          Set the primary key for this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreContractAccessBean

public StoreContractAccessBean()
constructor

StoreContractAccessBean

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

findByContract

public java.util.Enumeration findByContract(java.lang.Long arg0)
                                     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 = ?

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

findByStore

public java.util.Enumeration findByStore(java.lang.Integer arg0)
                                  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 = ?

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

setInitKey_contractReferenceNumber

public void setInitKey_contractReferenceNumber(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_storeId

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

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:
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 STORECNTR.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

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

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