Save This Page
Home » geronimo-2.2-source-release » org.apache.geronimo.console.internaldb » [javadoc | source]
org.apache.geronimo.console.internaldb
public class: DerbyConnectionUtil [javadoc | source]
java.lang.Object
   org.apache.geronimo.console.internaldb.DerbyConnectionUtil
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.
Field Summary
public static final  String CREATE_DB_PROP     
public static final  String SHUTDOWN_DB_PROP     
Method from org.apache.geronimo.console.internaldb.DerbyConnectionUtil Summary:
getDataSource,   getDataSourceConnection,   getDataSourceForDataBaseName,   getDerbyConnection,   getDerbyConnection,   getDerbyHome,   getSystemDBConnection
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.console.internaldb.DerbyConnectionUtil Detail:
 public static DataSource getDataSource(String dsName) 
    Get the datasource if dbName is == SYSTEM_DB, otherwise finds the datasource among JCAManagedConnectionFactories, otherwise returns null.
 public static Connection getDataSourceConnection(String dataSourceName) throws SQLException 
    Get a connaction to a named datasource
 public static DataSource getDataSourceForDataBaseName(String dbName) 
    Get the datasource if dbName is == SYSTEM_DB, otherwise finds the datasource among JCAManagedConnectionFactories, otherwise returns null.
 public static Connection getDerbyConnection(String dbName) throws SQLException 
 public static Connection getDerbyConnection(String dbName,
    String properties) throws SQLException 
    Get a connection to derby.
 public static String getDerbyHome() 
    Get the Derby home directory path.
 public static Connection getSystemDBConnection() throws SQLException 
    Get a connection to the SystemDatabase.