com.ibm.commerce.catalog.objects
Class CatalogGroupRelationAccessBean

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

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

This bean provides access to the CATGRPREL table.

The following is a description of this table:

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.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
CatalogGroupRelationAccessBean()
          Default constructor.
CatalogGroupRelationAccessBean(javax.ejb.EJBObject catGrpRelEJBObj)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
CatalogGroupRelationAccessBean(java.lang.Long catalogID, java.lang.Long catGrpParent, java.lang.Long catGrpChild)
          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 findByCatalogGroupChildId(java.lang.Long catGrpID)
          Finds the catalog group relation with the child catalog group ID.
 java.util.Enumeration findByCatalogGroupParentId(java.lang.Long catGrpID)
          Finds the catalog group relation with the parent catalog group ID.
 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.String getLastUpdate()
          This method provides access to the CATGRPREL.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getLastUpdateInEJBType()
          This method provides access to the CATGRPREL.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 java.lang.String getRule()
          This method provides access to the CATGRPREL.RULE column of DB2 type VARCHAR(254) NULL.
 java.lang.String getSequence()
          This method provides access to the CATGRPREL.SEQUENCE column of DB2 type FLOAT NOT NULL.
 java.lang.Double getSequenceInEJBType()
          This method provides access to the CATGRPREL.SEQUENCE column of DB2 type FLOAT NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCatalogGroupIdChild(java.lang.Long catGrpID)
          This method provides access to the CATGRPREL.CATGROUP_ID_CHILD column of DB2 type BIGINT NOT NULL.
 void setCatalogGroupIdChild(java.lang.String catGrpID)
          This method provides access to the CATGRPREL.CATGROUP_ID_CHILD column of DB2 type BIGINT NOT NULL.
 void setCatalogGroupIdParent(java.lang.Long catGrpID)
          This method provides access to the CATGRPREL.CATGROUP_ID_PARENT column of DB2 type BIGINT NOT NULL.
 void setCatalogGroupIdParent(java.lang.String catGrpID)
          This method provides access to the CATGRPREL.CATGROUP_ID_PARENT column of DB2 type BIGINT NOT NULL.
 void setCatalogId(java.lang.Long catalogID)
          This method provides access to the CATGRPREL.CATALOG_ID column of DB2 type BIGINT NOT NULL.
 void setCatalogId(java.lang.String catalogID)
          This method provides access to the CATGRPREL.CATALOG_ID column of DB2 type BIGINT NOT NULL.
 void setInitKey_catalogGroupIdChild(java.lang.String catGrpID)
          Set the primary key for this object
 void setInitKey_catalogGroupIdParent(java.lang.String catGrpID)
          Set the primary key for this object
 void setInitKey_catalogId(java.lang.String catalogID)
          Set the primary key for this object
 void setLastUpdate(java.lang.String lastUpdate)
          This method provides access to the CATGRPREL.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 void setLastUpdate(java.sql.Timestamp lastUpdate)
          This method provides access to the CATGRPREL.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 void setRule(java.lang.String rule)
          This method provides access to the CATGRPREL.RULE column of DB2 type VARCHAR(254) NULL.
 void setSequence(java.lang.Double sequence)
          This method provides access to the CATGRPREL.SEQUENCE column of DB2 type FLOAT NOT NULL.
 void setSequence(java.lang.String sequence)
          This method provides access to the CATGRPREL.SEQUENCE column of DB2 type FLOAT NOT NULL.
 
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

CatalogGroupRelationAccessBean

public CatalogGroupRelationAccessBean()

Default constructor. Maps to findByPrimaryKey.


CatalogGroupRelationAccessBean

public CatalogGroupRelationAccessBean(javax.ejb.EJBObject catGrpRelEJBObj)
                               throws java.rmi.RemoteException

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

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

CatalogGroupRelationAccessBean

public CatalogGroupRelationAccessBean(java.lang.Long catalogID,
                                      java.lang.Long catGrpParent,
                                      java.lang.Long catGrpChild)
                               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:
catalogID - The catalog ID. java.lang.Long
catGrpParent - The parent catalog group ID. java.lang.Long
catGrpChild - 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

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

findByCatalogGroupChildId

public java.util.Enumeration findByCatalogGroupChildId(java.lang.Long catGrpID)
                                                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 = catGrpID ORDER BY SEQUENCE

Parameters:
catGrpID - 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 - The javax.naming.NamingException exception

findByCatalogGroupParentId

public java.util.Enumeration findByCatalogGroupParentId(java.lang.Long catGrpID)
                                                 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 = catGrpID ORDER BY SEQUENCE

Parameters:
catGrpID - 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 - The javax.naming.NamingException exception

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

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 - 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

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

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 - 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

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

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 - 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

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 NULL.

The following is a description of this column:

Indicates the last time that this relationship was updated.

Specified by:
getLastUpdate in interface CatalogGroupRelationAccessBeanData
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

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 NULL.

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 - 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

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) NULL.

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 - 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

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.

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

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.

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 - 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

setCatalogGroupIdChild

public void setCatalogGroupIdChild(java.lang.Long catGrpID)

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.

Parameters:
catGrpID - The child catalog group ID. java.lang.Long
Returns:
void

setCatalogGroupIdChild

public void setCatalogGroupIdChild(java.lang.String catGrpID)

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:
setCatalogGroupIdChild in interface CatalogGroupRelationAccessBeanData
Parameters:
catGrpID - The child catalog group ID. java.lang.String
Returns:
void

setCatalogGroupIdParent

public void setCatalogGroupIdParent(java.lang.Long catGrpID)

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.

Parameters:
catGrpID - The parent catalog group ID. java.lang.Long
Returns:
void

setCatalogGroupIdParent

public void setCatalogGroupIdParent(java.lang.String catGrpID)

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:
setCatalogGroupIdParent in interface CatalogGroupRelationAccessBeanData
Parameters:
catGrpID - The parent catalog group ID. java.lang.String
Returns:
void

setCatalogId

public void setCatalogId(java.lang.Long catalogID)

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.

Parameters:
catalogID - The catalog ID. java.lang.Long
Returns:
void

setCatalogId

public void setCatalogId(java.lang.String catalogID)

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:
setCatalogId in interface CatalogGroupRelationAccessBeanData
Parameters:
catalogID - The catalog ID. java.lang.String
Returns:
void

setInitKey_catalogGroupIdChild

public void setInitKey_catalogGroupIdChild(java.lang.String catGrpID)

Set the primary key for this object

Parameters:
catGrpID - The child catalog group ID. java.lang.String
Returns:
void

setInitKey_catalogGroupIdParent

public void setInitKey_catalogGroupIdParent(java.lang.String catGrpID)

Set the primary key for this object

Parameters:
catGrpID - The parent catalog group ID. java.lang.String
Returns:
void

setInitKey_catalogId

public void setInitKey_catalogId(java.lang.String catalogID)

Set the primary key for this object

Parameters:
catalogID - The catalog ID. java.lang.String
Returns:
void

setLastUpdate

public void setLastUpdate(java.lang.String lastUpdate)

This method provides access to the CATGRPREL.LASTUPDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Indicates the last time that this relationship was updated.

Specified by:
setLastUpdate in interface CatalogGroupRelationAccessBeanData
Parameters:
lastUpdate - The last update time stamp. java.lang.String
Returns:
void

setLastUpdate

public void setLastUpdate(java.sql.Timestamp lastUpdate)

This method provides access to the CATGRPREL.LASTUPDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Indicates the last time that this relationship was updated.

Parameters:
lastUpdate - The last update time stamp. java.sql.Timestamp
Returns:
void

setRule

public void setRule(java.lang.String rule)

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

The following is a description of this column:

Reserved for IBM internal use.

Specified by:
setRule in interface CatalogGroupRelationAccessBeanData
Parameters:
rule - The rule. java.lang.String
Returns:
void

setSequence

public void setSequence(java.lang.Double sequence)

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

The following is a description of this column:

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

Parameters:
sequence - The sequence number. java.lang.Double
Returns:
void

setSequence

public void setSequence(java.lang.String sequence)

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

The following is a description of this column:

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

Specified by:
setSequence in interface CatalogGroupRelationAccessBeanData
Parameters:
sequence - The sequence number. java.lang.String
Returns:
void