com.ibm.commerce.contract.objects
Class PolicyTCRelationAccessBean

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

public class PolicyTCRelationAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements PolicyTCRelationAccessBeanData

This bean provides access to the POLICYTC table.

The following is a description of this table:

The table shows which business policy is referenced by a term or condition.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
PolicyTCRelationAccessBean()
          Default constructor.
PolicyTCRelationAccessBean(javax.ejb.EJBObject anObject)
          Creates an access bean for the specified EJB
PolicyTCRelationAccessBean(java.lang.Long businessPolicyId, java.lang.Long tcId)
          Constructs an PolicyTCRelationAccessBean object with the specified business policy ID, and the term condition ID.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByPolicy(java.lang.Long policyId)
          Retrieves an Enumeration of PolicyTCRelationAccessBeans representing all business policy and term conation relationships with the specified business policy ID.
 java.util.Enumeration findByTC(java.lang.Long tcId)
          Retrieves all business policy and the Terms and Conditions relationships with the specified term condition ID.
 java.util.Enumeration findByTCAndPolicyType(java.lang.Long tcId, java.lang.String businessPolicyType)
          Retrieves an Enumeration of PolicyTCRelationAccessBeans representing all business policy and term condition relationships with the specified term condition ID, and the business policy type.
 java.lang.String getPolicyReferenceNumber()
          This method provides access to the POLICYTC.POLICY_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getPolicyReferenceNumberInEJBType()
          This method provides access to the POLICYTC.POLICY_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getTcReferenceNumber()
          This method provides access to the POLICYTC.TERMCOND_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getTcReferenceNumberInEJBType()
          This method provides access to the POLICYTC.TERMCOND_ID column of DB2 type BIGINT NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_policyReferenceNumber(java.lang.String aInitKey_policyReferenceNumber)
          Set the primary key for this object
 void setInitKey_tcReferenceNumber(java.lang.String aInitKey_tcReferenceNumber)
          Set the primary key for this object
 void setPolicyReferenceNumber(java.lang.Long aPolicyReferenceNumber)
          This method provides access to the POLICYTC.POLICY_ID column of DB2 type BIGINT NOT NULL.
 void setPolicyReferenceNumber(java.lang.String aPolicyReferenceNumber)
          This method provides access to the POLICYTC.POLICY_ID column of DB2 type BIGINT NOT NULL.
 void setTcReferenceNumber(java.lang.Long aTcReferenceNumber)
          This method provides access to the POLICYTC.TERMCOND_ID column of DB2 type BIGINT NOT NULL.
 void setTcReferenceNumber(java.lang.String aTcReferenceNumber)
          This method provides access to the POLICYTC.TERMCOND_ID column of DB2 type BIGINT 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

PolicyTCRelationAccessBean

public PolicyTCRelationAccessBean()

Default constructor. Maps to findByPrimaryKey.


PolicyTCRelationAccessBean

public PolicyTCRelationAccessBean(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

PolicyTCRelationAccessBean

public PolicyTCRelationAccessBean(java.lang.Long businessPolicyId,
                                  java.lang.Long tcId)
                           throws javax.ejb.CreateException,
                                  java.rmi.RemoteException,
                                  javax.naming.NamingException

Constructs an PolicyTCRelationAccessBean object with the specified business policy ID, and the term condition ID.

Parameters:
businessPolicyId - java.lang.Long
tcId - The terms and conditions ID.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException 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 PolicyTCRelationAccessBeans representing all business policy and term conation relationships with the specified business policy ID.

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

select * from policytc T1 where T1.policy_id = ?

Parameters:
policyId - The business policy ID.
Returns:
An Enumeration of all the PolicyTCRelationAccessBeans representing rows that match the search criteria.
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

findByTC

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

Retrieves all business policy and the Terms and Conditions relationships with the specified term condition ID.

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

select * from policytc T1 where T1.termcond_id = ?

Parameters:
tcId - The terms and conditions ID.
Returns:
An Enumeration of all the PolicyTCRelationAccessBeans representing rows that match the search criteria.
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

findByTCAndPolicyType

public java.util.Enumeration findByTCAndPolicyType(java.lang.Long tcId,
                                                   java.lang.String businessPolicyType)
                                            throws java.rmi.RemoteException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException

Retrieves an Enumeration of PolicyTCRelationAccessBeans representing all business policy and term condition relationships with the specified term condition ID, and the business policy type.

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

select * from policytc T1 where T1.termcond_id = ? and policy_id in (select policy_id from policy where policytype_id = ?)

Parameters:
tcId - The terms and conditions ID.
businessPolicyType - The business policy type.
Returns:
An Enumeration of all the PolicyTCRelationAccessBeans representing rows that match the search criteria.
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

getPolicyReferenceNumber

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

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

The following is a description of this column:

The policy ID.

Specified by:
getPolicyReferenceNumber in interface PolicyTCRelationAccessBeanData
Returns:
The ID of business policy.
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

getPolicyReferenceNumberInEJBType

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

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

The following is a description of this column:

The 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

getTcReferenceNumber

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

This method provides access to the POLICYTC.TERMCOND_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The terms and conditions ID.

Specified by:
getTcReferenceNumber in interface PolicyTCRelationAccessBeanData
Returns:
The terms and conditions 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

getTcReferenceNumberInEJBType

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

This method provides access to the POLICYTC.TERMCOND_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The terms and conditions ID.

Returns:
The terms and conditions 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

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_policyReferenceNumber

public void setInitKey_policyReferenceNumber(java.lang.String aInitKey_policyReferenceNumber)

Set the primary key for this object

Parameters:
aInitKey_policyReferenceNumber - The ID of business policy.
Returns:
void

setInitKey_tcReferenceNumber

public void setInitKey_tcReferenceNumber(java.lang.String aInitKey_tcReferenceNumber)

Set the primary key for this object

Parameters:
aInitKey_tcReferenceNumber - The terms and conditions ID.
Returns:
void

setPolicyReferenceNumber

public void setPolicyReferenceNumber(java.lang.Long aPolicyReferenceNumber)

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

The following is a description of this column:

The policy ID.

Parameters:
aPolicyReferenceNumber - The business policy ID.
Returns:
void

setPolicyReferenceNumber

public void setPolicyReferenceNumber(java.lang.String aPolicyReferenceNumber)

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

The following is a description of this column:

The policy ID.

Specified by:
setPolicyReferenceNumber in interface PolicyTCRelationAccessBeanData
Parameters:
aPolicyReferenceNumber - The business policy ID.
Returns:
void

setTcReferenceNumber

public void setTcReferenceNumber(java.lang.Long aTcReferenceNumber)

This method provides access to the POLICYTC.TERMCOND_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The terms and conditions ID.

Parameters:
aTcReferenceNumber - The terms and conditions ID.
Returns:
void

setTcReferenceNumber

public void setTcReferenceNumber(java.lang.String aTcReferenceNumber)

This method provides access to the POLICYTC.TERMCOND_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The terms and conditions ID.

Specified by:
setTcReferenceNumber in interface PolicyTCRelationAccessBeanData
Parameters:
aTcReferenceNumber - The terms and conditions ID.
Returns:
void