com.ibm.commerce.catalog.objects
Class ProductSetAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
        |
        +--com.ibm.commerce.catalog.objects.ProductSetAccessBean
All Implemented Interfaces:
ProductSetAccessBeanData

public class ProductSetAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements ProductSetAccessBeanData

This table holds the definition of a ProductSet. The actual representation of the ProductSet is held in the PRSETCEREL table.

See Also:
Serialized Form

Constructor Summary
ProductSetAccessBean()
          constructor
ProductSetAccessBean(javax.ejb.EJBObject o)
          constructor
ProductSetAccessBean(java.lang.String arg0, java.lang.String arg1, java.lang.Long arg2)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findByAllNonStatic()
          This method returns an enumeration of ProductSet Access Beans that are no static and not marked for deletion.
  ProductSetAccessBean findByCatalogIdAndCatalogGroupId(java.lang.Long arg0, java.lang.Long arg1)
          This method returns the ProductSet Access Beans with the specified Catalog reference number and Catalog Group reference number.
 java.util.Enumeration findByName(java.lang.String arg0)
          This method returns an enumeration of ProductSet Access Beans with the specified ProductSet name.
 java.util.Enumeration findByNameAndOwner(java.lang.String arg0, java.lang.Long arg1)
          This method returns an enumeration of ProductSet Access Beans with the specified name and owner reference number.
 java.util.Enumeration findByTermConditionId(java.lang.Long arg0)
           
 java.lang.String getMarkForDelete()
          This method provides access to the PRODUCTSET.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 java.lang.Integer getMarkForDeleteInEJBType()
          This method provides access to the PRODUCTSET.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 java.lang.String getName()
          This method provides access to the PRODUCTSET.NAME column of DB2 type VARCHAR(32).
 java.lang.String getOwnerId()
          This method provides access to the PRODUCTSET.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOwnerIdInEJBType()
          This method provides access to the PRODUCTSET.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getProductSetId()
          This method provides access to the PRODUCTSET.PRODUCTSET_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getProductSetIdInEJBType()
          This method provides access to the PRODUCTSET.PRODUCTSET_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getPublishTime()
          This method provides access to the PRODUCTSET.PUBLISHTIME column of DB2 type TIMESTAMP.
 java.sql.Timestamp getPublishTimeInEJBType()
          This method provides access to the PRODUCTSET.PUBLISHTIME column of DB2 type TIMESTAMP.
 java.lang.String getStaticflag()
          This method provides access to the PRODUCTSET.STATIC column of DB2 type CHAR(1).
 java.lang.String getXmlDefinition()
          This method accesses a non-CMP field
 java.lang.String getXmlString()
          This method returns the content of the XML in the PRODUCTSET.XMLDEFINITION column of DB2 type LONG VARCHAR NULL.
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 boolean isChildLevelProductSet(java.lang.Long arg0, java.lang.Integer arg1)
          This method returns true if this is a Child ProductSet under the supplied ProductSet and exists in the ProductSetVector.
 boolean isTopLevelProductSet(java.lang.Long arg0, java.util.Vector arg1)
          This method returns true if this is a top level ProductSet and exists in the ProductsetVector.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_productSetId(java.lang.String newValue)
          Set the primary key for this object
 void setMarkForDelete(java.lang.Integer newValue)
          This method provides access to the PRODUCTSET.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setMarkForDelete(java.lang.String newValue)
          This method provides access to the PRODUCTSET.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setName(java.lang.String newValue)
          This method provides access to the PRODUCTSET.NAME column of DB2 type VARCHAR(32).
 void setOwnerId(java.lang.Long newValue)
          This method provides access to the PRODUCTSET.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setOwnerId(java.lang.String newValue)
          This method provides access to the PRODUCTSET.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setProductSetId(java.lang.Integer newValue)
          This method provides access to the PRODUCTSET.PRODUCTSET_ID column of DB2 type INTEGER NOT NULL.
 void setProductSetId(java.lang.String newValue)
          This method provides access to the PRODUCTSET.PRODUCTSET_ID column of DB2 type INTEGER NOT NULL.
 void setPublishTime(java.lang.String newValue)
          This method provides access to the PRODUCTSET.PUBLISHTIME column of DB2 type TIMESTAMP.
 void setPublishTime(java.sql.Timestamp newValue)
          This method provides access to the PRODUCTSET.PUBLISHTIME column of DB2 type TIMESTAMP.
 void setStaticflag(java.lang.String newValue)
          This method provides access to the PRODUCTSET.STATIC column of DB2 type CHAR(1).
 void setXmlDefinition(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

ProductSetAccessBean

public ProductSetAccessBean()
constructor

ProductSetAccessBean

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

ProductSetAccessBean

public ProductSetAccessBean(java.lang.String arg0,
                            java.lang.String arg1,
                            java.lang.Long arg2)
                     throws javax.naming.NamingException,
                            javax.ejb.CreateException,
                            java.rmi.RemoteException,
                            javax.ejb.FinderException
constructor
Parameters:
arg0 - java.lang.String
arg1 - java.lang.String
arg2 - java.lang.Long
Throws:
javax.naming.NamingException
javax.ejb.CreateException
java.rmi.RemoteException
javax.ejb.FinderException
Method Detail

findByCatalogIdAndCatalogGroupId

public ProductSetAccessBean findByCatalogIdAndCatalogGroupId(java.lang.Long arg0,
                                                             java.lang.Long arg1)
                                                      throws java.rmi.RemoteException,
                                                             javax.ejb.FinderException,
                                                             javax.naming.NamingException

This method returns the ProductSet Access Beans with the specified Catalog reference number and Catalog Group reference number. It searched into the CATGRPPS table and find the ProductSet reference number with the specified Catalog reference number and Catalog Group reference number and then return the ProductSet Access Bean with that ProductSet reference number.

Returns:
com.ibm.commerce.catalog.objects.ProductSetAccessBean
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

findByAllNonStatic

public java.util.Enumeration findByAllNonStatic()
                                         throws java.rmi.RemoteException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException

This method returns an enumeration of ProductSet Access Beans that are no static and not marked for deletion.

SQL: SELECT * FROM PRODUCTSET WHERE (PRODUCTSET.MARKFORDELETE = 0 OR PRODUCTSET.MARKFORDELETE IS NULL) AND (PRODUCTSET.STATIC = '0' OR PRODUCTSET.STATIC IS NULL)

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

findByName

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

This method returns an enumeration of ProductSet Access Beans with the specified ProductSet name.

SQL:
SELECT * FROM PRODUCTSET WHERE PRODUCTSET.NAME = astrName

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

findByNameAndOwner

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

This method returns an enumeration of ProductSet Access Beans with the specified name and owner reference number.

SQL:
SELECT * FROM PRODUCTSET WHERE PRODUCTSET.NAME = astrName AND PRODUCTSET.MEMBER_ID = anMemberId

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_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

getOwnerId

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

This method provides access to the PRODUCTSET.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The owner of this ProductSet.

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

getOwnerIdInEJBType

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

This method provides access to the PRODUCTSET.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The owner of this ProductSet.

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

setOwnerId

public void setOwnerId(java.lang.String newValue)

This method provides access to the PRODUCTSET.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The owner of this ProductSet.

Specified by:
setOwnerId in interface ProductSetAccessBeanData
Parameters:
newValue - String
Returns:
void

setOwnerId

public void setOwnerId(java.lang.Long newValue)

This method provides access to the PRODUCTSET.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The owner of this ProductSet.

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

getMarkForDelete

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

This method provides access to the PRODUCTSET.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates if this ProductSet has been marked for deletion:&l

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

getMarkForDeleteInEJBType

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

This method provides access to the PRODUCTSET.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates if this ProductSet has been marked for deletion:&l

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

setMarkForDelete

public void setMarkForDelete(java.lang.String newValue)

This method provides access to the PRODUCTSET.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates if this ProductSet has been marked for deletion:&l

Specified by:
setMarkForDelete in interface ProductSetAccessBeanData
Parameters:
newValue - String
Returns:
void

setMarkForDelete

public void setMarkForDelete(java.lang.Integer newValue)

This method provides access to the PRODUCTSET.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates if this ProductSet has been marked for deletion:&l

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

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 PRODUCTSET.PRODUCTSET_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The internal reference number.

Specified by:
getProductSetId in interface ProductSetAccessBeanData
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 PRODUCTSET.PRODUCTSET_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The internal reference number.

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 provides access to the PRODUCTSET.PRODUCTSET_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The internal reference number.

Specified by:
setProductSetId in interface ProductSetAccessBeanData
Parameters:
newValue - String
Returns:
void

setProductSetId

public void setProductSetId(java.lang.Integer newValue)

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

The following is a description of this column:

The internal reference number.

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

getXmlDefinition

public java.lang.String getXmlDefinition()
                                  throws java.rmi.RemoteException,
                                         javax.ejb.CreateException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getXmlDefinition in interface ProductSetAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setXmlDefinition

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

getStaticflag

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

This method provides access to the PRODUCTSET.STATIC column of DB2 type CHAR(1).

The following is a description of this column:

Indicates whether this ProductSet can be changed. If this column is set to &quo

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

setStaticflag

public void setStaticflag(java.lang.String newValue)

This method provides access to the PRODUCTSET.STATIC column of DB2 type CHAR(1).

The following is a description of this column:

Indicates whether this ProductSet can be changed. If this column is set to &quo

Specified by:
setStaticflag in interface ProductSetAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

getPublishTime

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

This method provides access to the PRODUCTSET.PUBLISHTIME column of DB2 type TIMESTAMP.

The following is a description of this column:

The time when this ProductSet was published to the PRSETCEREL table.

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

getPublishTimeInEJBType

public java.sql.Timestamp getPublishTimeInEJBType()
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.CreateException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException

This method provides access to the PRODUCTSET.PUBLISHTIME column of DB2 type TIMESTAMP.

The following is a description of this column:

The time when this ProductSet was published to the PRSETCEREL table.

Returns:
java.sql.Timestamp
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setPublishTime

public void setPublishTime(java.lang.String newValue)

This method provides access to the PRODUCTSET.PUBLISHTIME column of DB2 type TIMESTAMP.

The following is a description of this column:

The time when this ProductSet was published to the PRSETCEREL table.

Specified by:
setPublishTime in interface ProductSetAccessBeanData
Parameters:
newValue - String
Returns:
void

setPublishTime

public void setPublishTime(java.sql.Timestamp newValue)

This method provides access to the PRODUCTSET.PUBLISHTIME column of DB2 type TIMESTAMP.

The following is a description of this column:

The time when this ProductSet was published to the PRSETCEREL table.

Parameters:
newValue - java.sql.Timestamp
Returns:
void

getName

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

This method provides access to the PRODUCTSET.NAME column of DB2 type VARCHAR(32).

The following is a description of this column:

The name given to this ProductSet.

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

setName

public void setName(java.lang.String newValue)

This method provides access to the PRODUCTSET.NAME column of DB2 type VARCHAR(32).

The following is a description of this column:

The name given to this ProductSet.

Specified by:
setName in interface ProductSetAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

isChildLevelProductSet

public boolean isChildLevelProductSet(java.lang.Long arg0,
                                      java.lang.Integer arg1)
                               throws java.rmi.RemoteException,
                                      javax.ejb.FinderException,
                                      javax.naming.NamingException
This method returns true if this is a Child ProductSet under the supplied ProductSet and exists in the ProductSetVector.
Returns:
boolean
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

isTopLevelProductSet

public boolean isTopLevelProductSet(java.lang.Long arg0,
                                    java.util.Vector arg1)
                             throws java.rmi.RemoteException,
                                    javax.ejb.FinderException,
                                    javax.naming.NamingException
This method returns true if this is a top level ProductSet and exists in the ProductsetVector.
Returns:
boolean
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

getXmlString

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

This method returns the content of the XML in the PRODUCTSET.XMLDEFINITION column of DB2 type LONG VARCHAR NULL.

Returns:
java.lang.String
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

findByTermConditionId

public java.util.Enumeration findByTermConditionId(java.lang.Long arg0)
                                            throws javax.naming.NamingException,
                                                   javax.ejb.FinderException,
                                                   java.rmi.RemoteException
Returns:
com.ibm.commerce.catalog.objects.ProductSet
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException