com.ibm.commerce.catalog.objects
Class CatalogCatalogGroupRelationAccessBean

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

public class CatalogCatalogGroupRelationAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CatalogCatalogGroupRelationAccessBeanData

This table identifies the root CatalogGroups (or root Categories) contained within a Catalog. This access bean corresponds to the database table 'CATTOGRP'.

See Also:
Serialized Form

Constructor Summary
CatalogCatalogGroupRelationAccessBean()
Default constructor.
CatalogCatalogGroupRelationAccessBean(javax.ejb.EJBObject o)
constructor
CatalogCatalogGroupRelationAccessBean(java.lang.Long argCatalogGroupId, java.lang.Long argCatalogId)
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 catalog - catalog group relations with the catalog group ID.
java.util.Enumeration findByCatalogGroupIdAndStore(java.lang.Long argCatalogGroupId, java.lang.Integer argStoreId)
Finds the records by the catalog group id and store id.
java.util.Enumeration findByCatalogId(java.lang.Long argCatalogId)
Finds the catalog - catalog group relations with the catalog ID.
java.util.Enumeration findByCatalogIdAndStore(java.lang.Long argCatalogId, java.lang.Integer argStoreId)
Finds the records by the catalog id and store id.
java.lang.String getCatalogGroupReferenceNumber()
This method provides access to the CATTOGRP.CATGROUP_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getCatalogGroupReferenceNumberInEJBType()
This method provides access to the CATTOGRP.CATGROUP_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getCatalogReferenceNumber()
This method provides access to the CATTOGRP.CATALOG_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getCatalogReferenceNumberInEJBType()
This method provides access to the CATTOGRP.CATALOG_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getLastUpdate()
This method provides access to the CATTOGRP.LASTUPDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getLastUpdateInEJBType()
This method provides access to the CATTOGRP.LASTUPDATE column of DB2 type TIMESTAMP.
java.lang.String getSequence()
This method provides access to the CATTOGRP.SEQUENCE column of DB2 type DOUBLE.
java.lang.Double getSequenceInEJBType()
This method provides access to the CATTOGRP.SEQUENCE column of DB2 type DOUBLE.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCatalogGroupReferenceNumber(java.lang.Long newValue)
This method accesses a non-CMP field
void setCatalogGroupReferenceNumber(java.lang.String newValue)
This method accesses a non-CMP field
void setCatalogReferenceNumber(java.lang.Long newValue)
This method accesses a non-CMP field
void setCatalogReferenceNumber(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_catalogGroupReferenceNumber(java.lang.String newValue)
Set the primary key for this object
void setInitKey_catalogReferenceNumber(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 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

CatalogCatalogGroupRelationAccessBean

public CatalogCatalogGroupRelationAccessBean()

Default constructor. Maps to findByPrimaryKey.


CatalogCatalogGroupRelationAccessBean

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

CatalogCatalogGroupRelationAccessBean

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

Parameters:
argCatalogGroupId - The catalog group reference number. java.lang.Long
argCatalogId - The catalog reference number. 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

findByCatalogGroupId

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

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

SQL:
SELECT LASTUPDATE, CATGROUP_ID, CATALOG_ID, SEQUENCE FROM CATTOGRP 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

findByCatalogId

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

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

SQL:
SELECT LASTUPDATE, CATGROUP_ID, CATALOG_ID, SEQUENCE FROM CATTOGRP WHERE CATALOG_ID = argCatalogId ORDER BY SEQUENCE

Parameters:
argCatalogId - The catalog 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_catalogGroupReferenceNumber

public void setInitKey_catalogGroupReferenceNumber(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_catalogReferenceNumber

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

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 CATTOGRP.LASTUPDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The last time that this relationship was updated.

Specified by:
getLastUpdate in interface CatalogCatalogGroupRelationAccessBeanData
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 CATTOGRP.LASTUPDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

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 CatalogCatalogGroupRelationAccessBeanData

setLastUpdate

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

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 CATTOGRP.CATGROUP_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of the CatalogGroup.

Specified by:
getCatalogGroupReferenceNumber in interface CatalogCatalogGroupRelationAccessBeanData
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 CATTOGRP.CATGROUP_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of the CatalogGroup.

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

setCatalogGroupReferenceNumber

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

setCatalogGroupReferenceNumber

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

getCatalogReferenceNumber

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

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

The following is a description of this column:

The reference number of the Catalog.

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

getCatalogReferenceNumberInEJBType

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

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

The following is a description of this column:

The reference number of the Catalog.

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

setCatalogReferenceNumber

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

setCatalogReferenceNumber

public void setCatalogReferenceNumber(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 CATTOGRP.SEQUENCE column of DB2 type DOUBLE.

The following is a description of this column:

The sequence number used to determine display order.

Specified by:
getSequence in interface CatalogCatalogGroupRelationAccessBeanData
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 CATTOGRP.SEQUENCE column of DB2 type DOUBLE.

The following is a description of this column:

The sequence number used to determine display order.

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 CatalogCatalogGroupRelationAccessBeanData

setSequence

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

findByCatalogGroupIdAndStore

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

findByCatalogIdAndStore

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