|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hsqldb.util.RCData
public class RCData
All the info we need to connect up to a database.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_JDBC_DRIVER
|
Constructor Summary | |
---|---|
RCData(java.io.File file,
java.lang.String dbKey)
Creates a RCDataObject by looking up the given key in the given authentication file. |
|
RCData(java.lang.String id,
java.lang.String url,
java.lang.String username,
java.lang.String password,
java.lang.String driver,
java.lang.String charset,
java.lang.String truststore)
Creates a new RCData object. |
Method Summary | |
---|---|
java.sql.Connection |
getConnection()
Gets a JDBC Connection using the data of this RCData object. |
java.sql.Connection |
getConnection(java.lang.String curDriver,
java.lang.String curCharset,
java.lang.String curTrustStore)
Gets a JDBC Connection using the data of this RCData object with specified override elements |
void |
report()
Just for testing and debugging. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_JDBC_DRIVER
Constructor Detail |
---|
public RCData(java.io.File file, java.lang.String dbKey) throws java.lang.Exception
dbKey
- Key to look up in the file.file
- File containing the authentication information.
java.lang.Exception
public RCData(java.lang.String id, java.lang.String url, java.lang.String username, java.lang.String password, java.lang.String driver, java.lang.String charset, java.lang.String truststore) throws java.lang.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
java.lang.Exception
- if the a non-optional parameter is set to NULL
Method Detail |
---|
public void report()
public java.sql.Connection getConnection() throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.sql.SQLException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.sql.SQLException
public java.sql.Connection getConnection(java.lang.String curDriver, java.lang.String curCharset, java.lang.String curTrustStore) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.sql.SQLException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |