com.ibm.commerce.catalog.objects
Class CompositeCatalogEntryAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
        |
        +--com.ibm.commerce.catalog.objects.CompositeCatalogEntryAccessBean
All Implemented Interfaces:
CompositeCatalogEntryAccessBeanData
Direct Known Subclasses:
CompositeItemDataBean, CompositePackageDataBean, CompositeProductDataBean

public class CompositeCatalogEntryAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CompositeCatalogEntryAccessBeanData

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.

See Also:
Serialized Form

Constructor Summary
CompositeCatalogEntryAccessBean()
          constructor
CompositeCatalogEntryAccessBean(javax.ejb.EJBObject o)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findBundleComponents(java.lang.Long arg0)
          Finds the composite catalog entry with the parent catalog entry ID.
 java.util.Enumeration findPackageComponents(java.lang.Long arg0)
          Finds the composite catalog entry with the catalog entry ID.
  CatalogEntryAccessBean getCompositeCatalogEntry()
          This method provides access to the CATENTREL.SEQUENCE column of DB2 type FLOAT 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 getFromCatalogEntryReferenceNumber()
          This method provides access to the CATENTREL.CATENTRY_ID_PARENT column of DB2 type BIGINT NOT NULL.
 java.lang.Long getFromCatalogEntryReferenceNumberInEJBType()
          This method provides access to the CATENTREL.CATENTRY_ID_PARENT column of DB2 type BIGINT NOT NULL.
 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 getToCatalogEntryReferenceNumber()
          This method provides access to the CATENTREL.CATENTRY_ID_CHILD column of DB2 type BIGINT NOT NULL.
 java.lang.Long getToCatalogEntryReferenceNumberInEJBType()
          This method provides access to the CATENTREL.CATENTRY_ID_CHILD column of DB2 type BIGINT NOT NULL.
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setField1(java.lang.String newValue)
          This method provides access to the CATENTREL.FIELD1 column of DB2 type VARCHAR(254).
 void setField2(java.lang.Integer newValue)
          This method provides access to the CATENTREL.FIELD2 column of DB2 type INTEGER.
 void setField2(java.lang.String newValue)
          This method provides access to the CATENTREL.FIELD2 column of DB2 type INTEGER.
 void setField3(java.math.BigDecimal newValue)
          This method provides access to the CATENTREL.FIELD3 column of DB2 type DECIMAL(20 5).
 void setField3(java.lang.String newValue)
          This method provides access to the CATENTREL.FIELD3 column of DB2 type DECIMAL(20 5).
 void setFromCatalogEntryReferenceNumber(java.lang.Long newValue)
          This method provides access to the CATENTREL.CATENTRY_ID_PARENT column of DB2 type BIGINT NOT NULL.
 void setFromCatalogEntryReferenceNumber(java.lang.String newValue)
          This method provides access to the CATENTREL.CATENTRY_ID_PARENT column of DB2 type BIGINT NOT NULL.
 void setGroupName(java.lang.String newValue)
          This method provides access to the CATENTREL.GROUPNAME column of DB2 type VARCHAR(254).
 void setInitKey_fromCatalogEntryReferenceNumber(java.lang.String newValue)
          Set the primary key for this object
 void setInitKey_relationship_type(java.lang.String newValue)
          Set the primary key for this object
 void setInitKey_toCatalogEntryReferenceNumber(java.lang.String newValue)
          Set the primary key for this object
 void setOid(java.lang.String newValue)
          This method provides access to the CATENTREL.OID column of DB2 type VARCHAR(64).
 void setQuantity(java.lang.Double newValue)
          This method provides access to the CATENTREL.QUANTITY column of DB2 type FLOAT.
 void setQuantity(java.lang.String newValue)
          This method provides access to the CATENTREL.QUANTITY column of DB2 type FLOAT.
 void setToCatalogEntryReferenceNumber(java.lang.Long newValue)
          This method provides access to the CATENTREL.CATENTRY_ID_CHILD column of DB2 type BIGINT NOT NULL.
 void setToCatalogEntryReferenceNumber(java.lang.String newValue)
          This method provides access to the CATENTREL.CATENTRY_ID_CHILD column of DB2 type BIGINT NOT NULL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeCatalogEntryAccessBean

public CompositeCatalogEntryAccessBean()
constructor

CompositeCatalogEntryAccessBean

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

findBundleComponents

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

Finds the composite catalog entry with the parent catalog entry ID.

SQL:
SELECT CATENTREL.CATENTRY_ID_CHILD, CATENTREL.SEQUENCE, CATENTREL.QUANTITY, CATENTREL.CATENTRY_ID_PARENT, CATENTREL.CATRELTYPE_ID, CATENTREL.FIELD1, CATENTREL.FIELD2, CATENTREL.FIELD3, CATENTREL.GROUPNAME, CATENTREL.OID FROM CATENTREL, CATENTRY WHERE CATENTRY.MARKFORDELETE = 0 AND CATENTREL.CATENTRY_ID_PARENT = catalogEntryReferenceNumber AND CATENTREL.CATRELTYPE_ID = 'BUNDLE_COMPONENT' AND CATENTRY.CATENTRY_ID = CATENTREL.CATENTRY_ID_CHILD ORDER BY CATENTREL.SEQUENCE

Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findPackageComponents

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

Finds the composite catalog entry with the catalog entry ID.

SQL:
SELECT CATENTREL.CATENTRY_ID_CHILD, CATENTREL.SEQUENCE, CATENTREL.QUANTITY, CATENTREL.CATENTRY_ID_PARENT, CATENTREL.CATRELTYPE_ID, CATENTREL.FIELD1, CATENTREL.FIELD2, CATENTREL.FIELD3, CATENTREL.GROUPNAME, CATENTREL.OID FROM CATENTREL, CATENTRY WHERE CATENTRY.MARKFORDELETE = 0 AND CATENTREL.CATENTRY_ID_PARENT = catalogEntryReferenceNumber AND CATENTREL.CATRELTYPE_ID = 'PACKAGE_COMPONENT' AND CATENTRY.CATENTRY_ID = CATENTREL.CATENTRY_ID_CHILD ORDER BY T1.SEQUENCE

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_fromCatalogEntryReferenceNumber

public void setInitKey_fromCatalogEntryReferenceNumber(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_relationship_type

public void setInitKey_relationship_type(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_toCatalogEntryReferenceNumber

public void setInitKey_toCatalogEntryReferenceNumber(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 CompositeCatalogEntryAccessBeanData
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 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:
setQuantity in interface CompositeCatalogEntryAccessBeanData
Parameters:
newValue - String
Returns:
void

setQuantity

public void setQuantity(java.lang.Double newValue)

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.

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

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 CompositeCatalogEntryAccessBeanData
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 provides access to the CATENTREL.FIELD3 column of DB2 type DECIMAL(20 5).

The following is a description of this column:

Customizable.

Specified by:
setField3 in interface CompositeCatalogEntryAccessBeanData
Parameters:
newValue - String
Returns:
void

setField3

public void setField3(java.math.BigDecimal newValue)

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

The following is a description of this column:

Customizable.

Parameters:
newValue - java.math.BigDecimal
Returns:
void

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 CompositeCatalogEntryAccessBeanData
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 provides access to the CATENTREL.FIELD2 column of DB2 type INTEGER.

The following is a description of this column:

Customizable.

Specified by:
setField2 in interface CompositeCatalogEntryAccessBeanData
Parameters:
newValue - String
Returns:
void

setField2

public void setField2(java.lang.Integer newValue)

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

The following is a description of this column:

Customizable.

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

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 CompositeCatalogEntryAccessBeanData
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 provides access to the CATENTREL.FIELD1 column of DB2 type VARCHAR(254).

The following is a description of this column:

Customizable.

Specified by:
setField1 in interface CompositeCatalogEntryAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

getFromCatalogEntryReferenceNumber

public java.lang.String getFromCatalogEntryReferenceNumber()
                                                    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:
getFromCatalogEntryReferenceNumber in interface CompositeCatalogEntryAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getFromCatalogEntryReferenceNumberInEJBType

public java.lang.Long getFromCatalogEntryReferenceNumberInEJBType()
                                                           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

setFromCatalogEntryReferenceNumber

public void setFromCatalogEntryReferenceNumber(java.lang.String newValue)

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:
setFromCatalogEntryReferenceNumber in interface CompositeCatalogEntryAccessBeanData
Parameters:
newValue - String
Returns:
void

setFromCatalogEntryReferenceNumber

public void setFromCatalogEntryReferenceNumber(java.lang.Long newValue)

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.

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

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 CompositeCatalogEntryAccessBeanData
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 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:
setGroupName in interface CompositeCatalogEntryAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

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 CompositeCatalogEntryAccessBeanData
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 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:
setOid in interface CompositeCatalogEntryAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

getToCatalogEntryReferenceNumber

public java.lang.String getToCatalogEntryReferenceNumber()
                                                  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:
getToCatalogEntryReferenceNumber in interface CompositeCatalogEntryAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getToCatalogEntryReferenceNumberInEJBType

public java.lang.Long getToCatalogEntryReferenceNumberInEJBType()
                                                         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

setToCatalogEntryReferenceNumber

public void setToCatalogEntryReferenceNumber(java.lang.String newValue)

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:
setToCatalogEntryReferenceNumber in interface CompositeCatalogEntryAccessBeanData
Parameters:
newValue - String
Returns:
void

setToCatalogEntryReferenceNumber

public void setToCatalogEntryReferenceNumber(java.lang.Long newValue)

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.

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

getCompositeCatalogEntry

public CatalogEntryAccessBean getCompositeCatalogEntry()
                                                throws javax.naming.NamingException,
                                                       javax.ejb.CreateException,
                                                       javax.ejb.FinderException,
                                                       java.rmi.RemoteException

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

The following is a description of this column:

The sequence number used to determine the display order.

Returns:
com.ibm.commerce.catalog.objects.CatalogEntryAccessBean
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception