org.hsqldb.util

Class RCData


public class RCData
extends java.lang.Object

All the info we need to connect up to a database.
Author:
Blaine Simpson unsaved@users

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.

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.

Field Details

DEFAULT_JDBC_DRIVER

public static final String DEFAULT_JDBC_DRIVER

Constructor Details

RCData

public RCData(File file,
              String dbKey)
            throws Exception
Creates a RCDataObject by looking up the given key in the given authentication file.
Parameters:

Method Details

getConnection

public Connection getConnection()
            throws ClassNotFoundException,
                   InstantiationException,
                   IllegalAccessException,
                   SQLException
Gets a JDBC Connection using the data of this RCData object.
Returns:
New JDBC Connection

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
Returns:
New JDBC Connection

report

public void report()
Just for testing and debugging.

Copyright B) 2001 - 2005 HSQL Development Group. All Rights Reserved.