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. This access bean corresponds to the database table 'STORECAT'.

See Also:
Serialized Form

Constructor Summary
StoreCatalogAccessBean()
Zero argument constructor used to initialize the access bean.
StoreCatalogAccessBean(javax.ejb.EJBObject o)
constructor
StoreCatalogAccessBean(java.lang.Long argCatalogReferenceNumber, 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).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByCatalogId(java.lang.Long argCatalogId)
Finds the store catalogs with the catalog ID.
java.util.Enumeration findByCatalogIdAndStoreId(java.lang.Long anCatalogId, java.lang.Integer anStoreId)
Finds by catalog id and store id.
java.util.Enumeration findByStoreId(java.lang.Integer argStoreId)
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 accesses a non-CMP field
void setCatalogReferenceNumber(java.lang.String newValue)
This method accesses a non-CMP field
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 accesses a non-CMP field
void setLastUpdate(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setMasterCatalog(java.lang.String newValue)
This method accesses a non-CMP field
void setStoreEntryID(java.lang.Integer newValue)
This method accesses a non-CMP field
void setStoreEntryID(java.lang.String newValue)
This method accesses a non-CMP field
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

StoreCatalogAccessBean

public StoreCatalogAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.catalog.objects.StoreCatalog com.ibm.commerce.catalog.objimpl.StoreCatalogHomeBase.findByPrimaryKey(com.ibm.commerce.catalog.objects.StoreCatalogKey) throws java.rmi.RemoteException,javax.ejb.FinderException The home interface method properties need to be set by calling the following setter methods before calling any business methods: setInitKey_catalogReferenceNumber( java.lang.Long ) setInitKey_storeEntryID( java.lang.Integer )

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 argCatalogReferenceNumber,
                              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 an access to the store catalog according to the catalog ID, store ID.

Parameters:
argCatalogReferenceNumber - The catalog reference number. java.lang.Long
argStoreId - 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

findByCatalogId

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

Parameters:
argCatalogId - 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 argStoreId)
                                    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

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

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 accesses a non-CMP field
Specified by:
setMasterCatalog in interface StoreCatalogAccessBeanData

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 accesses a non-CMP field
Specified by:
setLastUpdate in interface StoreCatalogAccessBeanData

setLastUpdate

public void setLastUpdate(java.sql.Timestamp newValue)
This method accesses a non-CMP field

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 accesses a non-CMP field
Specified by:
setCatalogReferenceNumber in interface StoreCatalogAccessBeanData

setCatalogReferenceNumber

public void setCatalogReferenceNumber(java.lang.Long newValue)
This method accesses a non-CMP field

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 accesses a non-CMP field
Specified by:
setStoreEntryID in interface StoreCatalogAccessBeanData

setStoreEntryID

public void setStoreEntryID(java.lang.Integer newValue)
This method accesses a non-CMP field

findByCatalogIdAndStoreId

public java.util.Enumeration findByCatalogIdAndStoreId(java.lang.Long anCatalogId,
                                                       java.lang.Integer anStoreId)
                                                throws javax.naming.NamingException,
                                                       javax.ejb.FinderException,
                                                       java.rmi.RemoteException
Finds by catalog id and store id.
Parameters:
anCatalogId - The catalog id.
anStoreId - The 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

Feedback