com.ibm.commerce.contract.objects
Class BusinessPolicyAccessBean

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

public class BusinessPolicyAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements BusinessPolicyAccessBeanData

Each row in this table represents a business policy.

See Also:
Serialized Form

Constructor Summary
BusinessPolicyAccessBean()
          constructor
BusinessPolicyAccessBean(javax.ejb.EJBObject o)
          constructor
BusinessPolicyAccessBean(java.lang.String arg0, java.lang.String arg1, java.lang.Integer arg2)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findByNameTypeAndStore(java.lang.String arg0, java.lang.String arg1, java.lang.Integer arg2)
          Retrieves all the business policies with the specified policy name and type for the specified store ID.
  BusinessPolicyAccessBean findByNameTypeAndStoreEntityId(java.lang.String arg0, java.lang.String arg1, java.lang.Integer arg2)
          Returns a BusinessPolicyAccessBean representing the business policy with the specified policy name and type for the specified store entity ID.
 java.util.Enumeration findByStoreEntityId(java.lang.Integer arg0)
          Returns an Enumeration of BusinessPolicyAccessBeans representing all the business policies that the store supports .
 java.util.Enumeration findByTC(java.lang.Long arg0)
          Returns an Enumeration of the BusinessPolicyAccessBeans representing all the business policies that the term condition referred to.
 java.util.Enumeration findByTCAndType(java.lang.Long arg0, java.lang.String arg1)
          Returns an Enumeration of the BusinessPolicyAccessBeans representing all the business policies with the specified policy type for the specified term condition ID.
 java.util.Enumeration findByTrading(java.lang.Long arg0)
          Retrieves all the business policies that the specified trading agreement has.
 java.util.Enumeration findByType(java.lang.String arg0)
          Returns all the business policies with the specified policy type.
 java.util.Enumeration findByTypeAndStore(java.lang.String arg0, java.lang.Integer arg1)
          Returns all the business policies with the specified policy type that the specified store supports.
 java.util.Enumeration findByTypeAndStoreEntityId(java.lang.String arg0, java.lang.Integer arg1)
          Returns an Enumeration of all the BusinessPolicyAccessBeans representing all the business policies with the specified policy type for the specified store entity ID.
 java.util.Enumeration findByTypeAndTrading(java.lang.String arg0, java.lang.Long arg1)
          Retrieves all the business policies with the specified policy type for the specified trading agreement.
  BusinessPolicyAccessBean findCreditPaymentPolicyByStoreEntityId(java.lang.Integer arg0)
          Retrieves the BusinessPolicyAccessBean representing the payment policy with credit that the specified store supports.
  BusinessPolicyAccessBean findCreditReturnsPolicyByStoreEntityId(java.lang.Integer arg0)
          Retrieves the BusinessPolicy representing the return payment policy with credit that the specified store supports.
  BusinessPolicyAccessBean findCustomPriceListPolicyByStoreEntityId(java.lang.Integer arg0)
          Retrieves the BusinessPolicy representing the custom price list policy for with the specified store entity ID.
 java.util.Enumeration findProductSetPolicyByPropertyPredicate(java.lang.String arg0, java.lang.String arg1)
          Returns an Enumeration of the BusinessPolicyAccessBeans representing all the product set business policies with the specified name predicate, and the member predicate.
 java.util.Enumeration findStandardPriceListPolicyByStore(java.lang.Integer arg0)
          Returns an Enumeration of the BusinessPolicyAccessBeans representing all the standard price list business policies with the specified store ID.
 java.util.Enumeration findStandardPriceListPolicyByStoreEntityId(java.lang.Integer arg0)
          Retrieves all the standard price list business policies with the specified store entity ID.
 java.util.Enumeration findSubProductSetPoliciesByMasterCatalogIdAndStoreIdAndProductSetId(java.lang.Long arg0, java.lang.Integer arg1, java.lang.Integer arg2)
          Returns an Enumeration of the BusinessPolicyAccessBeans representing all the sub level product set business policies with the specified master catalog ID, the store ID, and the product set ID.
 java.util.Enumeration findTopLevelProductSetPoliciesByMasterCatalogIdAndStoreId(java.lang.Long arg0, java.lang.Integer arg1)
          Returns an Enumeration of the BusinessPolicyAccessBeans representing all the top level product set business policies with the specified master catalog ID, and the store ID.
 boolean fulfills(java.lang.Long arg0, java.lang.String arg1)
           
  PolicyDescriptionAccessBean getDescription(java.lang.Integer arg0)
          Retrieves the PolicyDescriptionAccessBean representing the business policy description with the specified language ID.
  PolicyDescriptionAccessBean getDescription(java.lang.Integer arg0, java.lang.Integer arg1)
          Retrieves the PolicyDescriptionAccessBean representing the business policy description with the specified language ID.
 java.lang.String getEndDate()
          This method provides access to the POLICY.ENDTIME column of DB2 type TIMESTAMP.
 java.sql.Timestamp getEndDateInEJBType()
          This method provides access to the POLICY.ENDTIME column of DB2 type TIMESTAMP.
 java.lang.Long getOwner()
          This method accesses a non-CMP field
 java.lang.String getPolicyId()
          This method provides access to the POLICY.POLICY_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getPolicyIdInEJBType()
          This method provides access to the POLICY.POLICY_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getPolicyName()
          This method provides access to the POLICY.POLICYNAME column of DB2 type VARCHAR(128) NOT NULL.
 java.lang.String getProperties()
          This method provides access to the POLICY.PROPERTIES column of DB2 type VARCHAR(254).
 java.lang.String getStartDate()
          This method provides access to the POLICY.STARTTIME column of DB2 type TIMESTAMP.
 java.sql.Timestamp getStartDateInEJBType()
          This method provides access to the POLICY.STARTTIME column of DB2 type TIMESTAMP.
 java.lang.String getStoreEntityId()
          This method provides access to the POLICY.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getStoreEntityIdInEJBType()
          This method provides access to the POLICY.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getType()
          This method provides access to the POLICY.POLICYTYPE_ID column of DB2 type CHAR(64) NOT NULL.
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setEndDate(java.lang.String newValue)
          This method provides access to the POLICY.ENDTIME column of DB2 type TIMESTAMP.
 void setEndDate(java.sql.Timestamp newValue)
          This method provides access to the POLICY.ENDTIME column of DB2 type TIMESTAMP.
 void setInitKey_policyId(java.lang.String newValue)
          Set the primary key for this object
 void setPolicyId(java.lang.Long newValue)
          This method provides access to the POLICY.POLICY_ID column of DB2 type BIGINT NOT NULL.
 void setPolicyId(java.lang.String newValue)
          This method provides access to the POLICY.POLICY_ID column of DB2 type BIGINT NOT NULL.
 void setPolicyName(java.lang.String newValue)
          This method provides access to the POLICY.POLICYNAME column of DB2 type VARCHAR(128) NOT NULL.
 void setProperties(java.lang.String newValue)
          This method provides access to the POLICY.PROPERTIES column of DB2 type VARCHAR(254).
 void setStartDate(java.lang.String newValue)
          This method provides access to the POLICY.STARTTIME column of DB2 type TIMESTAMP.
 void setStartDate(java.sql.Timestamp newValue)
          This method provides access to the POLICY.STARTTIME column of DB2 type TIMESTAMP.
 void setStoreEntityId(java.lang.Integer newValue)
          This method provides access to the POLICY.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void setStoreEntityId(java.lang.String newValue)
          This method provides access to the POLICY.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void setType(java.lang.String newValue)
          This method provides access to the POLICY.POLICYTYPE_ID column of DB2 type CHAR(64) NOT NULL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessPolicyAccessBean

public BusinessPolicyAccessBean()
constructor

BusinessPolicyAccessBean

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

BusinessPolicyAccessBean

public BusinessPolicyAccessBean(java.lang.String arg0,
                                java.lang.String arg1,
                                java.lang.Integer arg2)
                         throws javax.naming.NamingException,
                                javax.ejb.CreateException,
                                javax.ejb.FinderException,
                                java.rmi.RemoteException
constructor
Parameters:
arg0 - java.lang.String
arg1 - java.lang.String
arg2 - java.lang.Integer
Throws:
javax.naming.NamingException
javax.ejb.CreateException
javax.ejb.FinderException
java.rmi.RemoteException
Method Detail

findByNameTypeAndStoreEntityId

public BusinessPolicyAccessBean findByNameTypeAndStoreEntityId(java.lang.String arg0,
                                                               java.lang.String arg1,
                                                               java.lang.Integer arg2)
                                                        throws java.rmi.RemoteException,
                                                               javax.ejb.FinderException,
                                                               javax.naming.NamingException

Returns a BusinessPolicyAccessBean representing the business policy with the specified policy name and type for the specified store entity ID.

The SQL query used to fetch all the required row from the POLICY table is:

select * from policy T1 where T1.policyname =? and policytype_id =? and storeent_id = ?

Returns:
The BusinessPolicy representing the row that matches the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findCreditPaymentPolicyByStoreEntityId

public BusinessPolicyAccessBean findCreditPaymentPolicyByStoreEntityId(java.lang.Integer arg0)
                                                                throws java.rmi.RemoteException,
                                                                       javax.ejb.FinderException,
                                                                       javax.naming.NamingException

Retrieves the BusinessPolicyAccessBean representing the payment policy with credit that the specified store supports.

The SQL query used to fetch the required row from the POLICY table is:

select * from policy T1 where T1.storeent_id = ? and policyname = 'Credit' and policytype_id = 'Payment'

Returns:
The BusinessPolicyAccessBean representing the row that matches the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findCreditReturnsPolicyByStoreEntityId

public BusinessPolicyAccessBean findCreditReturnsPolicyByStoreEntityId(java.lang.Integer arg0)
                                                                throws java.rmi.RemoteException,
                                                                       javax.ejb.FinderException,
                                                                       javax.naming.NamingException

Retrieves the BusinessPolicy representing the return payment policy with credit that the specified store supports.

The SQL query used to fetch the required row from the POLICY table is:

select * from policy T1 where T1.storeent_id = ? and policyname = 'Credit' and policytype_id = 'ReturnPayment'

Returns:
The BusinessPolicy representing the row that matches the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findCustomPriceListPolicyByStoreEntityId

public BusinessPolicyAccessBean findCustomPriceListPolicyByStoreEntityId(java.lang.Integer arg0)
                                                                  throws java.rmi.RemoteException,
                                                                         javax.ejb.FinderException,
                                                                         javax.naming.NamingException

Retrieves the BusinessPolicy representing the custom price list policy for with the specified store entity ID.

The SQL query used to fetch the required row from the POLICY table is:

select * from policy T1 where T1.storeent_id = ? and policyname = 'Custom' and policytype_id = 'Price'

Returns:
The BusinessPolicy representing the row that matches the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByNameTypeAndStore

public java.util.Enumeration findByNameTypeAndStore(java.lang.String arg0,
                                                    java.lang.String arg1,
                                                    java.lang.Integer arg2)
                                             throws java.rmi.RemoteException,
                                                    javax.ejb.FinderException,
                                                    javax.naming.NamingException

Retrieves all the business policies with the specified policy name and type for the specified store ID.

Returns:
An Enumeration of all the BusinessPolicyAccessBeans 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

findByStoreEntityId

public java.util.Enumeration findByStoreEntityId(java.lang.Integer arg0)
                                          throws java.rmi.RemoteException,
                                                 javax.ejb.FinderException,
                                                 javax.naming.NamingException

Returns an Enumeration of BusinessPolicyAccessBeans representing all the business policies that the store supports .

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

select * from policy T1 where T1.storeent_id = ?

Returns:
An Enumeration of all the BusinessPolicyAccessBeans 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

Returns an Enumeration of the BusinessPolicyAccessBeans representing all the business policies that the term condition referred to.

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

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

Returns:
An Enumeration of all the BusinessPolicyAccessBeans 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

findByTCAndType

public java.util.Enumeration findByTCAndType(java.lang.Long arg0,
                                             java.lang.String arg1)
                                      throws java.rmi.RemoteException,
                                             javax.ejb.FinderException,
                                             javax.naming.NamingException

Returns an Enumeration of the BusinessPolicyAccessBeans representing all the business policies with the specified policy type for the specified term condition ID.

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

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

Returns:
An Enumeration of all the BusinessPolicyAccessBeans 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

findByTrading

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

Retrieves all the business policies that the specified trading agreement has.

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

select * from policy T1 where T1.policy_id in (select policy_id from policytc where termcond_id in (select termcond_id from termcond where trading_id = ?))

Returns:
An Enumeration of all the BusinessPolicyAccessBeans 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

findByType

public java.util.Enumeration findByType(java.lang.String arg0)
                                 throws java.rmi.RemoteException,
                                        javax.ejb.FinderException,
                                        javax.naming.NamingException

Returns all the business policies with the specified policy type.

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

select * from policy T1 where T1.policytype_id =?

Returns:
An Enumeration of all the BusinessPolicyAccessBeans 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

findByTypeAndStore

public java.util.Enumeration findByTypeAndStore(java.lang.String arg0,
                                                java.lang.Integer arg1)
                                         throws java.rmi.RemoteException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException

Returns all the business policies with the specified policy type that the specified store supports.

Returns:
An Enumeration of all the BusinessPolicyAccessBeans 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

findByTypeAndStoreEntityId

public java.util.Enumeration findByTypeAndStoreEntityId(java.lang.String arg0,
                                                        java.lang.Integer arg1)
                                                 throws java.rmi.RemoteException,
                                                        javax.ejb.FinderException,
                                                        javax.naming.NamingException

Returns an Enumeration of all the BusinessPolicyAccessBeans representing all the business policies with the specified policy type for the specified store entity ID.

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

select * from policy T1 where T1.policytype_id =? and storeent_id = ?

Returns:
An Enumeration of all the BusinessPolicyAccessBeans 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

findByTypeAndTrading

public java.util.Enumeration findByTypeAndTrading(java.lang.String arg0,
                                                  java.lang.Long arg1)
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException

Retrieves all the business policies with the specified policy type for the specified trading agreement.

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

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

Returns:
An Enumeration of all the BusinessPolicyAccessBeans 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

findProductSetPolicyByPropertyPredicate

public java.util.Enumeration findProductSetPolicyByPropertyPredicate(java.lang.String arg0,
                                                                     java.lang.String arg1)
                                                              throws java.rmi.RemoteException,
                                                                     javax.ejb.FinderException,
                                                                     javax.naming.NamingException

Returns an Enumeration of the BusinessPolicyAccessBeans representing all the product set business policies with the specified name predicate, and the member predicate.

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

select * from policy T1 where T1.policytype_id = 'ProductSet' and properties like ? and properties like ?

Returns:
An Enumeration of all the BusinessPolicyAccessBeans 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

findStandardPriceListPolicyByStore

public java.util.Enumeration findStandardPriceListPolicyByStore(java.lang.Integer arg0)
                                                         throws java.rmi.RemoteException,
                                                                javax.ejb.FinderException,
                                                                javax.naming.NamingException

Returns an Enumeration of the BusinessPolicyAccessBeans representing all the standard price list business policies with the specified store ID.

Returns:
An Enumeration of all the BusinessPolicyAccessBeans 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

findStandardPriceListPolicyByStoreEntityId

public java.util.Enumeration findStandardPriceListPolicyByStoreEntityId(java.lang.Integer arg0)
                                                                 throws java.rmi.RemoteException,
                                                                        javax.ejb.FinderException,
                                                                        javax.naming.NamingException

Retrieves all the standard price list business policies with the specified store entity ID.

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

select * from policy T1 where T1.storeent_id = ? and policyname != 'Custom' and policytype_id = 'Price'

Returns:
An Enumeration of all the BusinessPolicyAccessBeans 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

findSubProductSetPoliciesByMasterCatalogIdAndStoreIdAndProductSetId

public java.util.Enumeration findSubProductSetPoliciesByMasterCatalogIdAndStoreIdAndProductSetId(java.lang.Long arg0,
                                                                                                 java.lang.Integer arg1,
                                                                                                 java.lang.Integer arg2)
                                                                                          throws java.rmi.RemoteException,
                                                                                                 javax.ejb.FinderException,
                                                                                                 java.lang.Exception,
                                                                                                 javax.naming.NamingException

Returns an Enumeration of the BusinessPolicyAccessBeans representing all the sub level product set business policies with the specified master catalog ID, the store ID, and the product set ID.

Returns:
An Enumeration of all the BusinessPolicyAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.lang.Exception - The java.lang.Exception exception
javax.naming.NamingException

findTopLevelProductSetPoliciesByMasterCatalogIdAndStoreId

public java.util.Enumeration findTopLevelProductSetPoliciesByMasterCatalogIdAndStoreId(java.lang.Long arg0,
                                                                                       java.lang.Integer arg1)
                                                                                throws java.rmi.RemoteException,
                                                                                       javax.ejb.FinderException,
                                                                                       java.lang.Exception,
                                                                                       javax.naming.NamingException

Returns an Enumeration of the BusinessPolicyAccessBeans representing all the top level product set business policies with the specified master catalog ID, and the store ID.

Returns:
An Enumeration of all the BusinessPolicyAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.lang.Exception - The java.lang.Exception exception
javax.naming.NamingException

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

getPolicyName

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

This method provides access to the POLICY.POLICYNAME column of DB2 type VARCHAR(128) NOT NULL.

The following is a description of this column:

The unique policy name. It is expected that a store contains the following bootstrap policies: &l

Specified by:
getPolicyName in interface BusinessPolicyAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setPolicyName

public void setPolicyName(java.lang.String newValue)

This method provides access to the POLICY.POLICYNAME column of DB2 type VARCHAR(128) NOT NULL.

The following is a description of this column:

The unique policy name. It is expected that a store contains the following bootstrap policies: &l

Specified by:
setPolicyName in interface BusinessPolicyAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

getStartDate

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

This method provides access to the POLICY.STARTTIME column of DB2 type TIMESTAMP.

The following is a description of this column:

Start date of the policy. If null, the policy starts immediately.

Specified by:
getStartDate in interface BusinessPolicyAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getStartDateInEJBType

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

This method provides access to the POLICY.STARTTIME column of DB2 type TIMESTAMP.

The following is a description of this column:

Start date of the policy. If null, the policy starts immediately.

Returns:
java.sql.Timestamp
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setStartDate

public void setStartDate(java.lang.String newValue)

This method provides access to the POLICY.STARTTIME column of DB2 type TIMESTAMP.

The following is a description of this column:

Start date of the policy. If null, the policy starts immediately.

Specified by:
setStartDate in interface BusinessPolicyAccessBeanData
Parameters:
newValue - String
Returns:
void

setStartDate

public void setStartDate(java.sql.Timestamp newValue)

This method provides access to the POLICY.STARTTIME column of DB2 type TIMESTAMP.

The following is a description of this column:

Start date of the policy. If null, the policy starts immediately.

Parameters:
newValue - java.sql.Timestamp
Returns:
void

getStoreEntityId

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

This method provides access to the POLICY.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The Store or StoreGroup ID.

Specified by:
getStoreEntityId in interface BusinessPolicyAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getStoreEntityIdInEJBType

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

This method provides access to the POLICY.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The Store or StoreGroup ID.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setStoreEntityId

public void setStoreEntityId(java.lang.String newValue)

This method provides access to the POLICY.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The Store or StoreGroup ID.

Specified by:
setStoreEntityId in interface BusinessPolicyAccessBeanData
Parameters:
newValue - String
Returns:
void

setStoreEntityId

public void setStoreEntityId(java.lang.Integer newValue)

This method provides access to the POLICY.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The Store or StoreGroup ID.

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

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 POLICY.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 BusinessPolicyAccessBeanData
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 POLICY.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

setPolicyId

public void setPolicyId(java.lang.String newValue)

This method provides access to the POLICY.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 BusinessPolicyAccessBeanData
Parameters:
newValue - String
Returns:
void

setPolicyId

public void setPolicyId(java.lang.Long newValue)

This method provides access to the POLICY.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

getType

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

This method provides access to the POLICY.POLICYTYPE_ID column of DB2 type CHAR(64) NOT NULL.

The following is a description of this column:

The policy type ID. Foreign key to the POLICYTYPE table.

Specified by:
getType in interface BusinessPolicyAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setType

public void setType(java.lang.String newValue)

This method provides access to the POLICY.POLICYTYPE_ID column of DB2 type CHAR(64) NOT NULL.

The following is a description of this column:

The policy type ID. Foreign key to the POLICYTYPE table.

Specified by:
setType in interface BusinessPolicyAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

getEndDate

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

This method provides access to the POLICY.ENDTIME column of DB2 type TIMESTAMP.

The following is a description of this column:

End date of the policy. If null, no end time.

Specified by:
getEndDate in interface BusinessPolicyAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getEndDateInEJBType

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

This method provides access to the POLICY.ENDTIME column of DB2 type TIMESTAMP.

The following is a description of this column:

End date of the policy. If null, no end time.

Returns:
java.sql.Timestamp
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setEndDate

public void setEndDate(java.lang.String newValue)

This method provides access to the POLICY.ENDTIME column of DB2 type TIMESTAMP.

The following is a description of this column:

End date of the policy. If null, no end time.

Specified by:
setEndDate in interface BusinessPolicyAccessBeanData
Parameters:
newValue - String
Returns:
void

setEndDate

public void setEndDate(java.sql.Timestamp newValue)

This method provides access to the POLICY.ENDTIME column of DB2 type TIMESTAMP.

The following is a description of this column:

End date of the policy. If null, no end time.

Parameters:
newValue - java.sql.Timestamp
Returns:
void

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 POLICY.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 BusinessPolicyAccessBeanData
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 provides access to the POLICY.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:
setProperties in interface BusinessPolicyAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

fulfills

public boolean fulfills(java.lang.Long arg0,
                        java.lang.String arg1)
                 throws java.rmi.RemoteException,
                        java.lang.Exception,
                        javax.ejb.FinderException,
                        javax.naming.NamingException
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.String
Returns:
boolean
Throws:
java.rmi.RemoteException
java.lang.Exception
javax.ejb.FinderException
javax.naming.NamingException

getDescription

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

Retrieves the PolicyDescriptionAccessBean representing the business policy description with the specified language ID.

Returns:
com.ibm.commerce.contract.objects.PolicyDescriptionAccessBean
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

getDescription

public PolicyDescriptionAccessBean getDescription(java.lang.Integer arg0,
                                                  java.lang.Integer arg1)
                                           throws javax.naming.NamingException,
                                                  javax.ejb.CreateException,
                                                  javax.ejb.FinderException,
                                                  java.rmi.RemoteException

Retrieves the PolicyDescriptionAccessBean representing the business policy description with the specified language ID. If the description for the specified language is not available for the specified store, An alternate language description will be returned.

Returns:
com.ibm.commerce.contract.objects.PolicyDescriptionAccessBean
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

getOwner

public java.lang.Long getOwner()
                        throws java.lang.Exception,
                               java.rmi.RemoteException,
                               javax.ejb.FinderException,
                               javax.naming.NamingException
This method accesses a non-CMP field
java.lang.Exception
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException