public interface BeanDataSourceManager
databaseClassName
=com.inet.report.DatabaseBeanservletPath
=http://<server>:<port>/<context>/TransferServletbeanDataSourceManager
=<class name of the BeanDataSourceManager implementation>Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_DATABASECLASS
The name of the property specifying the database class to be used for
querying the data for a report.
|
static java.lang.String |
PROPERTY_MANAGERCLASS
Defines the name of the property specifying the class name of the
BeanDataSourceManager implementation class inside the application
server. |
static java.lang.String |
PROPERTY_SERVLETPATH
Defines the name of the property specifying the servlet path to the
TransferServlet which is used to communicate with the application server.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
This method gives the BeanDataSourceManager an opportunity
to clean up any resources that are being held.
|
java.lang.String[] |
getAllBeanClassNames(java.lang.String user,
java.lang.String password)
Returns the class names of the Java Beans whose data can be requested.
|
java.util.List |
getBeanData(java.lang.String beanClassName,
java.lang.String user,
java.lang.String password)
Returns a list of Java Beans of the supplied type.
|
java.util.List |
getBeanData(java.lang.String beanClassName,
java.lang.String param,
java.lang.String user,
java.lang.String password)
Returns a list of Java Beans of the supplied type.
|
static final java.lang.String PROPERTY_DATABASECLASS
static final java.lang.String PROPERTY_SERVLETPATH
static final java.lang.String PROPERTY_MANAGERCLASS
BeanDataSourceManager
implementation class inside the application
server.java.lang.String[] getAllBeanClassNames(java.lang.String user, java.lang.String password) throws TransferServletException
serializable
.user
- The user who wants to connect to this bean datasource.password
- The password of the user who wants to connect to this
datasource.TransferServletException
- If the call of this method was not successful. This can be the
case if the supplied user or password is invalid or if another exception
occurred which should be forwarded to i-net Clear Reports.java.util.List getBeanData(java.lang.String beanClassName, java.lang.String user, java.lang.String password) throws TransferServletException
beanClassName
- The package qualified class name of the Java Bean to
return the data for.user
- The user who wants to connect to this bean datasource.password
- The password of the user who wants to connect to this
datasource.TransferServletException
- If the call of this method was not successful. This can be the
case if the supplied user or password is invalid or if another exception
occurred which should be forwarded to i-net Clear Reports.java.util.List getBeanData(java.lang.String beanClassName, java.lang.String param, java.lang.String user, java.lang.String password) throws TransferServletException
beanClassName
- The package qualified class name of the Java Bean to
return the data for.param
- A parameter which is provided by the report and can e.g. be used
as filter.user
- The user who wants to connect to this bean datasource.password
- The password of the user who wants to connect to this
datasource.TransferServletException
- If the call of this method was not successful. This can be the
case if the supplied user or password is invalid or if another exception
occurred which should be forwarded to i-net Clear Reports.void destroy()
Copyright © 1999-2020 by i-net software GmbH