com.ibm.commerce.catalog.objects
Class CatalogGroupRelationAccessBean

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

public class CatalogGroupRelationAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CatalogGroupRelationAccessBeanData

This tables relates CatalogGroups (or Categories) to SubCatalogGroups (or SubCategories). You can use this table to dictate the navigational flow from CatalogGroups to SubCatalogGroups. Each relationship is also qualified by a Catalog ID. This access bean corresponds to the database table 'CATGRPREL'.

See Also:
Serialized Form

Constructor Summary
CatalogGroupRelationAccessBean()
Zero argument constructor used to initialize the access bean.
CatalogGroupRelationAccessBean(javax.ejb.EJBObject o)
constructor
CatalogGroupRelationAccessBean(java.lang.Long argCatalogId, java.lang.Long argCatalogGroupParentNumber, java.lang.Long argCatalogGroupChildNumber)
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 findByCatalogGroupChildId(java.lang.Long argCatalogGroupChildId)
Finds the catalog group relation with the child catalog group ID.
java.util.Enumeration findByCatalogGroupChildIdAndStore(java.lang.Long argCatalogGroupChildId, java.lang.Integer anStore)
Finds the parent of the given child catalog group id in this store.
java.util.Enumeration findByCatalogGroupParentId(java.lang.Long argCatalogGroupParentId)
Finds the catalog group relation with the parent catalog group ID.
java.util.Enumeration findByCatalogGroupParentIdAndStore(java.lang.Long argCatalogGroupParentId, java.lang.Integer anStore)
Finds the child of the given parent catalog group id in this store.
java.util.Enumeration findByLinkedCatalogId(java.lang.Long argCatalogIdLink)
Finds the catalog group relations that link to the catlaog
java.util.Enumeration findByParentCategoryAndLinkedCatalog(java.lang.Long argParentCatgroupId, java.lang.Long argLinkedCatalogId)
Finds the child of the given parent catalog group id that link to the catlaog
java.lang.String getCatalogGroupIdChild()
This method provides access to the CATGRPREL.CATGROUP_ID_CHILD column of DB2 type BIGINT NOT NULL.
java.lang.Long getCatalogGroupIdChildInEJBType()
This method provides access to the CATGRPREL.CATGROUP_ID_CHILD column of DB2 type BIGINT NOT NULL.
java.lang.String getCatalogGroupIdParent()
This method provides access to the CATGRPREL.CATGROUP_ID_PARENT column of DB2 type BIGINT NOT NULL.
java.lang.Long getCatalogGroupIdParentInEJBType()
This method provides access to the CATGRPREL.CATGROUP_ID_PARENT column of DB2 type BIGINT NOT NULL.
java.lang.String getCatalogId()
This method provides access to the CATGRPREL.CATALOG_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getCatalogIdInEJBType()
This method provides access to the CATGRPREL.CATALOG_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getCatalogIdLink()
getCatalogIdLink
java.lang.String getLastUpdate()
This method provides access to the CATGRPREL.LASTUPDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getLastUpdateInEJBType()
This method provides access to the CATGRPREL.LASTUPDATE column of DB2 type TIMESTAMP.
CatalogAccessBean getLinkedCatalog()
The Catalogs that are linked this group relationship
java.lang.String getRule()
This method provides access to the CATGRPREL.RULE column of DB2 type VARCHAR(254).
java.lang.String getSequence()
This method provides access to the CATGRPREL.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.
java.lang.Double getSequenceInEJBType()
This method provides access to the CATGRPREL.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCatalogGroupIdChild(java.lang.Long newValue)
This method accesses a non-CMP field
void setCatalogGroupIdChild(java.lang.String newValue)
This method accesses a non-CMP field
void setCatalogGroupIdParent(java.lang.Long newValue)
This method accesses a non-CMP field
void setCatalogGroupIdParent(java.lang.String newValue)
This method accesses a non-CMP field
void setCatalogId(java.lang.Long newValue)
This method accesses a non-CMP field
void setCatalogId(java.lang.String newValue)
This method accesses a non-CMP field
void setCatalogIdLink(java.lang.Long newValue)
This method accesses a non-CMP field
void setInitKey_catalogGroupIdChild(java.lang.String newValue)
Set the primary key for this object
void setInitKey_catalogGroupIdParent(java.lang.String newValue)
Set the primary key for this object
void setInitKey_catalogId(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 setRule(java.lang.String newValue)
This method accesses a non-CMP field
void setSequence(java.lang.Double newValue)
This method accesses a non-CMP field
void setSequence(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

CatalogGroupRelationAccessBean

public CatalogGroupRelationAccessBean()
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.CatalogGroupRelation com.ibm.commerce.catalog.objimpl.CatalogGroupRelationHomeBase.findByPrimaryKey(com.ibm.commerce.catalog.objects.CatalogGroupRelationKey) 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_catalogGroupIdChild( java.lang.Long ) setInitKey_catalogGroupIdParent( java.lang.Long ) setInitKey_catalogId( java.lang.Long )

CatalogGroupRelationAccessBean

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

CatalogGroupRelationAccessBean

public CatalogGroupRelationAccessBean(java.lang.Long argCatalogId,
                                      java.lang.Long argCatalogGroupParentNumber,
                                      java.lang.Long argCatalogGroupChildNumber)
                               throws javax.naming.NamingException,
                                      javax.ejb.CreateException,
                                      java.rmi.RemoteException,
                                      javax.ejb.FinderException

Maps to a corresponding ejbCreate method in the home interface of the EJB. Creates an access to the catalog group relation according to the catalog ID, parent catalog group ID, and child catalog group ID.

Parameters:
argCatalogId - The catalog ID. java.lang.Long
argCatalogGroupParentNumber - The parent catalog group ID. java.lang.Long
argCatalogGroupChildNumber - The child catalog group ID. java.lang.Long
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
Method Detail

findByCatalogGroupChildId

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

Finds the catalog group relation with the child catalog group ID.

SQL:
SELECT CATGROUP_ID_PARENT, CATGROUP_ID_CHILD, CATALOG_ID, RULE, SEQUENCE, LASTUPDATE FROM CATGRPREL WHERE CATGROUP_ID_CHILD = argCatalogGroupChildId ORDER BY SEQUENCE

Parameters:
argCatalogGroupChildId - The child 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

findByCatalogGroupParentId

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

Finds the catalog group relation with the parent catalog group ID.

SQL:
SELECT CATGROUP_ID_PARENT, CATGROUP_ID_CHILD, CATALOG_ID, RULE, SEQUENCE, LASTUPDATE FROM CATGRPREL WHERE CATGROUP_ID_PARENT = argCatalogGroupParentId ORDER BY SEQUENCE

Parameters:
argCatalogGroupParentId - The parent 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

setInitKey_catalogGroupIdChild

public void setInitKey_catalogGroupIdChild(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_catalogGroupIdParent

public void setInitKey_catalogGroupIdParent(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_catalogId

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

getCatalogGroupIdParent

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

This method provides access to the CATGRPREL.CATGROUP_ID_PARENT column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The source CatalogGroup of this relationship.

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

getCatalogGroupIdParentInEJBType

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

This method provides access to the CATGRPREL.CATGROUP_ID_PARENT column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The source CatalogGroup of this relationship.

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

setCatalogGroupIdParent

public void setCatalogGroupIdParent(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setCatalogGroupIdParent in interface CatalogGroupRelationAccessBeanData

setCatalogGroupIdParent

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

getRule

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

This method provides access to the CATGRPREL.RULE column of DB2 type VARCHAR(254).

The following is a description of this column:

Reserved for IBM internal use.

Specified by:
getRule in interface CatalogGroupRelationAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setRule

public void setRule(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setRule in interface CatalogGroupRelationAccessBeanData

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 CATGRPREL.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 CatalogGroupRelationAccessBeanData
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 CATGRPREL.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 CatalogGroupRelationAccessBeanData

setLastUpdate

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

getCatalogGroupIdChild

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

This method provides access to the CATGRPREL.CATGROUP_ID_CHILD column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The target CatalogGroup of this relationship.

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

getCatalogGroupIdChildInEJBType

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

This method provides access to the CATGRPREL.CATGROUP_ID_CHILD column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The target CatalogGroup of this relationship.

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

setCatalogGroupIdChild

public void setCatalogGroupIdChild(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setCatalogGroupIdChild in interface CatalogGroupRelationAccessBeanData

setCatalogGroupIdChild

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

getCatalogId

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

This method provides access to the CATGRPREL.CATALOG_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Catalog in which this relationship is found.

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

getCatalogIdInEJBType

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

This method provides access to the CATGRPREL.CATALOG_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Catalog in which this relationship is found.

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

setCatalogId

public void setCatalogId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setCatalogId in interface CatalogGroupRelationAccessBeanData

setCatalogId

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

getSequence

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

This method provides access to the CATGRPREL.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.

The following is a description of this column:

The sequence number that determines the display order of the contents of the CatalogGroup.

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

getSequenceInEJBType

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

This method provides access to the CATGRPREL.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.

The following is a description of this column:

The sequence number that determines the display order of the contents of the CatalogGroup.

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

setSequence

public void setSequence(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setSequence in interface CatalogGroupRelationAccessBeanData

setSequence

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

findByCatalogGroupChildIdAndStore

public java.util.Enumeration findByCatalogGroupChildIdAndStore(java.lang.Long argCatalogGroupChildId,
                                                               java.lang.Integer anStore)
                                                        throws javax.naming.NamingException,
                                                               javax.ejb.FinderException,
                                                               java.rmi.RemoteException
Finds the parent of the given child catalog group id in this store.
Parameters:
argCatalogGroupChildId - The child catalog group id.
anStore - The store id.
Returns:
The records meets the seaching criteria.
Throws:
java.rmi.RemoteException - The exception description.
javax.ejb.FinderException - The exception description.
javax.naming.NamingException

findByCatalogGroupParentIdAndStore

public java.util.Enumeration findByCatalogGroupParentIdAndStore(java.lang.Long argCatalogGroupParentId,
                                                                java.lang.Integer anStore)
                                                         throws javax.naming.NamingException,
                                                                javax.ejb.FinderException,
                                                                java.rmi.RemoteException
Finds the child of the given parent catalog group id in this store.
Parameters:
argCatalogGroupParentId - The parent catalog group id.
anStore - The store id.
Returns:
The records meets the seaching criteria.
Throws:
java.rmi.RemoteException - The exception description.
javax.ejb.FinderException - The exception description.
javax.naming.NamingException

getCatalogIdLink

public java.lang.Long getCatalogIdLink()
                                throws java.rmi.RemoteException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException
getCatalogIdLink
Specified by:
getCatalogIdLink in interface CatalogGroupRelationAccessBeanData
Returns:
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCatalogIdLink

public void setCatalogIdLink(java.lang.Long newValue)
This method accesses a non-CMP field
Specified by:
setCatalogIdLink in interface CatalogGroupRelationAccessBeanData

findByParentCategoryAndLinkedCatalog

public java.util.Enumeration findByParentCategoryAndLinkedCatalog(java.lang.Long argParentCatgroupId,
                                                                  java.lang.Long argLinkedCatalogId)
                                                           throws javax.naming.NamingException,
                                                                  javax.ejb.FinderException,
                                                                  java.rmi.RemoteException
Finds the child of the given parent catalog group id that link to the catlaog
Parameters:
argParentCatgroupId - The parent catalog group id.
Returns:
The records meets the searching criteria.
Throws:
java.rmi.RemoteException - The exception description.
javax.ejb.FinderException - The exception description.
javax.naming.NamingException

findByLinkedCatalogId

public java.util.Enumeration findByLinkedCatalogId(java.lang.Long argCatalogIdLink)
                                            throws javax.naming.NamingException,
                                                   javax.ejb.FinderException,
                                                   java.rmi.RemoteException
Finds the catalog group relations that link to the catlaog
Parameters:
argCatalogIdLink - The linked catalog id.
Returns:
The records meets the searching criteria.
Throws:
java.rmi.RemoteException - The exception description.
javax.ejb.FinderException - The exception description.
javax.naming.NamingException

getLinkedCatalog

public CatalogAccessBean getLinkedCatalog()
                                   throws javax.naming.NamingException,
                                          javax.ejb.FinderException,
                                          javax.ejb.CreateException,
                                          java.rmi.RemoteException
The Catalogs that are linked this group relationship
Returns:
CatalogAccessBean
Throws:
javax.naming.NamingException
javax.ejb.CreateException
javax.ejb.FinderException
java.rmi.RemoteException

Feedback