public class BusinessPolicyAccessBean extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean implements BusinessPolicyAccessBeanData
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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 accesses a non-CMP field
|
java.sql.Timestamp | getEndDateInEJBType()
This method accesses a non-CMP field
|
java.lang.Long | getOwner()
This method accesses a non-CMP field
|
java.lang.String | getPolicyId()
This method accesses a non-CMP field
|
java.lang.Long | getPolicyIdInEJBType()
This method accesses a non-CMP field
|
java.lang.String | getPolicyName()
This method accesses a non-CMP field
|
java.lang.String | getProperties()
This method accesses a non-CMP field
|
java.lang.String | getStartDate()
This method accesses a non-CMP field
|
java.sql.Timestamp | getStartDateInEJBType()
This method accesses a non-CMP field
|
java.lang.String | getStoreEntityId()
This method accesses a non-CMP field
|
java.lang.Integer | getStoreEntityIdInEJBType()
This method accesses a non-CMP field
|
java.lang.String | getType()
This method accesses a non-CMP field
|
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
|
public BusinessPolicyAccessBean()
public BusinessPolicyAccessBean(javax.ejb.EJBObject o) throws java.rmi.RemoteException
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.
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 = ?
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'
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'
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'
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.
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 = ?
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 = ?)
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. All the business policies are 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 = ?
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 = ?))
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 =?
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.
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 = ?
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 = ?))
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 ?
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.
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'
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. The business policies are with the specified master catalog ID, the store ID, and the product set ID.
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.
public void setInitKey_policyId(java.lang.String newValue)
Set the primary key for this object
protected java.lang.String defaultJNDIName()
protected void instantiateEJB() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
protected boolean instantiateEJBByPrimaryKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.naming.NamingException
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Update(flush) data to the EJBObject (persistent storage).
public void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
public java.lang.String getPolicyName() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setPolicyName(java.lang.String newValue)
public java.lang.String getStartDate() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.sql.Timestamp getStartDateInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setStartDate(java.lang.String newValue)
public void setStartDate(java.sql.Timestamp newValue)
public java.lang.String getStoreEntityId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.Integer getStoreEntityIdInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setStoreEntityId(java.lang.String newValue)
public void setStoreEntityId(java.lang.Integer newValue)
public java.lang.String getPolicyId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.Long getPolicyIdInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setPolicyId(java.lang.String newValue)
public void setPolicyId(java.lang.Long newValue)
public java.lang.String getType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setType(java.lang.String newValue)
public java.lang.String getEndDate() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.sql.Timestamp getEndDateInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setEndDate(java.lang.String newValue)
public void setEndDate(java.sql.Timestamp newValue)
public java.lang.String getProperties() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setProperties(java.lang.String newValue)
public boolean fulfills(java.lang.Long arg0, java.lang.String arg1) throws java.rmi.RemoteException, java.lang.Exception, javax.ejb.FinderException, javax.naming.NamingException
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.
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.
public java.lang.Long getOwner() throws java.lang.Exception, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException