com.ibm.commerce.catalog.objects
Class StoreCatalogGroupAccessBean

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

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

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

See Also:
Serialized Form

Constructor Summary
StoreCatalogGroupAccessBean()
Zero argument constructor used to initialize the access bean.
StoreCatalogGroupAccessBean(javax.ejb.EJBObject o)
constructor
StoreCatalogGroupAccessBean(java.lang.Long argCatalogGroupReferenceNumber, java.lang.Integer argStoreEntryID)
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 findByCatalogGroupId(java.lang.Long argCatalogGroupId)
Finds the store catalog group with the catalog group ID.
java.util.Enumeration findByStoreId(java.lang.Long argStoreId)
Finds the store catalog groups with the store ID.
java.util.Enumeration findByStoreIdAndCatalogGroupId(java.lang.Integer argStoreId, java.lang.Long argCatalogGroupId)
Finds by catalog group id and 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.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setInitKey_catalogGroupReferenceNumber(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

StoreCatalogGroupAccessBean

public StoreCatalogGroupAccessBean()
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.StoreCatalogGroup com.ibm.commerce.catalog.objimpl.StoreCatalogGroupHomeBase.findByPrimaryKey(com.ibm.commerce.catalog.objects.StoreCatalogGroupKey) 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_catalogGroupReferenceNumber( java.lang.Long ) setInitKey_storeEntryID( java.lang.Integer )

StoreCatalogGroupAccessBean

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

StoreCatalogGroupAccessBean

public StoreCatalogGroupAccessBean(java.lang.Long argCatalogGroupReferenceNumber,
                                   java.lang.Integer argStoreEntryID)
                            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:
argCatalogGroupReferenceNumber - The catalog group reference number. java.lang.Long
argStoreEntryID - 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

findByCatalogGroupId

public java.util.Enumeration findByCatalogGroupId(java.lang.Long argCatalogGroupId)
                                           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 = argCatalogGroupId

Parameters:
argCatalogGroupId - 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 argStoreId)
                                    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 = 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_catalogGroupReferenceNumber

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

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

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

findByStoreIdAndCatalogGroupId

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