com.ibm.commerce.catalog.objects
Class StoreCatalogGroupAccessBean

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

public class StoreCatalogGroupAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements StoreCatalogGroupAccessBeanData

This bean provides access to the STORECGRP table.

The following is a description of this table:

This table holds the relationship between StoreEntities and the CatalogGroups that they can display and process.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
StoreCatalogGroupAccessBean()
          Default constructor.
StoreCatalogGroupAccessBean(javax.ejb.EJBObject storeCatGrpEJBObj)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
StoreCatalogGroupAccessBean(java.lang.Long catGrpID, 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 findByCatalogGroupId(java.lang.Long catGrpID)
          Finds the store catalog group with the catalog group ID.
 java.util.Enumeration findByStoreId(java.lang.Long storeID)
          Finds the store catalog groups with the store ID.
 java.lang.String getCatalogGroupReferenceNumber()
          This method provides access to the STORECGRP.CATGROUP_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getCatalogGroupReferenceNumberInEJBType()
          This method provides access to the STORECGRP.CATGROUP_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getStoreEntryID()
          This method provides access to the STORECGRP.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getStoreEntryIDInEJBType()
          This method provides access to the STORECGRP.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_catalogGroupReferenceNumber(java.lang.String catGrpID)
          Set the primary key for this object
 void setInitKey_storeEntryID(java.lang.String storeID)
          Set the primary key for this object
 
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

StoreCatalogGroupAccessBean

public StoreCatalogGroupAccessBean()

Default constructor. Maps to findByPrimaryKey.


StoreCatalogGroupAccessBean

public StoreCatalogGroupAccessBean(javax.ejb.EJBObject storeCatGrpEJBObj)
                            throws java.rmi.RemoteException

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

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

StoreCatalogGroupAccessBean

public StoreCatalogGroupAccessBean(java.lang.Long catGrpID,
                                   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 entry according to the catalog entry ID and store ID.

Parameters:
catGrpID - The catalog group reference number. java.lang.Long
storeID - The store entity 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

findByCatalogGroupId

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

Finds the store catalog group with the catalog group ID.

SQL:
SELECT CATGROUP_ID, STOREENT_ID FROM STORECGRP WHERE CATGROUP_ID = catGrpID

Parameters:
catGrpID - The catalog group 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 storeID)
                                    throws java.rmi.RemoteException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException

Finds the store catalog groups with the store ID.

SQL:
SELECT CATGROUP_ID, STOREENT_ID FROM STORECGRP WHERE STOREENT_ID = storeID

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

getCatalogGroupReferenceNumber

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

This method provides access to the STORECGRP.CATGROUP_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of the Catalog Group.

Specified by:
getCatalogGroupReferenceNumber in interface StoreCatalogGroupAccessBeanData
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

getCatalogGroupReferenceNumberInEJBType

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

This method provides access to the STORECGRP.CATGROUP_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of the Catalog Group.

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

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

The following is a description of this column:

The reference number of the Store Entity.

Specified by:
getStoreEntryID in interface StoreCatalogGroupAccessBeanData
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 STORECGRP.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The reference number of the Store Entity.

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

setInitKey_catalogGroupReferenceNumber

public void setInitKey_catalogGroupReferenceNumber(java.lang.String catGrpID)

Set the primary key for this object

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

setInitKey_storeEntryID

public void setInitKey_storeEntryID(java.lang.String storeID)

Set the primary key for this object

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