Setting the connection information

The following methods are used to set the connection information:

These methods enable users to set the connection information before running a report. You can let the user specify the user ID and the password before running a report to ensure security. Another application of this method is for users to be able to select a different database before running reports, in order to see different report results. Usually in this case, the two databases have the same structure which eases the work of having to build another catalog.

This method may be called as below:

setConnection("jdbc:Oracle:thin:@204.177.148.30:1521:orcl","scott","tiger","oracle.jdbc.driver.OracleDriver");

Parameters