com.ibm.commerce.catalog.objects
Class StoreCatalogEntryAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.catalog.objects.StoreCatalogEntryAccessBean
All Implemented Interfaces:
StoreCatalogEntryAccessBeanData

public class StoreCatalogEntryAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements StoreCatalogEntryAccessBeanData

This table holds the relationship between StoreEntities and the CatalogEntries that they can display and process. This access bean corresponds to the database table 'STORECENT'.

See Also:
Serialized Form

Constructor Summary
StoreCatalogEntryAccessBean()
Zero argument constructor used to initialize the access bean.
StoreCatalogEntryAccessBean(javax.ejb.EJBObject o)
constructor
StoreCatalogEntryAccessBean(java.lang.Long arg1, java.lang.Integer arg2)
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 findByCatalogEntryId(java.lang.Long argCatalogEntryId)
Finds the store catalog entries with the catalog entry ID.
java.util.Enumeration findByCatalogEntryIdAndStoreId(java.lang.Long anCatalogEntryId, java.lang.Integer anStoreId)
Finds by catalog entry id and store id.
java.util.Enumeration findByStoreId(java.lang.Long argStoreId)
Finds the store catalog entries with the store ID.
java.lang.String getCatalogEntryReferenceNumber()
This method provides access to the STORECENT.CATENTRY_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getCatalogEntryReferenceNumberInEJBType()
This method provides access to the STORECENT.CATENTRY_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getStoreEntryID()
This method provides access to the STORECENT.STOREENT_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getStoreEntryIDInEJBType()
This method provides access to the STORECENT.STOREENT_ID column of DB2 type INTEGER NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setInitKey_catalogEntryReferenceNumber(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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

StoreCatalogEntryAccessBean

public StoreCatalogEntryAccessBean()
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.StoreCatalogEntry com.ibm.commerce.catalog.objimpl.StoreCatalogEntryHomeBase.findByPrimaryKey(com.ibm.commerce.catalog.objects.StoreCatalogEntryKey) 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_catalogEntryReferenceNumber( java.lang.Long ) setInitKey_storeEntryID( java.lang.Integer )

StoreCatalogEntryAccessBean

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

StoreCatalogEntryAccessBean

public StoreCatalogEntryAccessBean(java.lang.Long arg1,
                                   java.lang.Integer arg2)
                            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 entry according to the catalog entry ID and store ID.

Parameters:
arg1 - The catalog entry reference number. java.lang.Long
arg2 - 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

findByCatalogEntryId

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

Finds the store catalog entries with the catalog entry ID.

SQL:
SELECT CATENTRY_ID, STOREENT_ID FROM STORECENT WHERE CATENTRY_ID = argCatalogEntryId

Parameters:
argCatalogEntryId - The catalog entry 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.Long argStoreId)
                                    throws java.rmi.RemoteException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException

Finds the store catalog entries with the store ID.

SQL:
SELECT CATENTRY_ID, STOREENT_ID FROM STORECENT WHERE STOREENT_ID = argStoreId

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

setInitKey_catalogEntryReferenceNumber

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

getCatalogEntryReferenceNumber

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

This method provides access to the STORECENT.CATENTRY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of the CatalogEntry.

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

getCatalogEntryReferenceNumberInEJBType

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

This method provides access to the STORECENT.CATENTRY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of the CatalogEntry.

Returns:
java.lang.Long
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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 STORECENT.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 StoreCatalogEntryAccessBeanData
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 STORECENT.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

findByCatalogEntryIdAndStoreId

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