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. This access bean corresponds to the database table 'PRODUCTSET'.

See Also:
Serialized Form

Constructor Summary
ProductSetAccessBean(javax.ejb.EJBObject o)
public ProductSetAccessBean () { super(); } /** 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 catalogId, java.lang.Long catGroupId)
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 name)
This method returns an enumeration of ProductSet Access Beans with the specified ProductSet name.
java.util.Enumeration findByNameAndOwner(java.lang.String name, java.lang.Long ownerId)
This method returns an enumeration of ProductSet Access Beans with the specified name and owner reference number.
java.util.Enumeration findByTermConditionId(java.lang.Long termConditionId)
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 anCatalogId, java.lang.Integer anProductSetId)
This method returns true if this is a Child ProductSet under the supplied ProductSet and exists in the ProductSetVector.
boolean isTopLevelProductSet(java.lang.Long anCatalogId, java.util.Vector avecabProductSets)
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 accesses a non-CMP field
void setMarkForDelete(java.lang.String newValue)
This method accesses a non-CMP field
void setName(java.lang.String newValue)
This method accesses a non-CMP field
void setOwnerId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOwnerId(java.lang.String newValue)
This method accesses a non-CMP field
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
void setPublishTime(java.lang.String newValue)
This method accesses a non-CMP field
void setPublishTime(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setStaticflag(java.lang.String newValue)
This method accesses a non-CMP field
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(javax.ejb.EJBObject o)
                     throws java.rmi.RemoteException
public ProductSetAccessBean () { super(); } /** 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 catalogId,
                                                             java.lang.Long catGroupId)
                                                      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.

Parameters:
catalogId - The Catalog reference number. java.lang.Long
catGroupId - The Catalog Group reference number. java.lang.Long
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 name)
                                 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 name,
                                                java.lang.Long ownerId)
                                         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 accesses a non-CMP field
Specified by:
setOwnerId in interface ProductSetAccessBeanData

setOwnerId

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

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 accesses a non-CMP field
Specified by:
setMarkForDelete in interface ProductSetAccessBeanData

setMarkForDelete

public void setMarkForDelete(java.lang.Integer 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 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 accesses a non-CMP field
Specified by:
setProductSetId in interface ProductSetAccessBeanData

setProductSetId

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

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
Throws:
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 1, then this PoductSet will never be re-published or synchronized.

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 accesses a non-CMP field
Specified by:
setStaticflag in interface ProductSetAccessBeanData

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 accesses a non-CMP field
Specified by:
setPublishTime in interface ProductSetAccessBeanData

setPublishTime

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

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 accesses a non-CMP field
Specified by:
setName in interface ProductSetAccessBeanData

isChildLevelProductSet

public boolean isChildLevelProductSet(java.lang.Long anCatalogId,
                                      java.lang.Integer anProductSetId)
                               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.
Parameters:
anCatalogId - The Catalog reference number. java.lang.Long
anProductSetId - The ProductSet reference number. java.lang.Integer
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 anCatalogId,
                                    java.util.Vector avecabProductSets)
                             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.
Parameters:
anCatalogId - The Catalog reference number. java.lang.Long
avecabProductSets - The ProductSet Vector. java.util.Vector
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 termConditionId)
                                            throws javax.naming.NamingException,
                                                   javax.ejb.FinderException,
                                                   java.rmi.RemoteException
Parameters:
termConditionId - Long
Returns:
com.ibm.commerce.catalog.objects.ProductSet
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

Feedback