com.ibm.commerce.contract.objects
Class PolicyDescriptionAccessBean

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

public class PolicyDescriptionAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements PolicyDescriptionAccessBeanData

This bean provides access to the POLICYDESC table.

The following is a description of this table:

The policy description table.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
PolicyDescriptionAccessBean()
          Default constructor.
PolicyDescriptionAccessBean(javax.ejb.EJBObject anObject)
          Creates an access bean for the specified EJB
PolicyDescriptionAccessBean(java.lang.Long aIcyDescriptionAccessBean, java.lang.Integer aIcyDescriptionAccessBean, java.lang.String aIcyDescriptionAccessBean)
          Constructs an PolicyDescriptionAccessBean object with the specified business policy ID, language ID, and the short description.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByPolicy(java.lang.Long policyId)
          Retrieves all business policy commands with the specified business policy ID.
 java.lang.String getLanguageId()
          This method provides access to the POLICYDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getLanguageIdInEJBType()
          This method provides access to the POLICYDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getLongDescription()
          This method provides access to the POLICYDESC.LONGDESCRIPTION column of DB2 type LONG NULL.
 java.lang.String getPolicyId()
          This method provides access to the POLICYDESC.POLICY_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getPolicyIdInEJBType()
          This method provides access to the POLICYDESC.POLICY_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getShortDescription()
          This method provides access to the POLICYDESC.DESCRIPTION column of DB2 type VARCHAR(254) NOT NULL.
 java.lang.String getTimeCreated()
          This method provides access to the POLICYDESC.TIMECREATED column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getTimeCreatedInEJBType()
          This method provides access to the POLICYDESC.TIMECREATED column of DB2 type TIMESTAMP NULL.
 java.lang.String getTimeUpdated()
          This method provides access to the POLICYDESC.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getTimeUpdatedInEJBType()
          This method provides access to the POLICYDESC.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_languageId(java.lang.String aInitKey_languageId)
          Set the primary key for this object
 void setInitKey_policyId(java.lang.String aInitKey_policyId)
          Set the primary key for this object
 void setLanguageId(java.lang.Integer aLanguageId)
          This method provides access to the POLICYDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void setLanguageId(java.lang.String aLanguageId)
          This method provides access to the POLICYDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void setLongDescription(java.lang.String aLongDescription)
          This method provides access to the POLICYDESC.LONGDESCRIPTION column of DB2 type LONG NULL.
 void setPolicyId(java.lang.Long aPolicyId)
          This method provides access to the POLICYDESC.POLICY_ID column of DB2 type BIGINT NOT NULL.
 void setPolicyId(java.lang.String aPolicyId)
          This method provides access to the POLICYDESC.POLICY_ID column of DB2 type BIGINT NOT NULL.
 void setShortDescription(java.lang.String aShortDescription)
          This method provides access to the POLICYDESC.DESCRIPTION column of DB2 type VARCHAR(254) NOT NULL.
 void setTimeCreated(java.lang.String aTimeCreated)
          This method provides access to the POLICYDESC.TIMECREATED column of DB2 type TIMESTAMP NULL.
 void setTimeCreated(java.sql.Timestamp aTimeCreated)
          This method provides access to the POLICYDESC.TIMECREATED column of DB2 type TIMESTAMP NULL.
 void setTimeUpdated(java.lang.String aTimeUpdated)
          This method provides access to the POLICYDESC.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 void setTimeUpdated(java.sql.Timestamp aTimeUpdated)
          This method provides access to the POLICYDESC.TIMEUPDATED column of DB2 type TIMESTAMP 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

PolicyDescriptionAccessBean

public PolicyDescriptionAccessBean()

Default constructor. Maps to findByPrimaryKey.


PolicyDescriptionAccessBean

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

PolicyDescriptionAccessBean

public PolicyDescriptionAccessBean(java.lang.Long aIcyDescriptionAccessBean,
                                   java.lang.Integer aIcyDescriptionAccessBean,
                                   java.lang.String aIcyDescriptionAccessBean)
                            throws javax.ejb.CreateException,
                                   java.rmi.RemoteException,
                                   javax.naming.NamingException

Constructs an PolicyDescriptionAccessBean object with the specified business policy ID, language ID, and the short description.

Parameters:
businessPolicyId - The business policy ID.
langId - The language ID.
shortDesc - The short description of the business policy.
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 all business policy commands with the specified business policy ID.

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

select * from policydesc T1 where T1.policy_id = ?

Parameters:
policyId - The business policy ID.
Returns:
An Enumeration of all the PolicyDescriptionAccessBeans 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

getLanguageId

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

This method provides access to the POLICYDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language ID. For a list of language components, see the LANGUAGE table.

Specified by:
getLanguageId in interface PolicyDescriptionAccessBeanData
Returns:
The language 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

getLanguageIdInEJBType

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

This method provides access to the POLICYDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language ID. For a list of language components, see the LANGUAGE table.

Returns:
The language 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

getLongDescription

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

This method provides access to the POLICYDESC.LONGDESCRIPTION column of DB2 type LONG NULL.

The following is a description of this column:

The policy long description.

Specified by:
getLongDescription in interface PolicyDescriptionAccessBeanData
Returns:
The long description of the 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

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 POLICYDESC.POLICY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The policy ID.

Specified by:
getPolicyId in interface PolicyDescriptionAccessBeanData
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

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

getShortDescription

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

This method provides access to the POLICYDESC.DESCRIPTION column of DB2 type VARCHAR(254) NOT NULL.

The following is a description of this column:

The policy description.

Specified by:
getShortDescription in interface PolicyDescriptionAccessBeanData
Returns:
The short description of the 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

getTimeCreated

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

This method provides access to the POLICYDESC.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time created.

Specified by:
getTimeCreated in interface PolicyDescriptionAccessBeanData
Returns:
The time the business policy description was created.
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

getTimeCreatedInEJBType

public java.sql.Timestamp getTimeCreatedInEJBType()
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.CreateException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException

This method provides access to the POLICYDESC.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time created.

Returns:
The time the business policy description was created.
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

getTimeUpdated

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

This method provides access to the POLICYDESC.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time updated.

Specified by:
getTimeUpdated in interface PolicyDescriptionAccessBeanData
Returns:
The time that the business policy description was most recently updated.
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

getTimeUpdatedInEJBType

public java.sql.Timestamp getTimeUpdatedInEJBType()
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.CreateException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException

This method provides access to the POLICYDESC.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time updated.

Returns:
The time that the business policy description was most recently updated.
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_languageId

public void setInitKey_languageId(java.lang.String aInitKey_languageId)

Set the primary key for this object

Parameters:
aInitKey_languageId - The ID of the language.
Returns:
void

setInitKey_policyId

public void setInitKey_policyId(java.lang.String aInitKey_policyId)

Set the primary key for this object

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

setLanguageId

public void setLanguageId(java.lang.Integer aLanguageId)

This method provides access to the POLICYDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language ID. For a list of language components, see the LANGUAGE table.

Parameters:
aLanguageId - The language ID.
Returns:
void

setLanguageId

public void setLanguageId(java.lang.String aLanguageId)

This method provides access to the POLICYDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language ID. For a list of language components, see the LANGUAGE table.

Specified by:
setLanguageId in interface PolicyDescriptionAccessBeanData
Parameters:
aLanguageId - The language ID.
Returns:
void

setLongDescription

public void setLongDescription(java.lang.String aLongDescription)

This method provides access to the POLICYDESC.LONGDESCRIPTION column of DB2 type LONG NULL.

The following is a description of this column:

The policy long description.

Specified by:
setLongDescription in interface PolicyDescriptionAccessBeanData
Parameters:
aLongDescription - The long description of the business policy.
Returns:
void

setPolicyId

public void setPolicyId(java.lang.Long aPolicyId)

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

The following is a description of this column:

The policy ID.

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

setPolicyId

public void setPolicyId(java.lang.String aPolicyId)

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

The following is a description of this column:

The policy ID.

Specified by:
setPolicyId in interface PolicyDescriptionAccessBeanData
Parameters:
aPolicyId - The business policy ID.
Returns:
void

setShortDescription

public void setShortDescription(java.lang.String aShortDescription)

This method provides access to the POLICYDESC.DESCRIPTION column of DB2 type VARCHAR(254) NOT NULL.

The following is a description of this column:

The policy description.

Specified by:
setShortDescription in interface PolicyDescriptionAccessBeanData
Parameters:
aShortDescription - The short description of the business policy.
Returns:
void

setTimeCreated

public void setTimeCreated(java.lang.String aTimeCreated)

This method provides access to the POLICYDESC.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time created.

Specified by:
setTimeCreated in interface PolicyDescriptionAccessBeanData
Parameters:
aTimeCreated - The time the business policy description was created.
Returns:
void

setTimeCreated

public void setTimeCreated(java.sql.Timestamp aTimeCreated)

This method provides access to the POLICYDESC.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time created.

Parameters:
aTimeCreated - The time the business policy description was created.
Returns:
void

setTimeUpdated

public void setTimeUpdated(java.lang.String aTimeUpdated)

This method provides access to the POLICYDESC.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time updated.

Specified by:
setTimeUpdated in interface PolicyDescriptionAccessBeanData
Parameters:
aTimeUpdated - The time that the business policy description was most recently updated.
Returns:
void

setTimeUpdated

public void setTimeUpdated(java.sql.Timestamp aTimeUpdated)

This method provides access to the POLICYDESC.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time updated.

Parameters:
aTimeUpdated - The time that the business policy description was most recently updated.
Returns:
void