com.ibm.commerce.catalog.objects
Class StoreCatalogAccessBean

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

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

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

See Also:
Serialized Form

Constructor Summary
StoreCatalogAccessBean()
          constructor
StoreCatalogAccessBean(javax.ejb.EJBObject o)
          constructor
StoreCatalogAccessBean(java.lang.Long arg0, java.lang.Integer arg1)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findByCatalogId(java.lang.Long arg0)
          Finds the store catalogs with the catalog ID.
 java.util.Enumeration findByCatalogIdAndStoreId(java.lang.Long arg0, java.lang.Integer arg1)
          Finds by catalog id and store id.
 java.util.Enumeration findByStoreId(java.lang.Integer arg0)
          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.
 java.sql.Timestamp getLastUpdateInEJBType()
          This method provides access to the STORECAT.LASTUPDATE column of DB2 type TIMESTAMP.
 java.lang.String getMasterCatalog()
          This method provides access to the STORECAT.MASTERCATALOG column of DB2 type CHAR(1).
 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.
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCatalogReferenceNumber(java.lang.Long newValue)
          This method provides access to the STORECAT.CATALOG_ID column of DB2 type BIGINT NOT NULL.
 void setCatalogReferenceNumber(java.lang.String newValue)
          This method provides access to the STORECAT.CATALOG_ID column of DB2 type BIGINT NOT NULL.
 void setInitKey_catalogReferenceNumber(java.lang.String newValue)
          Set the primary key for this object
 void setInitKey_storeEntryID(java.lang.String newValue)
          Set the primary key for this object
 void setLastUpdate(java.lang.String newValue)
          This method provides access to the STORECAT.LASTUPDATE column of DB2 type TIMESTAMP.
 void setLastUpdate(java.sql.Timestamp newValue)
          This method provides access to the STORECAT.LASTUPDATE column of DB2 type TIMESTAMP.
 void setMasterCatalog(java.lang.String newValue)
          This method provides access to the STORECAT.MASTERCATALOG column of DB2 type CHAR(1).
 void setStoreEntryID(java.lang.Integer newValue)
          This method provides access to the STORECAT.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void setStoreEntryID(java.lang.String newValue)
          This method provides access to the STORECAT.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreCatalogAccessBean

public StoreCatalogAccessBean()
constructor

StoreCatalogAccessBean

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

StoreCatalogAccessBean

public StoreCatalogAccessBean(java.lang.Long arg0,
                              java.lang.Integer arg1)
                       throws javax.ejb.CreateException,
                              java.rmi.RemoteException,
                              javax.naming.NamingException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.Integer
Throws:
javax.ejb.CreateException
java.rmi.RemoteException
javax.naming.NamingException
Method Detail

findByCatalogId

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

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 arg0)
                                    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 = argStoreId

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

setInitKey_catalogReferenceNumber

public void setInitKey_catalogReferenceNumber(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_storeEntryID

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

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

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setMasterCatalog

public void setMasterCatalog(java.lang.String newValue)

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

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:
newValue - java.lang.String
Returns:
void

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.

The following is a description of this column:

Indicates the last time that this relationship was updated.

Specified by:
getLastUpdate in interface StoreCatalogAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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.

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setLastUpdate

public void setLastUpdate(java.lang.String newValue)

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

The following is a description of this column:

Indicates the last time that this relationship was updated.

Specified by:
setLastUpdate in interface StoreCatalogAccessBeanData
Parameters:
newValue - String
Returns:
void

setLastUpdate

public void setLastUpdate(java.sql.Timestamp newValue)

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

The following is a description of this column:

Indicates the last time that this relationship was updated.

Parameters:
newValue - java.sql.Timestamp
Returns:
void

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

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCatalogReferenceNumber

public void setCatalogReferenceNumber(java.lang.String newValue)

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:
newValue - String
Returns:
void

setCatalogReferenceNumber

public void setCatalogReferenceNumber(java.lang.Long newValue)

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:
newValue - java.lang.Long
Returns:
void

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

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setStoreEntryID

public void setStoreEntryID(java.lang.String newValue)

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:
newValue - String
Returns:
void

setStoreEntryID

public void setStoreEntryID(java.lang.Integer newValue)

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:
newValue - java.lang.Integer
Returns:
void

findByCatalogIdAndStoreId

public java.util.Enumeration findByCatalogIdAndStoreId(java.lang.Long arg0,
                                                       java.lang.Integer arg1)
                                                throws javax.naming.NamingException,
                                                       javax.ejb.FinderException,
                                                       java.rmi.RemoteException
Finds by catalog id and store id.
Returns:
The records which meets the search criteria.
Throws:
java.rmi.RemoteException - The exception description.
javax.ejb.FinderException - The exception description.
javax.naming.NamingException