com.ibm.commerce.beans

Class DataBeanHelper

  • java.lang.Object
    • com.ibm.commerce.beans.DataBeanHelper
  • All Implemented Interfaces:
    java.io.Serializable


    public class DataBeanHelper
    extends java.lang.Object
    implements java.io.Serializable
    This is a helper class for all data bean objects.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM Copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      DataBeanHelper()
      This is the default constructor for this class.
      DataBeanHelper(java.lang.String interfaceName)
      This constructor initializes the default interface name and class name of the data bean command.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getErrorCode()
      This method gets the error of for the data bean.
      java.lang.String getErrorMessage()
      This method gets the error message for the data bean.
      java.lang.String getInterfaceName()
      This method gets the interface name of the command to invoke to return a populated instance of the data bean.
      java.lang.String getPageName()
      This method gets the page name of the current request of this data bean.
      void setErrorCode(int newCode)
      This method sets the error code of the data bean.
      void setErrorMessage(java.lang.String newMessage)
      This method sets the error message of the data bean.
      void setPageName(java.lang.String newPage)
      This method sets the page name for the current request of this data bean.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

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

      • DataBeanHelper

        public DataBeanHelper()
        This is the default constructor for this class. It calls the constructor from the superclass. All base fields are initialized to empty strings ("").
      • DataBeanHelper

        public DataBeanHelper(java.lang.String interfaceName)
        This constructor initializes the default interface name and class name of the data bean command. All other fields are initialized to empty strings ("").
        Parameters:
        interfaceName - This is the interface name of data bean command.
    • Method Detail

      • getErrorCode

        public int getErrorCode()
        This method gets the error of for the data bean. The code is available if the request to activate this data bean fails.
        Returns:
        This method returns the error code.
      • getErrorMessage

        public java.lang.String getErrorMessage()
        This method gets the error message for the data bean. The message is available if the request to activate this data bean fails.
        Returns:
        This method returns the error message.
      • getInterfaceName

        public java.lang.String getInterfaceName()
        This method gets the interface name of the command to invoke to return a populated instance of the data bean.
        Returns:
        This method returns the interface name.
      • getPageName

        public java.lang.String getPageName()
        This method gets the page name of the current request of this data bean.
        Returns:
        This method returns the page name.
      • setErrorCode

        public void setErrorCode(int newCode)
        This method sets the error code of the data bean. The code is available if the request to activate this data bean fails.
        Parameters:
        newCode - This is the error code.
      • setErrorMessage

        public void setErrorMessage(java.lang.String newMessage)
        This method sets the error message of the data bean. The message is available if the request to activate this data bean fails.
        Parameters:
        newMessage - This is the error message.
      • setPageName

        public void setPageName(java.lang.String newPage)
        This method sets the page name for the current request of this data bean.
        Parameters:
        newPage - This is the page name.