com.ibm.commerce.catalog.objects
Class CatalogGroupCatalogEntryRelationAccessBean

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

public class CatalogGroupCatalogEntryRelationAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CatalogGroupCatalogEntryRelationAccessBeanData

This table relates CatalogGroups (or Categories) to the CatalogEntries that are inside them. You can also use this table to dictate the navigational flow from CatalogGroups to CatalogEntries. Each relationship is also qualified by a Catalog ID. This access bean corresponds to the database table 'CATGPENREL'.

See Also:
Serialized Form

Constructor Summary
CatalogGroupCatalogEntryRelationAccessBean()
Default constructor.
CatalogGroupCatalogEntryRelationAccessBean(javax.ejb.EJBObject o)
constructor
CatalogGroupCatalogEntryRelationAccessBean(java.lang.Long argCatalogId, java.lang.Long argCatalogGroupId, java.lang.Long argCatalogEntryId)
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 aCatalogEntryId)
Finds the catalog group - catalog entry relations with the catalog entry ID.
java.util.Enumeration findByCatalogEntryIdAndStore(java.lang.Long anCatEntId, java.lang.Integer anStoreId)
Finds the record by catalog entry id and store id.
java.util.Enumeration findByCatalogGroupId(java.lang.Long aCatalogGroupId)
Finds the catalog group - catalog entry with catalog group ID.
java.lang.String getCatalogEntryId()
This method provides access to the CATGPENREL.CATENTRY_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getCatalogEntryIdInEJBType()
This method provides access to the CATGPENREL.CATENTRY_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getCatalogGroupId()
This method provides access to the CATGPENREL.CATGROUP_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getCatalogGroupIdInEJBType()
This method provides access to the CATGPENREL.CATGROUP_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getCatalogId()
This method provides access to the CATGPENREL.CATALOG_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getCatalogIdInEJBType()
This method provides access to the CATGPENREL.CATALOG_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getLastUpdate()
This method provides access to the CATGPENREL.LASTUPDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getLastUpdateInEJBType()
This method provides access to the CATGPENREL.LASTUPDATE column of DB2 type TIMESTAMP.
java.lang.String getRule()
This method provides access to the CATGPENREL.RULE column of DB2 type VARCHAR(254).
java.lang.String getSequence()
This method provides access to the CATGPENREL.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.
java.lang.Double getSequenceInEJBType()
This method provides access to the CATGPENREL.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCatalogEntryId(java.lang.Long newValue)
This method accesses a non-CMP field
void setCatalogEntryId(java.lang.String newValue)
This method accesses a non-CMP field
void setCatalogGroupId(java.lang.Long newValue)
This method accesses a non-CMP field
void setCatalogGroupId(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 setInitKey_catalogEntryId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_catalogGroupId(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

CatalogGroupCatalogEntryRelationAccessBean

public CatalogGroupCatalogEntryRelationAccessBean()

Default constructor. Maps to findByPrimaryKey.


CatalogGroupCatalogEntryRelationAccessBean

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

CatalogGroupCatalogEntryRelationAccessBean

public CatalogGroupCatalogEntryRelationAccessBean(java.lang.Long argCatalogId,
                                                  java.lang.Long argCatalogGroupId,
                                                  java.lang.Long argCatalogEntryId)
                                           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 - catalog entry relation according to the catalog ID, catalog group ID, and catalog entry ID.

Parameters:
argCatalogId - The catalog ID. java.lang.Long
argCatalogGroupId - The catalog group ID. java.lang.Long
argCatalogEntryId - The catalog entry 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

findByCatalogEntryId

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

Finds the catalog group - catalog entry relations with the catalog entry ID.

SQL:
SELECT CATGROUP_ID, CATALOG_ID, RULE, SEQUENCE, CATENTRY_ID, LASTUPDATE FROM CATGPENREL WHERE CATENTRY_ID = aCatalogEntryId ORDER BY SEQUENCE

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

findByCatalogGroupId

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

Finds the catalog group - catalog entry with catalog group ID.

SQL:
SELECT CATGROUP_ID, CATALOG_ID, RULE, SEQUENCE, CATENTRY_ID, LASTUPDATE FROM CATGPENREL WHERE CATGROUP_ID = aCatalogGroupId ORDER BY SEQUENCE

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

setInitKey_catalogEntryId

public void setInitKey_catalogEntryId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_catalogGroupId

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

getCatalogGroupId

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

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

The following is a description of this column:

The source CatalogGroup of this relationship.

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

getCatalogGroupIdInEJBType

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

This method provides access to the CATGPENREL.CATGROUP_ID 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

setCatalogGroupId

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

setCatalogGroupId

public void setCatalogGroupId(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 CATGPENREL.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 CatalogGroupCatalogEntryRelationAccessBeanData
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 CatalogGroupCatalogEntryRelationAccessBeanData

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 CATGPENREL.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 CatalogGroupCatalogEntryRelationAccessBeanData
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 CATGPENREL.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 CatalogGroupCatalogEntryRelationAccessBeanData

setLastUpdate

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

getCatalogEntryId

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

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

The following is a description of this column:

The target CatalogEntry of this relationship.

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

getCatalogEntryIdInEJBType

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

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

The following is a description of this column:

The target CatalogEntry of this relationship.

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

setCatalogEntryId

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

setCatalogEntryId

public void setCatalogEntryId(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 CATGPENREL.CATALOG_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Catalog inside of which this relationship is found.

Specified by:
getCatalogId in interface CatalogGroupCatalogEntryRelationAccessBeanData
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 CATGPENREL.CATALOG_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Catalog inside of 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 CatalogGroupCatalogEntryRelationAccessBeanData

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 CATGPENREL.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 CatalogGroupCatalogEntryRelationAccessBeanData
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 CATGPENREL.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 CatalogGroupCatalogEntryRelationAccessBeanData

setSequence

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

findByCatalogEntryIdAndStore

public java.util.Enumeration findByCatalogEntryIdAndStore(java.lang.Long anCatEntId,
                                                          java.lang.Integer anStoreId)
                                                   throws javax.naming.NamingException,
                                                          javax.ejb.FinderException,
                                                          java.rmi.RemoteException
Finds the record by catalog entry id and store id.
Parameters:
anCatEntId - The catalog entry id.
anStoreId - The store id.
Returns:
The records which meet the criteria.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

Feedback