| java.lang.Object org.apache.geronimo.console.internaldb.DerbyConnectionUtil
DerbyConnectionUtil | public class DerbyConnectionUtil (Code) | | A static class to handle retreiving connections. This class is built to
handle lookups to the SystemDatabase as a special case. If a connection is
requested for the SystemDatabase this class gets a DataSource from an admin
object registered in the geronimo kernel otherwise the DataSource is looked
up via JNDI.
version: $Rev: 570429 $ $Date: 2007-08-28 06:55:02 -0700 (Tue, 28 Aug 2007) $ |
CREATE_DB_PROP | final public static String CREATE_DB_PROP(Code) | | |
SHUTDOWN_DB_PROP | final public static String SHUTDOWN_DB_PROP(Code) | | |
getDataSource | public static DataSource getDataSource(String dbName)(Code) | | Get the datasource if dbName is == SYSTEM_DB, otherwise returns null.
Parameters: dbName - datasource |
getDerbyConnection | public static Connection getDerbyConnection(String dbName, String properties) throws SQLException(Code) | | Get a connection to derby.
Parameters: dbName - the name of the database to connect to. Parameters: properties - the properties to pass to the connection string. connection |
getDerbyHome | public static String getDerbyHome()(Code) | | Get the Derby home directory path.
|
|
|