org.hsqldb.util
public class RCData extends Object
Field Summary | |
---|---|
static String | DEFAULT_JDBC_DRIVER |
Constructor Summary | |
---|---|
RCData(File file, String dbKey)
Creates a RCDataObject by looking up the given key in the
given authentication file.
| |
RCData(String id, String url, String username, String password, String driver, String charset, String truststore) Creates a new |
Method Summary | |
---|---|
Connection | getConnection()
Gets a JDBC Connection using the data of this RCData object.
|
Connection | getConnection(String curDriver, String curCharset, String curTrustStore)
Gets a JDBC Connection using the data of this RCData object with
specified override elements
|
void | report()
Just for testing and debugging. |
Parameters: dbKey Key to look up in the file. file File containing the authentication information.
Creates a new RCData
object.
The parameters driver, charset, and truststore are optional. Setting
these parameters to NULL
will set them to their default
values.
Parameters: id The identifier for these connection settings url The URL of the database to connect to username The username to log in as password The password of the username driver The JDBC driver to use charset The character set to use truststore The trust store to use
Throws: Exception if the a non-optional parameter is set to NULL
Returns: New JDBC Connection
Returns: New JDBC Connection