Package quadbase.common.util.internal
Class EJBInfo
java.lang.Object
quadbase.common.util.internal.EJBInfo
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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEJBInfo(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.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. -
Method Summary
Modifier and TypeMethodDescriptionReturns the environment properties of the bean as a Hashtable.Returns the name of the class for the home interface (ex.Returns the lookup name for the bean on the server.Returns the name of the class for the remote interface (ex.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.Object[]Returns the parameters for the selectedMethodName method.voidsetEnvironment(Hashtable properties) Sets the environment properties of the bean as a Hashtable.voidsetHomeName(String homeName) Sets the name of the class for the home interface (ex.voidsetJNDIName(String jndiName) Sets the lookup name for the bean on the server.voidsetRemoteName(String remoteName) Returns the name of the class for the remote interface (ex.voidsetSelectedMethodName(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.voidsetSelectedMethodParamVal(Object[] selectedMethodParamVal) Sets the parameters for the selectedMethodName method.
-
Field Details
-
VERSION
public static final int VERSION- See Also:
-
-
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
Returns the lookup name for the bean on the server. -
getHomeName
Returns the name of the class for the home interface (ex. ejb.SalesHome). Contains the findX() methods for querying the databse. -
getRemoteName
Returns the name of the class for the remote interface (ex. ejb.Sales). Contains the getX() and setX() methods. -
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
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
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
Sets the lookup name for the bean on the server. -
setHomeName
Sets the name of the class for the home interface (ex. ejb.SalesHome). Contains the findX() methods for querying the databse. -
setRemoteName
Returns the name of the class for the remote interface (ex. ejb.Sales). Contains the getX() and setX() methods. -
setSelectedMethodName
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
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
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.
-