com.ibm.commerce.catalog.objects
Class ProductSetCeRelAccessBean

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

public class ProductSetCeRelAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements ProductSetCeRelAccessBeanData

This table holds the expanded (published) form of a ProductSet. This access bean corresponds to the database table 'PRSETCEREL'.

See Also:
Serialized Form

Constructor Summary
ProductSetCeRelAccessBean()
Default constructor.
ProductSetCeRelAccessBean(java.lang.Integer argProductSetId, java.lang.Long argCatalogEntryId)
Contructor for the object that maps to a corresponding ejbCreate method in the home interface of the EJB.
ProductSetCeRelAccessBean(javax.ejb.EJBObject o)
constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
ProductSetCeRelAccessBean findEntitledCatalogEntry(java.lang.Long catEntry_id, java.lang.Long[] inclusionPS, java.lang.Long[] exclusionPS)
This method returns the ProductSetCeRel Access Bean such that the specified Catalog Entry is in the list of the inclusive ProductSet list and not in the list of the exclusive ProductSet list.
ProductSetCeRelAccessBean findUnEntitledCatalogEntry(java.lang.Long catEntry_id, java.lang.Long[] exclusionPS)
This method returns the ProductSetCeRel Access Bean such that the specified Catalog Entry is in the list of the exclusive ProductSet list.
java.lang.String getCatalogEntryId()
This method provides access to the PRSETCEREL.CATENTRY_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getCatalogEntryIdInEJBType()
This method provides access to the PRSETCEREL.CATENTRY_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getProductSetId()
This method provides access to the PRSETCEREL.PRODUCTSET_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getProductSetIdInEJBType()
This method provides access to the PRSETCEREL.PRODUCTSET_ID column of DB2 type INTEGER NOT NULL.
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 setInitKey_catalogEntryId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_productSetId(java.lang.String newValue)
Set the primary key for this object
void setProductSetId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setProductSetId(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

ProductSetCeRelAccessBean

public ProductSetCeRelAccessBean()

Default constructor. Maps to findByPrimaryKey.


ProductSetCeRelAccessBean

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

ProductSetCeRelAccessBean

public ProductSetCeRelAccessBean(java.lang.Integer argProductSetId,
                                 java.lang.Long argCatalogEntryId)
                          throws javax.naming.NamingException,
                                 javax.ejb.CreateException,
                                 java.rmi.RemoteException,
                                 javax.ejb.FinderException

Contructor for the object that maps to a corresponding ejbCreate method in the home interface of the EJB. Creates an access to the ProductSetCelRel according to the ProductSet reference number and the Catalog Entry reference number.

Parameters:
argProductSetId - The ProductSet reference number. java.lang.Integer
argCatalogEntryId - The Catalog Entry 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

findEntitledCatalogEntry

public ProductSetCeRelAccessBean findEntitledCatalogEntry(java.lang.Long catEntry_id,
                                                          java.lang.Long[] inclusionPS,
                                                          java.lang.Long[] exclusionPS)
                                                   throws java.rmi.RemoteException,
                                                          javax.ejb.FinderException,
                                                          javax.naming.NamingException

This method returns the ProductSetCeRel Access Bean such that the specified Catalog Entry is in the list of the inclusive ProductSet list and not in the list of the exclusive ProductSet list.

SQL:
SELECT PRSETCEREL.CATENTRY_ID, PRSETCEREL.PRODUCTSET_ID FROM PRSETCEREL, PRODUCTSET WHERE PRSETCEREL.CATENTRY_ID = catEntry_id AND PRODUCTSET.MARKFORDELETE = 0 AND PRSETCEREL.PRODUCTSET_ID = PRODUCTSET.PRODUCTSET_ID AND PRSETCEREL.PRODUCTSET_ID IN (inclusionPS)) AND PRSETCEREL.CATENTRY_ID NOT IN (SELECT CATENTRY_ID FROM PRSETCEREL WHERE PRODUCTSET_ID IN (exclusionPS))

Parameters:
catEntry_id - The Catalog Entry reference number. java.lang.Long
inclusionPS - The inclusive ProductSet List java.lang.Long[]
exclusionPS - The exclusive ProductSet List java.lang.Long[]
Returns:
com.ibm.commerce.catalog.objects.ProductSetCeRelAccessBean
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

findUnEntitledCatalogEntry

public ProductSetCeRelAccessBean findUnEntitledCatalogEntry(java.lang.Long catEntry_id,
                                                            java.lang.Long[] exclusionPS)
                                                     throws java.rmi.RemoteException,
                                                            javax.ejb.FinderException,
                                                            javax.naming.NamingException

This method returns the ProductSetCeRel Access Bean such that the specified Catalog Entry is in the list of the exclusive ProductSet list.

SQL:
SELECT PRSETCEREL.CATENTRY_ID, PRSETCEREL.PRODUCTSET_ID FROM PRSETCEREL, PRODUCTSET WHERE PRSETCEREL.CATENTRY_ID = catEntry_id AND PRODUCTSET.MARKFORDELETE = 0 AND PRSETCEREL.PRODUCTSET_ID = PRODUCTSET.PRODUCTSET_ID AND PRSETCEREL.CATENTRY_ID IN (SELECT CATENTRY_ID FROM PRSETCEREL WHERE PRODUCTSET_ID IN (exclusionPS))

Parameters:
catEntry_id - The Catalog Entry reference number. java.lang.Long
exclusionPS - The exclusive ProductSet List. java.lang.Long[]
Returns:
com.ibm.commerce.catalog.objects.ProductSetCeRelAccessBean
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_productSetId

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

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

The following is a description of this column:

The CatalogEntry ID.

Specified by:
getCatalogEntryId in interface ProductSetCeRelAccessBeanData
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 PRSETCEREL.CATENTRY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The CatalogEntry ID.

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 ProductSetCeRelAccessBeanData

setCatalogEntryId

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

getProductSetId

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

This method provides access to the PRSETCEREL.PRODUCTSET_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The ProductSet ID.

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

getProductSetIdInEJBType

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

This method provides access to the PRSETCEREL.PRODUCTSET_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The ProductSet ID.

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

setProductSetId

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

setProductSetId

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

Feedback