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 of this table indicates that the TradingPositions in a TradingPositionContainer are available to customers of Stores where the Contract is deployed, subject to any terms and conditions associated with the Contract. This access bean corresponds to the database table 'POLICY'.

See Also:
Serialized Form

Constructor Summary
BusinessPolicyAccessBean()
Zero argument constructor used to initialize the access bean.
BusinessPolicyAccessBean(javax.ejb.EJBObject o)
constructor
BusinessPolicyAccessBean(java.lang.String argPolicyName, java.lang.String argType, java.lang.Integer argStoreEntityId)
Constructs an BusinessPolicy 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).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByNameTypeAndStore(java.lang.String argPolicyName, java.lang.String argPolicyType, java.lang.Integer argStoreId)
Retrieves all the business policies with the specified policy name and type for the specified store ID.
BusinessPolicyAccessBean findByNameTypeAndStoreEntityId(java.lang.String argPolicyName, java.lang.String argPolicyType, java.lang.Integer argStoreEntityId)
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 argStoreEntityId)
Returns an Enumeration of BusinessPolicyAccessBeans representing all the business policies that the store supports .
java.util.Enumeration findByTC(java.lang.Long argTcId)
Returns an Enumeration of the BusinessPolicyAccessBeans representing all the business policies that the term condition referred to.
java.util.Enumeration findByTCAndType(java.lang.Long argTcId, java.lang.String argPolicyType)
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 argTrading)
Retrieves all the business policies that the specified trading agreement has.
java.util.Enumeration findByType(java.lang.String argPolicyType)
Returns all the business policies with the specified policy type.
java.util.Enumeration findByTypeAndStore(java.lang.String argPolicyType, java.lang.Integer argStoreId)
Returns all the business policies with the specified policy type that the specified store supports.
java.util.Enumeration findByTypeAndStoreEntityId(java.lang.String argPolicyType, java.lang.Integer argStoreEntityId)
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 argPolicyType, java.lang.Long argTrading)
Retrieves all the business policies with the specified policy type for the specified trading agreement.
BusinessPolicyAccessBean findCreditPaymentPolicyByStoreEntityId(java.lang.Integer argStoreEntityId)
Retrieves the BusinessPolicyAccessBean representing the payment policy with credit that the specified store supports.
BusinessPolicyAccessBean findCreditReturnsPolicyByStoreEntityId(java.lang.Integer argStoreEntityId)
Retrieves the BusinessPolicy representing the return payment policy with credit that the specified store supports.
BusinessPolicyAccessBean findCustomPriceListPolicyByStoreEntityId(java.lang.Integer argStoreEntityId)
Retrieves the BusinessPolicy representing the custom price list policy for with the specified store entity ID.
java.util.Enumeration findProductSetPolicyByPropertyPredicate(java.lang.String argNamePredicate, java.lang.String argMemberPredicate)
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 argStoreId)
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 argStoreEntityId)
Retrieves all the standard price list business policies with the specified store entity ID.
java.util.Enumeration findSubProductSetPoliciesByMasterCatalogIdAndStoreIdAndProductSetId(java.lang.Long anMasterCatalogId, java.lang.Integer anStoreId, java.lang.Integer anProductSetId)
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 anMasterCatalogId, java.lang.Integer anStoreId)
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 argLanguageId)
Retrieves the PolicyDescriptionAccessBean representing the business policy description with the specified language ID.
PolicyDescriptionAccessBean getDescription(java.lang.Integer language_id, 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.
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 accesses a non-CMP field
void setEndDate(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setInitKey_policyId(java.lang.String newValue)
Set the primary key for this object
void setPolicyId(java.lang.Long newValue)
This method accesses a non-CMP field
void setPolicyId(java.lang.String newValue)
This method accesses a non-CMP field
void setPolicyName(java.lang.String newValue)
This method accesses a non-CMP field
void setProperties(java.lang.String newValue)
This method accesses a non-CMP field
void setStartDate(java.lang.String newValue)
This method accesses a non-CMP field
void setStartDate(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setStoreEntityId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setStoreEntityId(java.lang.String newValue)
This method accesses a non-CMP field
void setType(java.lang.String newValue)
This method accesses a non-CMP field
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

BusinessPolicyAccessBean

public BusinessPolicyAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.contract.objects.BusinessPolicy com.ibm.commerce.contract.objimpl.BusinessPolicyHomeBase.findByPrimaryKey(com.ibm.commerce.contract.objects.BusinessPolicyKey) throws java.rmi.RemoteException,javax.ejb.FinderException The home interface method properties need to be set by calling the following setter methods before calling any business methods: setInitKey_policyId( java.lang.Long )

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 argPolicyName,
                                java.lang.String argType,
                                java.lang.Integer argStoreEntityId)
                         throws javax.naming.NamingException,
                                javax.ejb.CreateException,
                                javax.ejb.FinderException,
                                java.rmi.RemoteException

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

Parameters:
argPolicyName - The name of the business policy.
argType - The type of the business policy.
argStoreEntityId - 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

findByNameTypeAndStoreEntityId

public BusinessPolicyAccessBean findByNameTypeAndStoreEntityId(java.lang.String argPolicyName,
                                                               java.lang.String argPolicyType,
                                                               java.lang.Integer argStoreEntityId)
                                                        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:
argPolicyName - The name of the business policy.
argPolicyType - The type of the business policy.
argStoreEntityId - The ID of the store entity which the business policy belongs to.
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 argStoreEntityId)
                                                                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:
argStoreEntityId - 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

findCreditReturnsPolicyByStoreEntityId

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

Parameters:
argStoreEntityId - java.lang.Integer
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 argStoreEntityId)
                                                                  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'

Parameters:
argStoreEntityId - The ID of the store entity.
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 argPolicyName,
                                                    java.lang.String argPolicyType,
                                                    java.lang.Integer argStoreId)
                                             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:
argPolicyName - The name of the business policy.
argPolicyType - The Type of the business policy.
argStoreId - 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

findByStoreEntityId

public java.util.Enumeration findByStoreEntityId(java.lang.Integer argStoreEntityId)
                                          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:
argStoreEntityId - 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

findByTC

public java.util.Enumeration findByTC(java.lang.Long argTcId)
                               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:
argTcId - 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

findByTCAndType

public java.util.Enumeration findByTCAndType(java.lang.Long argTcId,
                                             java.lang.String argPolicyType)
                                      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:
argTcId - The ID of the terms and conditions.
argPolicyType - 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

findByTrading

public java.util.Enumeration findByTrading(java.lang.Long argTrading)
                                    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:
argTrading - 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

findByType

public java.util.Enumeration findByType(java.lang.String argPolicyType)
                                 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:
argPolicyType - 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

findByTypeAndStore

public java.util.Enumeration findByTypeAndStore(java.lang.String argPolicyType,
                                                java.lang.Integer argStoreId)
                                         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:
argPolicyType - The type of the business type.
argStoreId - 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

findByTypeAndStoreEntityId

public java.util.Enumeration findByTypeAndStoreEntityId(java.lang.String argPolicyType,
                                                        java.lang.Integer argStoreEntityId)
                                                 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:
argPolicyType - The type of the business policy.
argStoreEntityId - 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

findByTypeAndTrading

public java.util.Enumeration findByTypeAndTrading(java.lang.String argPolicyType,
                                                  java.lang.Long argTrading)
                                           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:
argPolicyType - The type of the business policy.
argTrading - 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

findProductSetPolicyByPropertyPredicate

public java.util.Enumeration findProductSetPolicyByPropertyPredicate(java.lang.String argNamePredicate,
                                                                     java.lang.String argMemberPredicate)
                                                              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:
argNamePredicate - The predicate of the property name.
argMemberPredicate - 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

findStandardPriceListPolicyByStore

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

findStandardPriceListPolicyByStoreEntityId

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

findSubProductSetPoliciesByMasterCatalogIdAndStoreIdAndProductSetId

public java.util.Enumeration findSubProductSetPoliciesByMasterCatalogIdAndStoreIdAndProductSetId(java.lang.Long anMasterCatalogId,
                                                                                                 java.lang.Integer anStoreId,
                                                                                                 java.lang.Integer anProductSetId)
                                                                                          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:
anMasterCatalogId - java.lang.Long
anStoreId - The ID of the store.
anProductSetId - 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

findTopLevelProductSetPoliciesByMasterCatalogIdAndStoreId

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

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 accesses a non-CMP field
Specified by:
setPolicyName in interface BusinessPolicyAccessBeanData
Parameters:
newValue - The name of the business policy.

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 accesses a non-CMP field
Specified by:
setStartDate in interface BusinessPolicyAccessBeanData
Parameters:
newValue - The starting date of the business policy.

setStartDate

public void setStartDate(java.sql.Timestamp newValue)
This method accesses a non-CMP field

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 accesses a non-CMP field
Specified by:
setStoreEntityId in interface BusinessPolicyAccessBeanData
Parameters:
newValue - The ID of the store entity.

setStoreEntityId

public void setStoreEntityId(java.lang.Integer newValue)
This method accesses a non-CMP field

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 accesses a non-CMP field
Specified by:
setPolicyId in interface BusinessPolicyAccessBeanData
Parameters:
newValue - The ID of the business policy.

setPolicyId

public void setPolicyId(java.lang.Long newValue)
This method accesses a non-CMP field

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 accesses a non-CMP field
Specified by:
setType in interface BusinessPolicyAccessBeanData
Parameters:
newValue - The type of the business policy.

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 accesses a non-CMP field
Specified by:
setEndDate in interface BusinessPolicyAccessBeanData
Parameters:
newValue - The ending date of the business policy.

setEndDate

public void setEndDate(java.sql.Timestamp newValue)
This method accesses a non-CMP field

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 accesses a non-CMP field
Specified by:
setProperties in interface BusinessPolicyAccessBeanData
Parameters:
newValue - The properties of the business policy.

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 argLanguageId)
                                           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:
argLanguageId - 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 language_id,
                                                  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:
language_id - 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

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

Feedback