com.ibm.commerce.common.objects
Class StoreDefaultAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.common.objects.StoreDefaultAccessBean
All Implemented Interfaces:
java.io.Serializable, StoreDefaultAccessBeanData

public class StoreDefaultAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements StoreDefaultAccessBeanData

This bean provides access to the STOREDEF table.

The following is a description of this table:

Each row of this table contains default information for 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
StoreDefaultAccessBean()
          Default constructor.
StoreDefaultAccessBean(javax.ejb.EJBObject ejbObject)
          Creates an access bean for the specified EJB
StoreDefaultAccessBean(java.lang.Integer argStoreId)
          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).
 StoreDefaultAccessBean findByStore(java.lang.Integer aDByStore)
          Retrieves all StoreDefaultAccessBeans by store id
 java.lang.String getContractId()
          This method provides access to the STOREDEF.CONTRACT_ID column of DB2 type BIGINT NULL.
 java.lang.Long getContractIdInEJBType()
          This method provides access to the STOREDEF.CONTRACT_ID column of DB2 type BIGINT NULL.
 java.lang.String getShipModeId()
          This method provides access to the STOREDEF.SHIPMODE_ID column of DB2 type INTEGER NULL.
 java.lang.Integer getShipModeIdInEJBType()
          This method provides access to the STOREDEF.SHIPMODE_ID column of DB2 type INTEGER NULL.
 java.lang.String getStoreId()
          This method provides access to the STOREDEF.STORE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getStoreIdInEJBType()
          This method provides access to the STOREDEF.STORE_ID column of DB2 type INTEGER NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setContractId(java.lang.Long aContractId)
          This method provides access to the STOREDEF.CONTRACT_ID column of DB2 type BIGINT NULL.
 void setContractId(java.lang.String aContractId)
          This method provides access to the STOREDEF.CONTRACT_ID column of DB2 type BIGINT NULL.
 void setInitKey_storeId(java.lang.String aInitKey_storeId)
          Set the primary key for this object
 void setShipModeId(java.lang.Integer aShipModeId)
          This method provides access to the STOREDEF.SHIPMODE_ID column of DB2 type INTEGER NULL.
 void setShipModeId(java.lang.String aShipModeId)
          This method provides access to the STOREDEF.SHIPMODE_ID column of DB2 type INTEGER 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

StoreDefaultAccessBean

public StoreDefaultAccessBean()

Default constructor. Maps to findByPrimaryKey.


StoreDefaultAccessBean

public StoreDefaultAccessBean(javax.ejb.EJBObject ejbObject)
                       throws java.rmi.RemoteException

Creates an access bean for the specified EJB

Parameters:
ejbObject - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

StoreDefaultAccessBean

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

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

Creates StoreDefaultAccessBean with the specified store id

Parameters:
argStoreId - Store 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

findByStore

public StoreDefaultAccessBean findByStore(java.lang.Integer aDByStore)
                                   throws java.rmi.RemoteException,
                                          javax.ejb.FinderException,
                                          javax.naming.NamingException

Retrieves all StoreDefaultAccessBeans by store id

The SQL query used to fetch the requested row from the STOREDEF table is:

SELECT * FROM STOREDEF T1 WHERE (T1.STORE_ID = ?)

Parameters:
storeId - java.lang.Integer
Returns:
com.ibm.commerce.common.objects.StoreDefaultAccessBean
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

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 STOREDEF.CONTRACT_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

The default Contract for the Store.

Specified by:
getContractId in interface StoreDefaultAccessBeanData
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 STOREDEF.CONTRACT_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

The default Contract for the Store.

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

getShipModeId

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

This method provides access to the STOREDEF.SHIPMODE_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

The default ShippingMode for the Store.

Specified by:
getShipModeId in interface StoreDefaultAccessBeanData
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

getShipModeIdInEJBType

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

This method provides access to the STOREDEF.SHIPMODE_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

The default ShippingMode for 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

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 STOREDEF.STORE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The Store.

Specified by:
getStoreId in interface StoreDefaultAccessBeanData
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 STOREDEF.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

setContractId

public void setContractId(java.lang.Long aContractId)

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

The following is a description of this column:

The default Contract for the Store.

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

setContractId

public void setContractId(java.lang.String aContractId)

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

The following is a description of this column:

The default Contract for the Store.

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

setInitKey_storeId

public void setInitKey_storeId(java.lang.String aInitKey_storeId)

Set the primary key for this object

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

setShipModeId

public void setShipModeId(java.lang.Integer aShipModeId)

This method provides access to the STOREDEF.SHIPMODE_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

The default ShippingMode for the Store.

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

setShipModeId

public void setShipModeId(java.lang.String aShipModeId)

This method provides access to the STOREDEF.SHIPMODE_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

The default ShippingMode for the Store.

Specified by:
setShipModeId in interface StoreDefaultAccessBeanData
Parameters:
aShipModeId - java.lang.String
Returns:
void