com.ibm.commerce.catalog.objects
Class CatalogEntryRelationAccessBean

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

public class CatalogEntryRelationAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CatalogEntryRelationAccessBeanData

This table holds containment relationships between CatalogEntries. Examples of these relationships are Product-Item, Bundle, and Package relationships. This table should not be used for peer-to-peer catalog relationships, such as cross-sells. This access bean corresponds to the database table 'CATENTREL'.

See Also:
Serialized Form

Constructor Summary
CatalogEntryRelationAccessBean()
Zero argument constructor used to initialize the access bean.
CatalogEntryRelationAccessBean(javax.ejb.EJBObject o)
constructor
CatalogEntryRelationAccessBean(java.lang.Long newCatalogEntryIdParent, java.lang.Long newCatalogEntryIdChild, java.lang.String newCatalogEntryType)
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 findByCatalogEntryChildId(java.lang.Long childId)
This method returns an Enumeration of CatalogEntryRelationAccessBean with the given child Catalog Entry reference number.
java.util.Enumeration findByCatalogEntryChildIdAndStore(java.lang.Long childId, java.lang.Integer anStoreId)
Finds the record by child catalog entry id and store id.
java.util.Enumeration findByCatalogEntryParentId(java.lang.Long parentId)
This method returns an Enumeration of CatalogEntryRelationAccessBean with the given parent Catalog Entry reference number.
java.lang.String getCatalogEntryIdChild()
This method provides access to the CATENTREL.CATENTRY_ID_CHILD column of DB2 type BIGINT NOT NULL.
java.lang.Long getCatalogEntryIdChildInEJBType()
This method provides access to the CATENTREL.CATENTRY_ID_CHILD column of DB2 type BIGINT NOT NULL.
java.lang.String getCatalogEntryIdParent()
This method provides access to the CATENTREL.CATENTRY_ID_PARENT column of DB2 type BIGINT NOT NULL.
java.lang.Long getCatalogEntryIdParentInEJBType()
This method provides access to the CATENTREL.CATENTRY_ID_PARENT column of DB2 type BIGINT NOT NULL.
java.lang.String getCatalogRelationTypeId()
This method provides access to the CATENTREL.CATRELTYPE_ID column of DB2 type CHAR(32) NOT NULL.
java.lang.String getField1()
This method provides access to the CATENTREL.FIELD1 column of DB2 type VARCHAR(254).
java.lang.String getField2()
This method provides access to the CATENTREL.FIELD2 column of DB2 type INTEGER.
java.lang.Integer getField2InEJBType()
This method provides access to the CATENTREL.FIELD2 column of DB2 type INTEGER.
java.lang.String getField3()
This method provides access to the CATENTREL.FIELD3 column of DB2 type DECIMAL(20 5).
java.math.BigDecimal getField3InEJBType()
This method provides access to the CATENTREL.FIELD3 column of DB2 type DECIMAL(20 5).
java.lang.String getGroupName()
This method provides access to the CATENTREL.GROUPNAME column of DB2 type VARCHAR(254).
java.lang.String getOID()
This method provides access to the CATENTREL.OID column of DB2 type VARCHAR(64).
java.lang.String getQuantity()
This method provides access to the CATENTREL.QUANTITY column of DB2 type FLOAT.
java.lang.Double getQuantityInEJBType()
This method provides access to the CATENTREL.QUANTITY column of DB2 type FLOAT.
java.lang.String getSequence()
This method provides access to the CATENTREL.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.
java.lang.Double getSequenceInEJBType()
This method provides access to the CATENTREL.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCatalogEntryIdChild(java.lang.Long newValue)
This method accesses a non-CMP field
void setCatalogEntryIdChild(java.lang.String newValue)
This method accesses a non-CMP field
void setCatalogEntryIdParent(java.lang.Long newValue)
This method accesses a non-CMP field
void setCatalogEntryIdParent(java.lang.String newValue)
This method accesses a non-CMP field
void setCatalogRelationTypeId(java.lang.String newValue)
This method accesses a non-CMP field
void setField1(java.lang.String newValue)
This method accesses a non-CMP field
void setField2(java.lang.Integer newValue)
This method accesses a non-CMP field
void setField2(java.lang.String newValue)
This method accesses a non-CMP field
void setField3(java.math.BigDecimal newValue)
This method accesses a non-CMP field
void setField3(java.lang.String newValue)
This method accesses a non-CMP field
void setGroupName(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_catalogEntryIdChild(java.lang.String newValue)
Set the primary key for this object
void setInitKey_catalogEntryIdParent(java.lang.String newValue)
Set the primary key for this object
void setInitKey_catalogRelationTypeId(java.lang.String newValue)
Set the primary key for this object
void setOID(java.lang.String newValue)
This method accesses a non-CMP field
void setQuantity(java.lang.Double newValue)
This method accesses a non-CMP field
void setQuantity(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

CatalogEntryRelationAccessBean

public CatalogEntryRelationAccessBean()
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.CatalogEntryRelation com.ibm.commerce.catalog.objimpl.CatalogEntryRelationHomeBase.findByPrimaryKey(com.ibm.commerce.catalog.objects.CatalogEntryRelationKey) 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_catalogEntryIdChild( java.lang.Long ) setInitKey_catalogEntryIdParent( java.lang.Long ) setInitKey_catalogRelationTypeId( java.lang.String )

CatalogEntryRelationAccessBean

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

CatalogEntryRelationAccessBean

public CatalogEntryRelationAccessBean(java.lang.Long newCatalogEntryIdParent,
                                      java.lang.Long newCatalogEntryIdChild,
                                      java.lang.String newCatalogEntryType)
                               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

Parameters:
newCatalogEntryIdParent - The parent Catalog Entry reference number. java.lang.Long
newCatalogEntryIdChild - The child Catalog Entry reference number. java.lang.Long
newCatalogEntryType - The Catalog Entry relationship type. java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
Method Detail

findByCatalogEntryChildId

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

This method returns an Enumeration of CatalogEntryRelationAccessBean with the given child Catalog Entry reference number.

SQL:
SELECT * FROM CATENTREL WHERE CATENTREL.CATENTRY_ID_CHILD = childId

Parameters:
childId - The child Catalog Entry reference number
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

findByCatalogEntryParentId

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

This method returns an Enumeration of CatalogEntryRelationAccessBean with the given parent Catalog Entry reference number.

SQL:
SELECT * FROM CATENTREL WHERE CATENTREL.CATENTRY_ID_PARENT = parentId

Parameters:
parentId - The parent Catalog Entry reference number
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_catalogEntryIdChild

public void setInitKey_catalogEntryIdChild(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_catalogEntryIdParent

public void setInitKey_catalogEntryIdParent(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_catalogRelationTypeId

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

getQuantity

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

This method provides access to the CATENTREL.QUANTITY column of DB2 type FLOAT.

The following is a description of this column:

A quantity that can be associated with the relationship.

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

getQuantityInEJBType

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

This method provides access to the CATENTREL.QUANTITY column of DB2 type FLOAT.

The following is a description of this column:

A quantity that can be associated with the relationship.

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

setQuantity

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

setQuantity

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

getOID

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

This method provides access to the CATENTREL.OID column of DB2 type VARCHAR(64).

The following is a description of this column:

Reserved for IBM internal use.

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

setOID

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

getCatalogEntryIdParent

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

This method provides access to the CATENTREL.CATENTRY_ID_PARENT column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of the source CatalogEntry in this relationship.

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

getCatalogEntryIdParentInEJBType

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

This method provides access to the CATENTREL.CATENTRY_ID_PARENT column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of the source CatalogEntry in this relationship.

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

setCatalogEntryIdParent

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

setCatalogEntryIdParent

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

getField3

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

This method provides access to the CATENTREL.FIELD3 column of DB2 type DECIMAL(20 5).

The following is a description of this column:

Customizable.

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

getField3InEJBType

public java.math.BigDecimal getField3InEJBType()
                                        throws java.rmi.RemoteException,
                                               javax.ejb.CreateException,
                                               javax.ejb.FinderException,
                                               javax.naming.NamingException

This method provides access to the CATENTREL.FIELD3 column of DB2 type DECIMAL(20 5).

The following is a description of this column:

Customizable.

Returns:
java.math.BigDecimal
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setField3

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

setField3

public void setField3(java.math.BigDecimal newValue)
This method accesses a non-CMP field

getField2

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

This method provides access to the CATENTREL.FIELD2 column of DB2 type INTEGER.

The following is a description of this column:

Customizable.

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

getField2InEJBType

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

This method provides access to the CATENTREL.FIELD2 column of DB2 type INTEGER.

The following is a description of this column:

Customizable.

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

setField2

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

setField2

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

getField1

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

This method provides access to the CATENTREL.FIELD1 column of DB2 type VARCHAR(254).

The following is a description of this column:

Customizable.

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

setField1

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

getGroupName

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

This method provides access to the CATENTREL.GROUPNAME column of DB2 type VARCHAR(254).

The following is a description of this column:

Reserved for IBM internal use.

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

setGroupName

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

getCatalogRelationTypeId

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

This method provides access to the CATENTREL.CATRELTYPE_ID column of DB2 type CHAR(32) NOT NULL.

The following is a description of this column:

The type of relationship: PRODUCT_ITEM, PACKAGE_COMPONENT or BUNDLE_COMPONENT. Foreign key to the CATRELTYPE table.

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

setCatalogRelationTypeId

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

getCatalogEntryIdChild

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

This method provides access to the CATENTREL.CATENTRY_ID_CHILD column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of the target CatalogEntry in this relationship.

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

getCatalogEntryIdChildInEJBType

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

This method provides access to the CATENTREL.CATENTRY_ID_CHILD column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The reference number of the target CatalogEntry in this relationship.

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

setCatalogEntryIdChild

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

setCatalogEntryIdChild

public void setCatalogEntryIdChild(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 CATENTREL.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.

The following is a description of this column:

The sequence number used to determine the display order.

Specified by:
getSequence in interface CatalogEntryRelationAccessBeanData
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 CATENTREL.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.

The following is a description of this column:

The sequence number used to determine the 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 CatalogEntryRelationAccessBeanData

setSequence

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

findByCatalogEntryChildIdAndStore

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

Feedback