org.hsqldb.util
Class RCData
public class RCData
extends java.lang.Object
All the info we need to connect up to a database.
- Blaine Simpson unsaved@users
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
RCData object.
|
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.
|
DEFAULT_JDBC_DRIVER
public static final String DEFAULT_JDBC_DRIVER
RCData
public RCData(File file,
String dbKey)
throws Exception
Creates a RCDataObject by looking up the given key in the
given authentication file.
file
- File containing the authentication information.dbKey
- Key to look up in the file.
RCData
public RCData(String id,
String url,
String username,
String password,
String driver,
String charset,
String truststore)
throws Exception
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.
id
- The identifier for these connection settingsurl
- The URL of the database to connect tousername
- The username to log in aspassword
- The password of the usernamedriver
- The JDBC driver to usecharset
- The character set to usetruststore
- The trust store to use
getConnection
public Connection getConnection()
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException,
SQLException
Gets a JDBC Connection using the data of this RCData object.
getConnection
public Connection getConnection(String curDriver,
String curCharset,
String curTrustStore)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException,
SQLException
Gets a JDBC Connection using the data of this RCData object with
specified override elements
report
public void report()
Just for testing and debugging.
Copyright B) 2001 - 2005 HSQL Development Group. All Rights Reserved.