Class EJBInfo

java.lang.Object
quadbase.common.util.internal.EJBInfo

public class EJBInfo extends Object
The EJBInfo class provides information that is used to connect to an entity bean on a server. When calling the Constructor of a QbReport, this EJBInfo Object can be passed in for connecting to an entity bean, which serves as a Data source for the QbReport.
  • Field Details

  • Constructor Details

    • EJBInfo

      public EJBInfo(String jndiName, String homeName, String remoteName, String selectedMethodName, Object[] selectedMethodParamVal)
      Allocates an EJBInfo that contains information to connect to an entity bean on a server.
      Parameters:
      jndiName - the lookup name for the bean on the server.
      homeName - name of the class for the home interface (ex. ejb.SalesHome). Contains the findX() methods for querying the databse.
      remoteName - name of the class for the remote interface (ex. ejb.Sales). Contains the getX() and setX() methods.
      selectedMethodName - the name of the method to be used for querying the database, this is one of the methods contained in the class for the home interface.
      selectedMethodParamVal - specifies the parameters for the selectedMethodName method. The selectedMethodParamVal.length must equal to the number of parameters associated with the selectedMethodName method, and the order in which the parameters appear must also coincide.
    • EJBInfo

      public EJBInfo(String jndiName, String homeName, String remoteName, String selectedMethodName, Object[] selectedMethodParamVal, Hashtable<String,String> environment)
      Allocates an EJBInfo that contains information to connect to an entity bean on a server.
      Parameters:
      jndiName - the lookup name for the bean on the server.
      homeName - name of the class for the home interface (ex. ejb.SalesHome). Contains the findX() methods for querying the databse.
      remoteName - name of the class for the remote interface (ex. ejb.Sales). Contains the getX() and setX() methods.
      selectedMethodName - the name of the method to be used for querying the database, this is one of the methods contained in the class for the home interface.
      selectedMethodParamVal - specifies the parameters for the selectedMethodName method. The selectedMethodParamVal.length must equal to the number of parameters associated with the selectedMethodName method, and the order in which the parameters appear must also coincide.
      environment - environment properties for your application server. This information is necessary for EspressManager to connect to the EJB. Allowable keys are:

      Property Key
      "APPLET"
      "AUTHORITATIVE"
      "DNS_URL"
      "INITIAL_CONTEXT_FACTORY"
      "LANGUAGE"
      "OBJECT_FACTORIES"
      "PROVIDER_URL"
      "REFERRAL"
      "SECURITY_AUTHENTICATION"
      "SECURITY_CREDENTIALS"
      "SECURITY_PRINCIPAL"
      "SECURITY_PROTOCOL"
      "STATE_FACTORIES"
      "URL_PKG_PREFIXES"


      The most commonly used properties are the INITIAL_CONTEXT_FACTORY and the PROVIDER_URL.
  • Method Details

    • getJNDIName

      public String getJNDIName()
      Returns the lookup name for the bean on the server.
    • getHomeName

      public String getHomeName()
      Returns the name of the class for the home interface (ex. ejb.SalesHome). Contains the findX() methods for querying the databse.
    • getRemoteName

      public String getRemoteName()
      Returns the name of the class for the remote interface (ex. ejb.Sales). Contains the getX() and setX() methods.
    • getSelectedMethodName

      public String getSelectedMethodName()
      Returns the name of the method to be used for querying the database, this is one of the methods contained in the class for the home interface.
    • getSelectedMethodParamVal

      public Object[] getSelectedMethodParamVal()
      Returns the parameters for the selectedMethodName method. The selectedMethodParamVal.length must equal to the number of parameters associated with the selectedMethodName method, and the order in which the parameters appear must also coincide.
    • getEnvironment

      public Hashtable<String,String> getEnvironment()
      Returns the environment properties of the bean as a Hashtable. This information is necessary for EspressManager to connect to the EJB. Allowable keys are:

      Property Key
      "APPLET"
      "AUTHORITATIVE"
      "DNS_URL"
      "INITIAL_CONTEXT_FACTORY"
      "LANGUAGE"
      "OBJECT_FACTORIES"
      "PROVIDER_URL"
      "REFERRAL"
      "SECURITY_AUTHENTICATION"
      "SECURITY_CREDENTIALS"
      "SECURITY_PRINCIPAL"
      "SECURITY_PROTOCOL"
      "STATE_FACTORIES"
      "URL_PKG_PREFIXES"


      The most commonly used properties are the INITIAL_CONTEXT_FACTORY and the PROVIDER_URL.
    • setJNDIName

      public void setJNDIName(String jndiName)
      Sets the lookup name for the bean on the server.
    • setHomeName

      public void setHomeName(String homeName)
      Sets the name of the class for the home interface (ex. ejb.SalesHome). Contains the findX() methods for querying the databse.
    • setRemoteName

      public void setRemoteName(String remoteName)
      Returns the name of the class for the remote interface (ex. ejb.Sales). Contains the getX() and setX() methods.
    • setSelectedMethodName

      public void setSelectedMethodName(String selectedMethodName)
      Returns the name of the method to be used for querying the database, this is one of the methods contained in the class for the home interface.
    • setSelectedMethodParamVal

      public void setSelectedMethodParamVal(Object[] selectedMethodParamVal)
      Sets the parameters for the selectedMethodName method. The selectedMethodParamVal.length must equal to the number of parameters associated with the selectedMethodName method, and the order in which the parameters appear must also coincide.
    • setEnvironment

      public void setEnvironment(Hashtable properties)
      Sets the environment properties of the bean as a Hashtable. This information is necessary for EspressManager to connect to the EJB. Allowable keys are:

      Property Key
      "APPLET"
      "AUTHORITATIVE"
      "DNS_URL"
      "INITIAL_CONTEXT_FACTORY"
      "LANGUAGE"
      "OBJECT_FACTORIES"
      "PROVIDER_URL"
      "REFERRAL"
      "SECURITY_AUTHENTICATION"
      "SECURITY_CREDENTIALS"
      "SECURITY_PRINCIPAL"
      "SECURITY_PROTOCOL"
      "STATE_FACTORIES"
      "URL_PKG_PREFIXES"


      The most commonly used properties are the INITIAL_CONTEXT_FACTORY and the PROVIDER_URL.