com.ibm.commerce.contract.objects
Class PolicyTCRelationAccessBean

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

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

This table stores information about which business policy is referenced by a specific term or condition.

See Also:
Serialized Form

Constructor Summary
PolicyTCRelationAccessBean()
          constructor
PolicyTCRelationAccessBean(javax.ejb.EJBObject o)
          constructor
PolicyTCRelationAccessBean(java.lang.Long arg0, java.lang.Long 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 PolicyTCRelationAccessBeans representing all business policy and term conation relationships with the specified business policy ID.
 java.util.Enumeration findByTC(java.lang.Long arg0)
          Retrieves all business policy and the Terms and Conditions relationships with the specified term condition ID.
 java.util.Enumeration findByTCAndPolicyType(java.lang.Long arg0, java.lang.String arg1)
          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.
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_policyReferenceNumber(java.lang.String newValue)
          Set the primary key for this object
 void setInitKey_tcReferenceNumber(java.lang.String newValue)
          Set the primary key for this object
 void setPolicyReferenceNumber(java.lang.Long newValue)
          This method provides access to the POLICYTC.POLICY_ID column of DB2 type BIGINT NOT NULL.
 void setPolicyReferenceNumber(java.lang.String newValue)
          This method provides access to the POLICYTC.POLICY_ID column of DB2 type BIGINT NOT NULL.
 void setTcReferenceNumber(java.lang.Long newValue)
          This method provides access to the POLICYTC.TERMCOND_ID column of DB2 type BIGINT NOT NULL.
 void setTcReferenceNumber(java.lang.String newValue)
          This method provides access to the POLICYTC.TERMCOND_ID column of DB2 type BIGINT NOT NULL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyTCRelationAccessBean

public PolicyTCRelationAccessBean()
constructor

PolicyTCRelationAccessBean

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

PolicyTCRelationAccessBean

public PolicyTCRelationAccessBean(java.lang.Long arg0,
                                  java.lang.Long arg1)
                           throws javax.ejb.CreateException,
                                  java.rmi.RemoteException,
                                  javax.naming.NamingException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.Long
Throws:
javax.ejb.CreateException
java.rmi.RemoteException
javax.naming.NamingException
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 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 = ?

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

findByTC

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

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

findByTCAndPolicyType

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

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

setInitKey_policyReferenceNumber

public void setInitKey_policyReferenceNumber(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_tcReferenceNumber

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

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

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

setPolicyReferenceNumber

public void setPolicyReferenceNumber(java.lang.String newValue)

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:
newValue - String
Returns:
void

setPolicyReferenceNumber

public void setPolicyReferenceNumber(java.lang.Long newValue)

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:
newValue - java.lang.Long
Returns:
void

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

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

setTcReferenceNumber

public void setTcReferenceNumber(java.lang.String newValue)

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:
newValue - String
Returns:
void

setTcReferenceNumber

public void setTcReferenceNumber(java.lang.Long newValue)

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:
newValue - java.lang.Long
Returns:
void