java.lang.Objectcom.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
com.ibm.commerce.contract.objects.PolicyTCRelationAccessBean
This table stores information about which business policy is referenced by a specific term or condition. This access bean corresponds to the database table 'POLICYTC'.
Constructor Summary | |
PolicyTCRelationAccessBean() Zero argument constructor used to initialize the access bean. |
|
PolicyTCRelationAccessBean(javax.ejb.EJBObject o) constructor |
|
PolicyTCRelationAccessBean(java.lang.Long policyId, java.lang.Long tcId) Constructs an PolicyTCRelation object with the specified business policy ID, and the term condition ID. |
Method Summary | |
void | commitCopyHelper() Update(flush) data to the EJBObject (persistent storage). |
protected java.lang.String | defaultJNDIName() |
java.util.Enumeration | findByPolicy(java.lang.Long argPolicyReferenceNumber) 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 argTCReferenceNumber) Retrieves all business policy and the Terms and Conditions relationships with the specified term condition ID. |
java.util.Enumeration | findByTCAndPolicyType(java.lang.Long argTCReferenceNumber, java.lang.String argPolicyType) 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 accesses a non-CMP field |
void | setPolicyReferenceNumber(java.lang.String newValue) This method accesses a non-CMP field |
void | setTcReferenceNumber(java.lang.Long newValue) This method accesses a non-CMP field |
void | setTcReferenceNumber(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 |
public PolicyTCRelationAccessBean()
public PolicyTCRelationAccessBean(javax.ejb.EJBObject o) throws java.rmi.RemoteException
public PolicyTCRelationAccessBean(java.lang.Long policyId, java.lang.Long tcId) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException
Constructs an PolicyTCRelation object with the specified business policy ID, and the term condition ID.
Method Detail |
public java.util.Enumeration findByPolicy(java.lang.Long argPolicyReferenceNumber) 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 = ?
public java.util.Enumeration findByTC(java.lang.Long argTCReferenceNumber) 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 = ?
public java.util.Enumeration findByTCAndPolicyType(java.lang.Long argTCReferenceNumber, java.lang.String argPolicyType) 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 = ?)
public void setInitKey_policyReferenceNumber(java.lang.String newValue)
Set the primary key for this object
public void setInitKey_tcReferenceNumber(java.lang.String newValue)
Set the primary key for this object
protected java.lang.String defaultJNDIName()
protected void instantiateEJB() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
protected boolean instantiateEJBByPrimaryKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.naming.NamingException
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Update(flush) data to the EJBObject (persistent storage).
public void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
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.
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.
public void setPolicyReferenceNumber(java.lang.String newValue)
public void setPolicyReferenceNumber(java.lang.Long newValue)
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.
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.
public void setTcReferenceNumber(java.lang.String newValue)
public void setTcReferenceNumber(java.lang.Long newValue)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.