com.ibm.commerce.contract.beans

Class PolicyByNameTypeAndStoreDataBean

  • All Implemented Interfaces:
    com.ibm.commerce.beans.DataBean, com.ibm.commerce.beans.InputDataBean, com.ibm.commerce.beans.SmartDataBean, java.io.Serializable


    public class PolicyByNameTypeAndStoreDataBean
    extends PolicyDataBean
    This data bean represents a business policy object. This data bean is used to retrieve policyId based on store id, name and type.

    Mandatory Parameters (for single row retrieval):

    • storeId policyName policyType dataBeanLanguageId

    Some hints and tips for using this data bean are:

    • It is important to set the name value, the type value, store id and the language id before activating the data bean
    • You can set parameters using setters

    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PolicyByNameTypeAndStoreDataBean

        public PolicyByNameTypeAndStoreDataBean()
    • Method Detail

      • getDataBeanLanguageId

        public java.lang.String getDataBeanLanguageId()
        This method returns the language id used to populate the data bean.
        Returns:
        java.lang.String
      • getPolicyId

        public java.lang.String getPolicyId()
        This method returns the policy id.
        Returns:
        java.lang.String
      • getStoreId

        public java.lang.String getStoreId()
        This method returns the store id.
        Returns:
        java.lang.String
      • populate

        public void populate()
                      throws java.lang.Exception
        This method uses BusinessPolicyAccessBean and populates the policy id and policy description. The policy id and policy description can then be retrieved using the getter methods.
        Specified by:
        populate in interface com.ibm.commerce.beans.SmartDataBean
        Overrides:
        populate in class PolicyDataBean
        Throws:
        java.lang.Exception - This is thrown if there is a problem populating the data bean with data.
      • setDataBeanLanguageId

        public void setDataBeanLanguageId(java.lang.String languageId)
        This method sets the language id.
        Parameters:
        languageId - the language id used to populate the data bean.
      • setPolicyId

        public void setPolicyId(java.lang.String aPolicyId)
        This method sets the policy id.
        Parameters:
        aPolicyId - the policy id.
      • setStoreId

        public void setStoreId(java.lang.String aStoreId)
        This method sets the store id.
        Parameters:
        aStoreId - the store id.