com.ibm.commerce.catalog.objects
Class OperatorAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.catalog.objects.OperatorAccessBean
All Implemented Interfaces:
OperatorAccessBeanData

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

This table is used to define operators. This access bean corresponds to the database table 'OPERATOR'.

See Also:
Serialized Form

Constructor Summary
OperatorAccessBean()
Zero argument constructor used to initialize the access bean.
OperatorAccessBean(java.lang.Integer aOperatorId, java.lang.String aOperator)
Contructor for the object that maps to a corresponding ejbCreate method in the home interface of the EJB.
OperatorAccessBean(javax.ejb.EJBObject o)
constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findAll()
This method returns an enumeration of all the Operator Access Bean.
java.util.Enumeration findByOperator(java.lang.String argOperator)
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 DEFAULT '1'.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setInitKey_operatorId(java.lang.String newValue)
Set the primary key for this object
void setOperator(java.lang.String newValue)
This method accesses a non-CMP field
void setOperatorId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setOperatorId(java.lang.String newValue)
This method accesses a non-CMP field
void setOperatorType(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

OperatorAccessBean

public OperatorAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.catalog.objects.Operator com.ibm.commerce.catalog.objimpl.OperatorHomeBase.findByPrimaryKey(com.ibm.commerce.catalog.objects.OperatorKey) 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_operatorId( java.lang.Integer )

OperatorAccessBean

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

OperatorAccessBean

public OperatorAccessBean(java.lang.Integer aOperatorId,
                          java.lang.String aOperator)
                   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:
aOperatorId - The Operator reference number. java.lang.Integer
aOperator - 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

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 argOperator)
                                     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 = argOperator

Parameters:
argOperator - 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

setInitKey_operatorId

public void setInitKey_operatorId(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

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:

Unique table index. This is the primary key.

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

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:

Unique table index. This is the primary key.

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

setOperatorId

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

setOperatorId

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

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, &quo

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

setOperator

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

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 DEFAULT '1'.

The following is a description of this column:

The operator type: &l

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

setOperatorType

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

Feedback