com.ibm.commerce.contract.objects
Class PolicyCommandAccessBean

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

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

This table stores command relationship information for a business policy.

See Also:
Serialized Form

Constructor Summary
PolicyCommandAccessBean()
          constructor
PolicyCommandAccessBean(javax.ejb.EJBObject o)
          constructor
PolicyCommandAccessBean(java.lang.Long arg0, java.lang.String arg1)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findByPolicy(java.lang.Long arg0)
          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).
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_businessCmdClass(java.lang.String newValue)
          Set the primary key for this object
 void setInitKey_policyId(java.lang.String newValue)
          Set the primary key for this object
 void setProperties(java.lang.String newValue)
          This method provides access to the POLICYCMD.PROPERTIES column of DB2 type VARCHAR(254).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyCommandAccessBean

public PolicyCommandAccessBean()
constructor

PolicyCommandAccessBean

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

PolicyCommandAccessBean

public PolicyCommandAccessBean(java.lang.Long arg0,
                               java.lang.String arg1)
                        throws javax.naming.NamingException,
                               javax.ejb.CreateException,
                               javax.ejb.FinderException,
                               java.rmi.RemoteException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.String
Throws:
javax.naming.NamingException
javax.ejb.CreateException
javax.ejb.FinderException
java.rmi.RemoteException
Method Detail

findByPolicy

public java.util.Enumeration findByPolicy(java.lang.Long arg0)
                                   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 = ?

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_businessCmdClass

public void setInitKey_businessCmdClass(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_policyId

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

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

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

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

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

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&am

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

setProperties

public void setProperties(java.lang.String newValue)

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

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&am

Specified by:
setProperties in interface PolicyCommandAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void