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. This access bean corresponds to the database table 'POLICYCMD'.

See Also:
Serialized Form

Constructor Summary
PolicyCommandAccessBean()
Zero argument constructor used to initialize the access bean.
PolicyCommandAccessBean(javax.ejb.EJBObject o)
constructor
PolicyCommandAccessBean(java.lang.Long argPolicyId, java.lang.String argBusinesCmdClass)
Constructs an PolicyCommand 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).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByPolicy(java.lang.Long argPolicyId)
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 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

PolicyCommandAccessBean

public PolicyCommandAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.contract.objects.PolicyCommand com.ibm.commerce.contract.objimpl.PolicyCommandHomeBase.findByPrimaryKey(com.ibm.commerce.contract.objects.PolicyCommandKey) 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_businessCmdClass( java.lang.String ) setInitKey_policyId( java.lang.Long )

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 argPolicyId,
                               java.lang.String argBusinesCmdClass)
                        throws javax.naming.NamingException,
                               javax.ejb.CreateException,
                               javax.ejb.FinderException,
                               java.rmi.RemoteException

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

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

findByPolicy

public java.util.Enumeration findByPolicy(java.lang.Long argPolicyId)
                                   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:
argPolicyId - 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

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 accesses a non-CMP field
Specified by:
setProperties in interface PolicyCommandAccessBeanData

Feedback