com.ibm.commerce.negotiation.objects
Class RuleClassRegistryAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.negotiation.objects.RuleClassRegistryAccessBean
All Implemented Interfaces:
RuleClassRegistryAccessBeanData

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

This table contains the class information used to interpret the text in the CONTRLRULE table. This access bean corresponds to the database table 'RULECLSREG'.

See Also:
Serialized Form

Constructor Summary
RuleClassRegistryAccessBean()
Zero argument constructor used to initialize the access bean.
RuleClassRegistryAccessBean(javax.ejb.EJBObject o)
constructor
RuleClassRegistryAccessBean(java.lang.Long arg1, java.lang.String arg2, java.lang.String arg3)
Creates an access bean with the specified attributes.
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
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).
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(128).
java.lang.String getOwnerId()
This method provides access to the RULECLSREG.OWNER_ID column of DB2 type BIGINT.
java.lang.Long getOwnerIdInEJBType()
This method provides access to the RULECLSREG.OWNER_ID column of DB2 type BIGINT.
java.lang.String getRuleType()
This method provides access to the RULECLSREG.RULETYPE column of DB2 type CHAR(4) NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setClassName(java.lang.String newValue)
This method accesses a non-CMP field
void setId(java.lang.Long newValue)
This method accesses a non-CMP field
void setId(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_id(java.lang.Long newValue)
Set the primary key for this object
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 setRuleType(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

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: setInitKey_id( java.lang.Long )

RuleClassRegistryAccessBean

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

RuleClassRegistryAccessBean

public RuleClassRegistryAccessBean(java.lang.Long arg1,
                                   java.lang.String arg2,
                                   java.lang.String arg3)
                            throws javax.ejb.CreateException,
                                   java.rmi.RemoteException,
                                   javax.naming.NamingException

Creates an access bean with the specified attributes.

Parameters:
arg1 - The owner of the rule.
arg2 - The descriptive arg2 of the rule.
arg3 - The class used to interpret the rule text in the CONTRLRULE table.
Method Detail

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.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

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.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

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.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

setInitKey_id

public void setInitKey_id(java.lang.Long newValue)

Set the primary key for this object

Parameters:
newValue - java.lang.Long
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

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 are as follows: &l

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

setRuleType

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

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.

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

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

setOwnerId

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

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setId

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

setId

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

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

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setClassName

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

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

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

Feedback