public class EJBInfo
extends java.lang.Object
QbReport
,
this EJBInfo Object can be passed in for connecting to an entity bean, which serves as a Data
source for the QbReport.Modifier and Type | Field and Description |
---|---|
static int |
VERSION |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final int VERSION
public EJBInfo(java.lang.String jndiName, java.lang.String homeName, java.lang.String remoteName, java.lang.String selectedMethodName, java.lang.Object[] selectedMethodParamVal)
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.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)
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" |
public java.lang.String getJNDIName()
public java.lang.String getHomeName()
public java.lang.String getRemoteName()
public java.lang.String getSelectedMethodName()
public java.lang.Object[] getSelectedMethodParamVal()
public java.util.Hashtable<java.lang.String,java.lang.String> getEnvironment()
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" |
public void setJNDIName(java.lang.String jndiName)
public void setHomeName(java.lang.String homeName)
public void setRemoteName(java.lang.String remoteName)
public void setSelectedMethodName(java.lang.String selectedMethodName)
public void setSelectedMethodParamVal(java.lang.Object[] selectedMethodParamVal)
public void setEnvironment(java.util.Hashtable properties)
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" |