EspressReport 6.6

quadbase.common.util.internal
Class EJBInfo

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

public class EJBInfo
extends java.lang.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 Summary
static int VERSION
           
 
Constructor Summary
EJBInfo(java.lang.String jndiName, java.lang.String homeName, java.lang.String remoteName, java.lang.String selectedMethodName, java.lang.Object[] selectedMethodParamVal)
          Allocates an EJBInfo that contains information to connect to an entity bean on a server.
EJBInfo(java.lang.String jndiName, java.lang.String homeName, java.lang.String remoteName, java.lang.String selectedMethodName, java.lang.Object[] selectedMethodParamVal, java.util.Hashtable<java.lang.String,java.lang.String> environment)
          Allocates an EJBInfo that contains information to connect to an entity bean on a server.
 
Method Summary
 java.util.Hashtable<java.lang.String,java.lang.String> getEnvironment()
          Returns the environment properties of the bean as a Hashtable.
 java.lang.String getHomeName()
          Returns the name of the class for the home interface (ex.
 java.lang.String getJNDIName()
          Returns the lookup name for the bean on the server.
 java.lang.String getRemoteName()
          Returns the name of the class for the remote interface (ex.
 java.lang.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.
 java.lang.Object[] getSelectedMethodParamVal()
          Returns the parameters for the selectedMethodName method.
 void setEnvironment(java.util.Hashtable properties)
          Sets the environment properties of the bean as a Hashtable.
 void setHomeName(java.lang.String homeName)
          Sets the name of the class for the home interface (ex.
 void setJNDIName(java.lang.String jndiName)
          Sets the lookup name for the bean on the server.
 void setRemoteName(java.lang.String remoteName)
          Returns the name of the class for the remote interface (ex.
 void setSelectedMethodName(java.lang.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.
 void setSelectedMethodParamVal(java.lang.Object[] selectedMethodParamVal)
          Sets the parameters for the selectedMethodName method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final int VERSION
See Also:
Constant Field Values
Constructor Detail

EJBInfo

public EJBInfo(java.lang.String jndiName,
               java.lang.String homeName,
               java.lang.String remoteName,
               java.lang.String selectedMethodName,
               java.lang.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(java.lang.String jndiName,
               java.lang.String homeName,
               java.lang.String remoteName,
               java.lang.String selectedMethodName,
               java.lang.Object[] selectedMethodParamVal,
               java.util.Hashtable<java.lang.String,java.lang.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 Detail

getJNDIName

public java.lang.String getJNDIName()
Returns the lookup name for the bean on the server.


getHomeName

public java.lang.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 java.lang.String getRemoteName()
Returns the name of the class for the remote interface (ex. ejb.Sales). Contains the getX() and setX() methods.


getSelectedMethodName

public java.lang.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 java.lang.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 java.util.Hashtable<java.lang.String,java.lang.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(java.lang.String jndiName)
Sets the lookup name for the bean on the server.


setHomeName

public void setHomeName(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.util.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.


EspressReport 6.6