com.ibm.commerce.contract.objects
Class BusinessPolicyAccessBean

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

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

This bean provides access to the POLICY table.

The following is a description of this table:

Each row in this table represents a business policy.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
BusinessPolicyAccessBean()
          Default constructor.
BusinessPolicyAccessBean(javax.ejb.EJBObject anObject)
          Creates an access bean for the specified EJB
BusinessPolicyAccessBean(java.lang.String policyName, java.lang.String policyType, java.lang.Integer storeEntityId)
          Constructs an BusinessPolicyAccessBean object with the specified policy name, policy type, and the store entity ID.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByNameTypeAndStore(java.lang.String policyName, java.lang.String policyType, java.lang.Integer storeId)
          Retrieves all the business policies with the specified policy name and type for the specified store ID.
 BusinessPolicyAccessBean findByNameTypeAndStoreEntityId(java.lang.String policyName, java.lang.String policyType, java.lang.Integer storeEntityId)
          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 storeEntityId)
          Returns an Enumeration of BusinessPolicyAccessBeans representing all the business policies that the store supports .
 java.util.Enumeration findByTC(java.lang.Long tcId)
          Returns an Enumeration of the BusinessPolicyAccessBeans representing all the business policies that the term condition referred to.
 java.util.Enumeration findByTCAndType(java.lang.Long tcId, java.lang.String policyType)
          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 tradingId)
          Retrieves all the business policies that the specified trading agreement has.
 java.util.Enumeration findByType(java.lang.String policyType)
          Returns all the business policies with the specified policy type.
 java.util.Enumeration findByTypeAndStore(java.lang.String policyType, java.lang.Integer storeId)
          Returns all the business policies with the specified policy type that the specified store supports.
 java.util.Enumeration findByTypeAndStoreEntityId(java.lang.String policyType, java.lang.Integer storeEntityId)
          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 policyType, java.lang.Long tradingId)
          Retrieves all the business policies with the specified policy type for the specified trading agreement.
 BusinessPolicyAccessBean findCreditPaymentPolicyByStoreEntityId(java.lang.Integer storeEntityId)
          Retrieves the BusinessPolicyAccessBean representing the payment policy with credit that the specified store supports.
 BusinessPolicyAccessBean findCreditReturnsPolicyByStoreEntityId(java.lang.Integer storeEntityId)
          Retrieves the BusinessPolicyAccessBean representing the return payment policy with credit that the specified store supports.
 BusinessPolicyAccessBean findCustomPriceListPolicyByStoreEntityId(java.lang.Integer storeEntityId)
          Retrieves the BusinessPolicyAccessBean representing the custom price list policy for with the specified store entity ID.
 java.util.Enumeration findProductSetPolicyByPropertyPredicate(java.lang.String namePredicate, java.lang.String memberPredicate)
          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 storeId)
          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 aDStandardPriceListPolicyByStoreEntityId)
          Retrieves all the standard price list business policies with the specified store entity ID.
 java.util.Enumeration findSubProductSetPoliciesByMasterCatalogIdAndStoreIdAndProductSetId(java.lang.Long masterCatalogId, java.lang.Integer storeId, java.lang.Integer productSetId)
          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 masterCatalogId, java.lang.Integer storeId)
          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 memberId, java.lang.String relationship)
          Determines if a given member fulfills a given relationship with the resource.
 PolicyDescriptionAccessBean getDescription(java.lang.Integer aDescription)
          Retrieves the PolicyDescriptionAccessBean representing the business policy description with the specified language ID.
 PolicyDescriptionAccessBean getDescription(java.lang.Integer langId, java.lang.Integer storeId)
          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 NULL.
 java.sql.Timestamp getEndDateInEJBType()
          This method provides access to the POLICY.ENDTIME column of DB2 type TIMESTAMP NULL.
 java.lang.Long getOwner()
          Returns the member id of the owner of the resource
 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) NULL.
 java.lang.String getStartDate()
          This method provides access to the POLICY.STARTTIME column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getStartDateInEJBType()
          This method provides access to the POLICY.STARTTIME column of DB2 type TIMESTAMP NULL.
 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.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setEndDate(java.lang.String aEndDate)
          This method provides access to the POLICY.ENDTIME column of DB2 type TIMESTAMP NULL.
 void setEndDate(java.sql.Timestamp aEndDate)
          This method provides access to the POLICY.ENDTIME column of DB2 type TIMESTAMP NULL.
 void setInitKey_policyId(java.lang.String aInitKey_policyId)
          Set the primary key for this object
 void setPolicyId(java.lang.Long aPolicyId)
          This method provides access to the POLICY.POLICY_ID column of DB2 type BIGINT NOT NULL.
 void setPolicyId(java.lang.String aPolicyId)
          This method provides access to the POLICY.POLICY_ID column of DB2 type BIGINT NOT NULL.
 void setPolicyName(java.lang.String aPolicyName)
          This method provides access to the POLICY.POLICYNAME column of DB2 type VARCHAR(128) NOT NULL.
 void setProperties(java.lang.String aProperties)
          This method provides access to the POLICY.PROPERTIES column of DB2 type VARCHAR(254) NULL.
 void setStartDate(java.lang.String aStartDate)
          This method provides access to the POLICY.STARTTIME column of DB2 type TIMESTAMP NULL.
 void setStartDate(java.sql.Timestamp aStartDate)
          This method provides access to the POLICY.STARTTIME column of DB2 type TIMESTAMP NULL.
 void setStoreEntityId(java.lang.Integer aStoreEntityId)
          This method provides access to the POLICY.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void setStoreEntityId(java.lang.String aStoreEntityId)
          This method provides access to the POLICY.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void setType(java.lang.String aType)
          This method provides access to the POLICY.POLICYTYPE_ID column of DB2 type CHAR(64) 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

BusinessPolicyAccessBean

public BusinessPolicyAccessBean()

Default constructor. Maps to findByPrimaryKey.


BusinessPolicyAccessBean

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

BusinessPolicyAccessBean

public BusinessPolicyAccessBean(java.lang.String policyName,
                                java.lang.String policyType,
                                java.lang.Integer storeEntityId)
                         throws javax.naming.NamingException,
                                javax.ejb.CreateException,
                                javax.ejb.FinderException,
                                java.rmi.RemoteException

Constructs an BusinessPolicyAccessBean object with the specified policy name, policy type, and the store entity ID.

Parameters:
policyName - The name of the business policy.
policyType - The type of the business policy.
storeEntityId - The ID of store entity.
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
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

findByNameTypeAndStore

public java.util.Enumeration findByNameTypeAndStore(java.lang.String policyName,
                                                    java.lang.String policyType,
                                                    java.lang.Integer storeId)
                                             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.

Parameters:
policyName - The name of the business policy.
policyType - The Type of the business policy.
storeId - The ID of the store.
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 - The javax.naming.NamingException exception

findByNameTypeAndStoreEntityId

public BusinessPolicyAccessBean findByNameTypeAndStoreEntityId(java.lang.String policyName,
                                                               java.lang.String policyType,
                                                               java.lang.Integer storeEntityId)
                                                        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 = ?

Parameters:
policyName - The name of the business policy.
policyType - The type of the business policy.
storeEntityId - The ID of the store entity which the business policy belongs to.
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 - The javax.naming.NamingException exception

findByStoreEntityId

public java.util.Enumeration findByStoreEntityId(java.lang.Integer storeEntityId)
                                          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 = ?

Parameters:
storeEntityId - java.lang.Long
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 - 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

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 = ?)

Parameters:
tcId - The ID of the terms and condition.
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 - The javax.naming.NamingException exception

findByTCAndType

public java.util.Enumeration findByTCAndType(java.lang.Long tcId,
                                             java.lang.String policyType)
                                      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 = ?

Parameters:
tcId - The ID of the terms and conditions.
policyType - The type of the business policy.
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 - The javax.naming.NamingException exception

findByTrading

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

Parameters:
tradingId - The ID of the trading agreement.
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 - The javax.naming.NamingException exception

findByType

public java.util.Enumeration findByType(java.lang.String policyType)
                                 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 =?

Parameters:
policyType - The type of the business policy.
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 - The javax.naming.NamingException exception

findByTypeAndStore

public java.util.Enumeration findByTypeAndStore(java.lang.String policyType,
                                                java.lang.Integer storeId)
                                         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.

Parameters:
policyType - The type of the business type.
storeId - The ID of the store.
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 - The javax.naming.NamingException exception

findByTypeAndStoreEntityId

public java.util.Enumeration findByTypeAndStoreEntityId(java.lang.String policyType,
                                                        java.lang.Integer storeEntityId)
                                                 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 = ?

Parameters:
policyType - The type of the business policy.
storeEntityId - The ID of the store entity.
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 - The javax.naming.NamingException exception

findByTypeAndTrading

public java.util.Enumeration findByTypeAndTrading(java.lang.String policyType,
                                                  java.lang.Long tradingId)
                                           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 = ?))

Parameters:
policyType - The type of the business policy.
tradingId - The ID of the trading agreement.
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 - The javax.naming.NamingException exception

findCreditPaymentPolicyByStoreEntityId

public BusinessPolicyAccessBean findCreditPaymentPolicyByStoreEntityId(java.lang.Integer storeEntityId)
                                                                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'

Parameters:
storeEntityId - The ID of the store entity.
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 - The javax.naming.NamingException exception

findCreditReturnsPolicyByStoreEntityId

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

Retrieves the BusinessPolicyAccessBean 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'

Parameters:
storeEntityId - java.lang.Integer
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 - The javax.naming.NamingException exception

findCustomPriceListPolicyByStoreEntityId

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

Retrieves the BusinessPolicyAccessBean 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'

Parameters:
storeEntityId - The ID of the store entity.
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 - The javax.naming.NamingException exception

findProductSetPolicyByPropertyPredicate

public java.util.Enumeration findProductSetPolicyByPropertyPredicate(java.lang.String namePredicate,
                                                                     java.lang.String memberPredicate)
                                                              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 ?

Parameters:
namePredicate - The predicate of the property name.
memberPredicate - The predicate of the property member.
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 - The javax.naming.NamingException exception

findStandardPriceListPolicyByStore

public java.util.Enumeration findStandardPriceListPolicyByStore(java.lang.Integer storeId)
                                                         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.

Parameters:
storeId - The ID of the store.
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 - The javax.naming.NamingException exception

findStandardPriceListPolicyByStoreEntityId

public java.util.Enumeration findStandardPriceListPolicyByStoreEntityId(java.lang.Integer aDStandardPriceListPolicyByStoreEntityId)
                                                                 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'

Parameters:
storeEntityId - The ID of the store entity.
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 - The javax.naming.NamingException exception

findSubProductSetPoliciesByMasterCatalogIdAndStoreIdAndProductSetId

public java.util.Enumeration findSubProductSetPoliciesByMasterCatalogIdAndStoreIdAndProductSetId(java.lang.Long masterCatalogId,
                                                                                                 java.lang.Integer storeId,
                                                                                                 java.lang.Integer productSetId)
                                                                                          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.

Parameters:
masterCatalogId - java.lang.Long
storeId - The ID of the store.
productSetId - The ID of the product set.
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 - The javax.naming.NamingException exception

findTopLevelProductSetPoliciesByMasterCatalogIdAndStoreId

public java.util.Enumeration findTopLevelProductSetPoliciesByMasterCatalogIdAndStoreId(java.lang.Long masterCatalogId,
                                                                                       java.lang.Integer storeId)
                                                                                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.

Parameters:
masterCatalogId - java.lang.Long
storeId - The ID of the store.
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 - The javax.naming.NamingException exception

fulfills

public boolean fulfills(java.lang.Long memberId,
                        java.lang.String relationship)
                 throws java.rmi.RemoteException,
                        java.lang.Exception,
                        javax.ejb.FinderException,
                        javax.naming.NamingException

Determines if a given member fulfills a given relationship with the resource.

Parameters:
memberId - The ID of the member.
relationship - The relationship the member has with respect to the resource.
Returns:
true if the member fulfills the relationship with the resource.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
java.lang.Exception - The java.lang.Exception exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getDescription

public PolicyDescriptionAccessBean getDescription(java.lang.Integer aDescription)
                                           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.

Parameters:
langId - The ID of the language.
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 langId,
                                                  java.lang.Integer storeId)
                                           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.

Parameters:
langId - java.lang.Integer
storeId - java.lang.Integer
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

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

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:
The ending date 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

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

The following is a description of this column:

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

Returns:
The ending date 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

getOwner

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

Returns the member id of the owner of the resource

Returns:
The member id of the owner of the resource.
Throws:
java.lang.Exception - The java.lang.Exception exception
java.rmi.RemoteException - The java.rmi.RemoteException 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 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:
The ID 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

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:
The ID of the 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

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 policy unique name. It is expected that a store contains the following bootstrap policies: MasterCatalog (one per storeEntity), CreditLine (one per storeEntity).

Specified by:
getPolicyName in interface BusinessPolicyAccessBeanData
Returns:
The name 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

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) NULL.

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&n2=v2.

Specified by:
getProperties in interface BusinessPolicyAccessBeanData
Returns:
The properties 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

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

The following is a description of this column:

Start date of the policy. If null start immediately.

Specified by:
getStartDate in interface BusinessPolicyAccessBeanData
Returns:
The starting date 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

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

The following is a description of this column:

Start date of the policy. If null start immediately.

Returns:
The starting date 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

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:
The ID of the store entity.
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

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:
The ID of the store entity which the business policy belongs to.
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

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:
The type 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

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

setEndDate

public void setEndDate(java.lang.String aEndDate)

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

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:
aEndDate - The ending date of the business policy.
Returns:
void

setEndDate

public void setEndDate(java.sql.Timestamp aEndDate)

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

The following is a description of this column:

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

Parameters:
aEndDate - The ending date of the business policy.
Returns:
void

setInitKey_policyId

public void setInitKey_policyId(java.lang.String aInitKey_policyId)

Set the primary key for this object

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

setPolicyId

public void setPolicyId(java.lang.Long aPolicyId)

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:
aPolicyId - The ID of the business policy.
Returns:
void

setPolicyId

public void setPolicyId(java.lang.String aPolicyId)

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:
aPolicyId - The ID of the business policy.
Returns:
void

setPolicyName

public void setPolicyName(java.lang.String aPolicyName)

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 policy unique name. It is expected that a store contains the following bootstrap policies: MasterCatalog (one per storeEntity), CreditLine (one per storeEntity).

Specified by:
setPolicyName in interface BusinessPolicyAccessBeanData
Parameters:
aPolicyName - The name of the business policy.
Returns:
void

setProperties

public void setProperties(java.lang.String aProperties)

This method provides access to the POLICY.PROPERTIES column of DB2 type VARCHAR(254) NULL.

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&n2=v2.

Specified by:
setProperties in interface BusinessPolicyAccessBeanData
Parameters:
aProperties - The properties of the business policy
Returns:
void

setStartDate

public void setStartDate(java.lang.String aStartDate)

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

The following is a description of this column:

Start date of the policy. If null start immediately.

Specified by:
setStartDate in interface BusinessPolicyAccessBeanData
Parameters:
aStartDate - The starting date of the business policy.
Returns:
void

setStartDate

public void setStartDate(java.sql.Timestamp aStartDate)

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

The following is a description of this column:

Start date of the policy. If null start immediately.

Parameters:
aStartDate - The starting time of the business policy.
Returns:
void

setStoreEntityId

public void setStoreEntityId(java.lang.Integer aStoreEntityId)

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:
aStoreEntityId - The Id of the store entity.
Returns:
void

setStoreEntityId

public void setStoreEntityId(java.lang.String aStoreEntityId)

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:
aStoreEntityId - The ID of the store entity.
Returns:
void

setType

public void setType(java.lang.String aType)

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:
aType - The type of the business policy.
Returns:
void