com.ibm.commerce.catalog.objects
Class StoreCatalogAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.catalog.objects.StoreCatalogAccessBean
All Implemented Interfaces:
java.io.Serializable, StoreCatalogAccessBeanData

public class StoreCatalogAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements StoreCatalogAccessBeanData

This bean provides access to the STORECAT table.

The following is a description of this table:

This table holds the relationship between StoreEntities and the Catalogs that they offer.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
StoreCatalogAccessBean()
          Default constructor.
StoreCatalogAccessBean(javax.ejb.EJBObject storeCatEJBObj)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
StoreCatalogAccessBean(java.lang.Long catalogID, java.lang.Integer storeID)
          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).
 java.util.Enumeration findByCatalogId(java.lang.Long catalogID)
          Finds the store catalogs with the catalog ID.
 java.util.Enumeration findByStoreId(java.lang.Integer storeID)
          Finds the store catalogs with the store ID.
 java.lang.String getCatalogReferenceNumber()
          This method provides access to the STORECAT.CATALOG_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getCatalogReferenceNumberInEJBType()
          This method provides access to the STORECAT.CATALOG_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getLastUpdate()
          This method provides access to the STORECAT.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getLastUpdateInEJBType()
          This method provides access to the STORECAT.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 java.lang.String getMasterCatalog()
          This method provides access to the STORECAT.MASTERCATALOG column of DB2 type CHAR(1) NULL.
 java.lang.String getStoreEntryID()
          This method provides access to the STORECAT.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getStoreEntryIDInEJBType()
          This method provides access to the STORECAT.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCatalogReferenceNumber(java.lang.Long catalogID)
          This method provides access to the STORECAT.CATALOG_ID column of DB2 type BIGINT NOT NULL.
 void setCatalogReferenceNumber(java.lang.String catalogID)
          This method provides access to the STORECAT.CATALOG_ID column of DB2 type BIGINT NOT NULL.
 void setInitKey_catalogReferenceNumber(java.lang.String catalogID)
          Set the primary key for this object
 void setInitKey_storeEntryID(java.lang.String storeEntryID)
          Set the primary key for this object
 void setLastUpdate(java.lang.String lastUpdate)
          This method provides access to the STORECAT.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 void setLastUpdate(java.sql.Timestamp lastUpdate)
          This method provides access to the STORECAT.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 void setMasterCatalog(java.lang.String masterCatalog)
          This method provides access to the STORECAT.MASTERCATALOG column of DB2 type CHAR(1) NULL.
 void setStoreEntryID(java.lang.Integer storeEntityID)
          This method provides access to the STORECAT.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void setStoreEntryID(java.lang.String aStoreEntryID)
          This method provides access to the STORECAT.STOREENT_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

StoreCatalogAccessBean

public StoreCatalogAccessBean()

Default constructor. Maps to findByPrimaryKey.


StoreCatalogAccessBean

public StoreCatalogAccessBean(javax.ejb.EJBObject storeCatEJBObj)
                       throws java.rmi.RemoteException

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

Parameters:
storeCatEJBObj - The store catalog EJB Object. javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

StoreCatalogAccessBean

public StoreCatalogAccessBean(java.lang.Long catalogID,
                              java.lang.Integer storeID)
                       throws javax.ejb.CreateException,
                              java.rmi.RemoteException,
                              javax.naming.NamingException

Maps to a corresponding ejbCreate method in the home interface of the EJB. Creates an access to the store catalog according to the catalog ID, store ID.

Parameters:
catalogID - The catalog reference number. java.lang.Long
storeID - The store ID. java.lang.Integer
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

findByCatalogId

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

Finds the store catalogs with the catalog ID.

SQL:
SELECT STOREENT_ID, CATALOG_ID, LASTUPDATE, MASTERCATALOG FROM STORECAT WHERE CATALOG_ID = catalogID

Parameters:
catalogID - The catalog ID. java.lang.Long
Returns:
java.util.Enumeration
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

findByStoreId

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

Finds the store catalogs with the store ID.

SQL:
SELECT STOREENT_ID, CATALOG_ID, LASTUPDATE, MASTERCATALOG FROM STORECAT WHERE STOREENT_ID = storeID

Parameters:
storeID - The store ID. java.lang.Integer
Returns:
java.util.Enumeration
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

getCatalogReferenceNumber

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

This method provides access to the STORECAT.CATALOG_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of the Catalog.

Specified by:
getCatalogReferenceNumber in interface StoreCatalogAccessBeanData
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

getCatalogReferenceNumberInEJBType

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

This method provides access to the STORECAT.CATALOG_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of the Catalog.

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

getLastUpdate

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

This method provides access to the STORECAT.LASTUPDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Indicates the last time that this relationship was updated.

Specified by:
getLastUpdate in interface StoreCatalogAccessBeanData
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

getLastUpdateInEJBType

public java.sql.Timestamp getLastUpdateInEJBType()
                                          throws java.rmi.RemoteException,
                                                 javax.ejb.CreateException,
                                                 javax.ejb.FinderException,
                                                 javax.naming.NamingException

This method provides access to the STORECAT.LASTUPDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Indicates the last time that this relationship was updated.

Returns:
java.sql.Timestamp
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

getMasterCatalog

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

This method provides access to the STORECAT.MASTERCATALOG column of DB2 type CHAR(1) NULL.

The following is a description of this column:

Specifies a master catalog for the Store. A value of 1 indicates that this Catalog is designated as a master catalog.

Specified by:
getMasterCatalog in interface StoreCatalogAccessBeanData
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

getStoreEntryID

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

This method provides access to the STORECAT.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The reference number of the StoreEntity.

Specified by:
getStoreEntryID in interface StoreCatalogAccessBeanData
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

getStoreEntryIDInEJBType

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

This method provides access to the STORECAT.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The reference number of the StoreEntity.

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

setCatalogReferenceNumber

public void setCatalogReferenceNumber(java.lang.Long catalogID)

This method provides access to the STORECAT.CATALOG_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of the Catalog.

Parameters:
catalogID - The catalog reference number. java.lang.Long
Returns:
void

setCatalogReferenceNumber

public void setCatalogReferenceNumber(java.lang.String catalogID)

This method provides access to the STORECAT.CATALOG_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of the Catalog.

Specified by:
setCatalogReferenceNumber in interface StoreCatalogAccessBeanData
Parameters:
catalogID - The catalog ID. java.lang.String
Returns:
void

setInitKey_catalogReferenceNumber

public void setInitKey_catalogReferenceNumber(java.lang.String catalogID)

Set the primary key for this object

Parameters:
catalogID - The catalog reference number. java.lang.String
Returns:
void

setInitKey_storeEntryID

public void setInitKey_storeEntryID(java.lang.String storeEntryID)

Set the primary key for this object

Parameters:
storeEntryID - The store entity ID. java.lang.String
Returns:
void

setLastUpdate

public void setLastUpdate(java.lang.String lastUpdate)

This method provides access to the STORECAT.LASTUPDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Indicates the last time that this relationship was updated.

Specified by:
setLastUpdate in interface StoreCatalogAccessBeanData
Parameters:
lastUpdate - The last update time stamp. java.lang.String
Returns:
void

setLastUpdate

public void setLastUpdate(java.sql.Timestamp lastUpdate)

This method provides access to the STORECAT.LASTUPDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Indicates the last time that this relationship was updated.

Parameters:
lastUpdate - The last update time stamp. java.sql.Timestamp
Returns:
void

setMasterCatalog

public void setMasterCatalog(java.lang.String masterCatalog)

This method provides access to the STORECAT.MASTERCATALOG column of DB2 type CHAR(1) NULL.

The following is a description of this column:

Specifies a master catalog for the Store. A value of 1 indicates that this Catalog is designated as a master catalog.

Specified by:
setMasterCatalog in interface StoreCatalogAccessBeanData
Parameters:
masterCatalog - The master catalog. java.lang.String
Returns:
void

setStoreEntryID

public void setStoreEntryID(java.lang.Integer storeEntityID)

This method provides access to the STORECAT.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The reference number of the StoreEntity.

Parameters:
storeEntryID - The store entity ID. java.lang.Integer
Returns:
void

setStoreEntryID

public void setStoreEntryID(java.lang.String aStoreEntryID)

This method provides access to the STORECAT.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The reference number of the StoreEntity.

Specified by:
setStoreEntryID in interface StoreCatalogAccessBeanData
Parameters:
aStoreEntryID - java.lang.String
Returns:
void