com.ibm.commerce.negotiation.objects
Class RuleClassRegistryAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.negotiation.objects.RuleClassRegistryAccessBean
All Implemented Interfaces:
RuleClassRegistryAccessBeanData, java.io.Serializable

public class RuleClassRegistryAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements RuleClassRegistryAccessBeanData

This bean provides access to the RULECLSREG table.

The following is a description of this table:

This table contains the class information used to interpret the text in the CONTRLRULE table.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
RuleClassRegistryAccessBean()
          Zero argument constructor used to initialize the access bean.
RuleClassRegistryAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
RuleClassRegistryAccessBean(java.lang.Long ownerId, java.lang.String name, java.lang.String className)
          Creates an access bean with the specified attributes.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findAllRuleClasses()
          Retrieves all rule class records.
 RuleClassRegistryAccessBean findRuleClassByOwnerAndType(java.lang.Long ownerId, java.lang.String type)
          Retrieves all rule class records for the specified owner and type.
 java.util.Enumeration findRuleClassesByOwner(java.lang.Long ownerId)
          Retrieves all rule class records for the specified owner.
 java.lang.String getClassName()
          This method provides access to the RULECLSREG.CLASSNAME column of DB2 type VARCHAR(254) NULL.
 java.lang.String getId()
          This method provides access to the RULECLSREG.RULECLASS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getIdInEJBType()
          This method provides access to the RULECLSREG.RULECLASS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getName()
          This method provides access to the RULECLSREG.NAME column of DB2 type VARCHAR(64) NULL.
 java.lang.String getOwnerId()
          This method provides access to the RULECLSREG.OWNER_ID column of DB2 type BIGINT NULL.
 java.lang.Long getOwnerIdInEJBType()
          This method provides access to the RULECLSREG.OWNER_ID column of DB2 type BIGINT NULL.
 java.lang.String getRuleType()
          This method provides access to the RULECLSREG.RULETYPE column of DB2 type CHAR(4) NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setClassName(java.lang.String aClassName1)
          This method provides access to the RULECLSREG.CLASSNAME column of DB2 type VARCHAR(254) NULL.
 void setId(java.lang.Long aId1)
          This method provides access to the RULECLSREG.RULECLASS_ID column of DB2 type BIGINT NOT NULL.
 void setId(java.lang.String aId1)
          This method provides access to the RULECLSREG.RULECLASS_ID column of DB2 type BIGINT NOT NULL.
 void setInitKey_id(java.lang.Long aInitKey_id1)
          Set the primary key for this object
 void setName(java.lang.String aName1)
          This method provides access to the RULECLSREG.NAME column of DB2 type VARCHAR(64) NULL.
 void setOwnerId(java.lang.Long aOwnerId1)
          This method provides access to the RULECLSREG.OWNER_ID column of DB2 type BIGINT NULL.
 void setOwnerId(java.lang.String aOwnerId1)
          This method provides access to the RULECLSREG.OWNER_ID column of DB2 type BIGINT NULL.
 void setRuleType(java.lang.String aRuleType1)
          This method provides access to the RULECLSREG.RULETYPE column of DB2 type CHAR(4) NOT NULL.
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleClassRegistryAccessBean

public RuleClassRegistryAccessBean()

Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method:

public abstract com.ibm.commerce.negotiation.objects.RuleClassRegistry com.ibm.commerce.negotiation.objects.RuleClassRegistryHome.findByPrimaryKey(com.ibm.commerce.negotiation.objects.RuleClassRegistryKey) 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:


RuleClassRegistryAccessBean

public RuleClassRegistryAccessBean(javax.ejb.EJBObject object)
                            throws java.rmi.RemoteException

Creates an access bean for the specified EJB

Parameters:
object - The EJB Object used for the access bean construction.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception.

RuleClassRegistryAccessBean

public RuleClassRegistryAccessBean(java.lang.Long ownerId,
                                   java.lang.String name,
                                   java.lang.String className)
                            throws javax.ejb.CreateException,
                                   java.rmi.RemoteException,
                                   javax.naming.NamingException

Creates an access bean with the specified attributes.

Parameters:
ownerId - The owner of the rule.
name - The descriptive name of the rule.
className - The class used to interpret the rule text in the CONTRLRULE table.
Method Detail

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).

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findAllRuleClasses

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

Retrieves all rule class records.

The SQL query used to fetch all the required rows from the RULECLSREG table is:

SELECT * FROM RULECLSREG T1 WHERE 1=1

Returns:
An Enumeration of all the RuleClassRegistryAccessBeans representing rows that match the search criteria.

findRuleClassByOwnerAndType

public RuleClassRegistryAccessBean findRuleClassByOwnerAndType(java.lang.Long ownerId,
                                                               java.lang.String type)
                                                        throws java.rmi.RemoteException,
                                                               javax.ejb.FinderException,
                                                               javax.naming.NamingException

Retrieves all rule class records for the specified owner and type.

The SQL query used to fetch all the required rows from the RULECLSREG table is:

SELECT * FROM RULECLSREG T1 WHERE T1.OWNER_ID=? AND T1.RULETYPE=?

Parameters:
ownerId - The owner of the rule.
type - The rule type. Same as auction type. Valid values: O=Open Cry, SB=Sealed Bid, D=Dutch.
Returns:
An Enumeration of all the RuleClassRegistryAccessBeans representing rows that match the search criteria.

findRuleClassesByOwner

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

Retrieves all rule class records for the specified owner.

The SQL query used to fetch all the required rows from the RULECLSREG table is:

SELECT * FROM RULECLSREG T1 WHERE T1.OWNER_ID=? OR T1.OWNER_ID IS NULL

Parameters:
ownerId - The owner of the rule.
Returns:
An Enumeration of all the RuleClassRegistryAccessBeans representing rows that match the search criteria.

getClassName

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

This method provides access to the RULECLSREG.CLASSNAME column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

The class used to interpret the rule text in the CONTRLRULE table.

Specified by:
getClassName in interface RuleClassRegistryAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getId

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

This method provides access to the RULECLSREG.RULECLASS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Rule class ID. The primary key to the table.

Specified by:
getId in interface RuleClassRegistryAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getIdInEJBType

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

This method provides access to the RULECLSREG.RULECLASS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Rule class ID. The primary key to the table.

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

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 RULECLSREG.NAME column of DB2 type VARCHAR(64) NULL.

The following is a description of this column:

Descriptive name of the rule.

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

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 RULECLSREG.OWNER_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Owner of the rule. Foreign Key to the MEMBER table.

Specified by:
getOwnerId in interface RuleClassRegistryAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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 RULECLSREG.OWNER_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Owner of the rule. Foreign Key to the MEMBER table.

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

getRuleType

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

This method provides access to the RULECLSREG.RULETYPE column of DB2 type CHAR(4) NOT NULL.

The following is a description of this column:

Rule type. Same as auction type. Valid values: O=Open Cry, SB=Sealed Bid, D=Dutch.

Specified by:
getRuleType in interface RuleClassRegistryAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setClassName

public void setClassName(java.lang.String aClassName1)

This method provides access to the RULECLSREG.CLASSNAME column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

The class used to interpret the rule text in the CONTRLRULE table.

Specified by:
setClassName in interface RuleClassRegistryAccessBeanData
Parameters:
aClassName1 - java.lang.String
Returns:
void

setId

public void setId(java.lang.Long aId1)

This method provides access to the RULECLSREG.RULECLASS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Rule class ID. The primary key to the table.

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

setId

public void setId(java.lang.String aId1)

This method provides access to the RULECLSREG.RULECLASS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Rule class ID. The primary key to the table.

Specified by:
setId in interface RuleClassRegistryAccessBeanData
Parameters:
aId1 - java.lang.String
Returns:
void

setInitKey_id

public void setInitKey_id(java.lang.Long aInitKey_id1)

Set the primary key for this object

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

setName

public void setName(java.lang.String aName1)

This method provides access to the RULECLSREG.NAME column of DB2 type VARCHAR(64) NULL.

The following is a description of this column:

Descriptive name of the rule.

Specified by:
setName in interface RuleClassRegistryAccessBeanData
Parameters:
aName1 - java.lang.String
Returns:
void

setOwnerId

public void setOwnerId(java.lang.Long aOwnerId1)

This method provides access to the RULECLSREG.OWNER_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Owner of the rule. Foreign Key to the MEMBER table.

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

setOwnerId

public void setOwnerId(java.lang.String aOwnerId1)

This method provides access to the RULECLSREG.OWNER_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Owner of the rule. Foreign Key to the MEMBER table.

Specified by:
setOwnerId in interface RuleClassRegistryAccessBeanData
Parameters:
aOwnerId1 - java.lang.String
Returns:
void

setRuleType

public void setRuleType(java.lang.String aRuleType1)

This method provides access to the RULECLSREG.RULETYPE column of DB2 type CHAR(4) NOT NULL.

The following is a description of this column:

Rule type. Same as auction type. Valid values: O=Open Cry, SB=Sealed Bid, D=Dutch.

Specified by:
setRuleType in interface RuleClassRegistryAccessBeanData
Parameters:
aRuleType1 - java.lang.String
Returns:
void