com.ibm.commerce.catalog.objects
Class OperatorAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.catalog.objects.OperatorAccessBean
All Implemented Interfaces:
OperatorAccessBeanData, java.io.Serializable

public class OperatorAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements OperatorAccessBeanData

This bean provides access to the OPERATOR table.

The following is a description of this table:

This table is used to define operators.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
OperatorAccessBean()
          Default constructor.
OperatorAccessBean(javax.ejb.EJBObject OperatorEJBObject)
          Contructor for the object that maps to a corresponding ejbCreate method in the home interface of the EJB.
OperatorAccessBean(java.lang.Integer anOperatorId, java.lang.String astrOperator)
          Contructor for the object that maps to a corresponding ejbCreate method in the home interface of the EJB.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findAll()
          This method returns an enumeration of all the Operator Access Bean.
 java.util.Enumeration findByOperator(java.lang.String astrOperator)
          This method returns an enumeration of the Operator Access Bean with the specified Operator.
 java.lang.String getOperator()
          This method provides access to the OPERATOR.OPERATOR column of DB2 type CHAR(32) NOT NULL.
 java.lang.String getOperatorId()
          This method provides access to the OPERATOR.OPERATOR_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getOperatorIdInEJBType()
          This method provides access to the OPERATOR.OPERATOR_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getOperatorType()
          This method provides access to the OPERATOR.OPERATORTYPE column of DB2 type CHAR(1) NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_operatorId(java.lang.String aInitKey_operatorId)
          Set the primary key for this object
 void setOperator(java.lang.String aOperator)
          This method provides access to the OPERATOR.OPERATOR column of DB2 type CHAR(32) NOT NULL.
 void setOperatorId(java.lang.Integer anOperatorId)
          This method provides access to the OPERATOR.OPERATOR_ID column of DB2 type INTEGER NOT NULL.
 void setOperatorId(java.lang.String astrOperatorId)
          This method provides access to the OPERATOR.OPERATOR_ID column of DB2 type INTEGER NOT NULL.
 void setOperatorType(java.lang.String astrOperatorType)
          This method provides access to the OPERATOR.OPERATORTYPE column of DB2 type CHAR(1) 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

OperatorAccessBean

public OperatorAccessBean()

Default constructor. Maps to findByPrimaryKey.


OperatorAccessBean

public OperatorAccessBean(javax.ejb.EJBObject OperatorEJBObject)
                   throws java.rmi.RemoteException

Contructor for the object that maps to a corresponding ejbCreate method in the home interface of the EJB.

Parameters:
OperatorEJBObject - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

OperatorAccessBean

public OperatorAccessBean(java.lang.Integer anOperatorId,
                          java.lang.String astrOperator)
                   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 Operator according to the Operator reference number and the Operator.

Parameters:
anOperatorId - The Operator reference number. java.lang.Integer
astrOperator - The Operator. java.lang.String
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

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

findAll

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

This method returns an enumeration of all the Operator Access Bean.

SQL:
SELECT * FROM OPERATOR

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

findByOperator

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

This method returns an enumeration of the Operator Access Bean with the specified Operator.

SQL:
SELECT * FROM OPERATOR WHERE OPERATOR.OPERATOR = astrOperator

Parameters:
astrOperator - The Operator. java.lang.String
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

getOperator

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

This method provides access to the OPERATOR.OPERATOR column of DB2 type CHAR(32) NOT NULL.

The following is a description of this column:

The operator. For example, "<" or ">=".

Specified by:
getOperator in interface OperatorAccessBeanData
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

getOperatorId

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

This method provides access to the OPERATOR.OPERATOR_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The reference number of the Operator. Unique table index. This is the primary key.

Specified by:
getOperatorId in interface OperatorAccessBeanData
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

getOperatorIdInEJBType

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

This method provides access to the OPERATOR.OPERATOR_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The reference number of the Operator. Unique table index. This is the primary key.

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

getOperatorType

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

This method provides access to the OPERATOR.OPERATORTYPE column of DB2 type CHAR(1) NOT NULL.

The following is a description of this column:

The operator type:

  1. Simple operator (allows a single value) - Default
  2. Compound operator (range - continuous)
  3. Compound operator (set)

Specified by:
getOperatorType in interface OperatorAccessBeanData
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

setInitKey_operatorId

public void setInitKey_operatorId(java.lang.String aInitKey_operatorId)

Set the primary key for this object

Parameters:
aInitKey_operatorId - The reference number of the Operator. java.lang.String
Returns:
void

setOperator

public void setOperator(java.lang.String aOperator)

This method provides access to the OPERATOR.OPERATOR column of DB2 type CHAR(32) NOT NULL.

The following is a description of this column:

The operator. For example, "<" or ">=".

Specified by:
setOperator in interface OperatorAccessBeanData
Parameters:
astrOperator - The Operator. java.lang.String
Returns:
void

setOperatorId

public void setOperatorId(java.lang.Integer anOperatorId)

This method provides access to the OPERATOR.OPERATOR_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Unique table index. This is the primary key.

Parameters:
anOperatorId - The Operator reference number. java.lang.Integer
Returns:
void

setOperatorId

public void setOperatorId(java.lang.String astrOperatorId)

This method provides access to the OPERATOR.OPERATOR_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The reference number of the Operator. Unique table index. This is the primary key.

Specified by:
setOperatorId in interface OperatorAccessBeanData
Parameters:
astrOperatorId - The reference number of the Operator. java.lang.String
Returns:
void

setOperatorType

public void setOperatorType(java.lang.String astrOperatorType)

This method provides access to the OPERATOR.OPERATORTYPE column of DB2 type CHAR(1) NOT NULL.

The following is a description of this column:

The operator type:

  1. Simple operator (allows a single value) - Default
  2. Compound operator (range - continuous)
  3. Compound operator (set)

Specified by:
setOperatorType in interface OperatorAccessBeanData
Parameters:
astrOperatorType - The Operator Type. java.lang.String
Returns:
void