com.ibm.commerce.contract.objects
Class PolicyCommandAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.contract.objects.PolicyCommandAccessBean
All Implemented Interfaces:
PolicyCommandAccessBeanData, java.io.Serializable

public class PolicyCommandAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements PolicyCommandAccessBeanData

This bean provides access to the POLICYCMD table.

The following is a description of this table:

The business policy to command relationship 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
PolicyCommandAccessBean()
          Default constructor.
PolicyCommandAccessBean(javax.ejb.EJBObject anObject)
          Creates an access bean for the specified EJB
PolicyCommandAccessBean(java.lang.Long businessPolicyId, java.lang.String businessCmdClass)
          Constructs an PolicyCommandAccessBean object with the specified business policy ID, and the name of the specified business command class.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByPolicy(java.lang.Long policyId)
          Retrieves an Enumeration of PolicyCommandAccessBeans representing all business policy commands with the specified business policy ID.
 java.lang.String getBusinessCmdClass()
          This method provides access to the POLICYCMD.BUSINESSCMDCLASS column of DB2 type VARCHAR(200) NOT NULL.
 java.lang.String getPolicyId()
          This method provides access to the POLICYCMD.POLICY_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getPolicyIdInEJBType()
          This method provides access to the POLICYCMD.POLICY_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getProperties()
          This method provides access to the POLICYCMD.PROPERTIES column of DB2 type VARCHAR(254) NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_businessCmdClass(java.lang.String aInitKey_businessCmdClass)
          Set the primary key for this object
 void setInitKey_policyId(java.lang.String aInitKey_policyId)
          Set the primary key for this object
 void setProperties(java.lang.String aProperties)
          This method provides access to the POLICYCMD.PROPERTIES column of DB2 type VARCHAR(254) 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

PolicyCommandAccessBean

public PolicyCommandAccessBean()

Default constructor. Maps to findByPrimaryKey.


PolicyCommandAccessBean

public PolicyCommandAccessBean(javax.ejb.EJBObject anObject)
                        throws java.rmi.RemoteException

Creates an access bean for the specified EJB

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

PolicyCommandAccessBean

public PolicyCommandAccessBean(java.lang.Long businessPolicyId,
                               java.lang.String businessCmdClass)
                        throws javax.naming.NamingException,
                               javax.ejb.CreateException,
                               javax.ejb.FinderException,
                               java.rmi.RemoteException

Constructs an PolicyCommandAccessBean object with the specified business policy ID, and the name of the specified business command class.

Parameters:
businessPolicyId - The ID of the business policy.
businessCmdClass - The name of the business policy command class.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException 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

findByPolicy

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

Retrieves an Enumeration of PolicyCommandAccessBeans representing all business policy commands with the specified business policy ID.

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

select * from policycmd T1 where T1.policy_id = ?

Parameters:
policyId - The ID of the business policy.
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

getBusinessCmdClass

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

This method provides access to the POLICYCMD.BUSINESSCMDCLASS column of DB2 type VARCHAR(200) NOT NULL.

The following is a description of this column:

The command that implements this business policy.

Specified by:
getBusinessCmdClass in interface PolicyCommandAccessBeanData
Returns:
The name of the business policy command.
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

getPolicyId

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

This method provides access to the POLICYCMD.POLICY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The business policy ID.

Specified by:
getPolicyId in interface PolicyCommandAccessBeanData
Returns:
The business policy ID.
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

getPolicyIdInEJBType

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

This method provides access to the POLICYCMD.POLICY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The business policy ID.

Returns:
The business policy ID
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

getProperties

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

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

The following is a description of this column:

Default name value pairs that can be set to the business policy command. For example: n1=v1&n2=v2. If null, use the properties from the POLICY table.

Specified by:
getProperties in interface PolicyCommandAccessBeanData
Returns:
The properties of the business policy command.
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_businessCmdClass

public void setInitKey_businessCmdClass(java.lang.String aInitKey_businessCmdClass)

Set the primary key for this object

Parameters:
aInitKey_businessCmdClass - The ID of the business policy command.
Returns:
void

setInitKey_policyId

public void setInitKey_policyId(java.lang.String aInitKey_policyId)

Set the primary key for this object

Parameters:
aInitKey_policyId - java.lang.String
Returns:
void

setProperties

public void setProperties(java.lang.String aProperties)

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

The following is a description of this column:

Default name value pairs that can be set to the business policy command. For example: n1=v1&n2=v2. If null, use the properties from the POLICY table.

Specified by:
setProperties in interface PolicyCommandAccessBeanData
Parameters:
aProperties - The properties of the business policy command.
Returns:
void