public class DatabaseManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.util.logging.Logger |
log |
Modifier and Type | Method and Description |
---|---|
static void |
closeDatabase(javax.sql.DataSource ds) |
static javax.sql.DataSource |
findDatabase(java.lang.String url)
Returns a matching dbpool.
|
static javax.sql.DataSource |
findDatabase(java.lang.String url,
java.lang.String driver)
Returns a matching dbpool.
|
static javax.sql.DataSource |
findDatabase(java.lang.String id,
java.lang.String url,
java.lang.String driver)
Returns a matching dbpool.
|
static java.lang.String |
findDriverByUrl(java.lang.String url) |
public static javax.sql.DataSource findDatabase(java.lang.String url) throws java.sql.SQLException
java.sql.SQLException
public static javax.sql.DataSource findDatabase(java.lang.String url, java.lang.String driver) throws java.sql.SQLException
java.sql.SQLException
public static javax.sql.DataSource findDatabase(java.lang.String id, java.lang.String url, java.lang.String driver) throws java.sql.SQLException
java.sql.SQLException
public static void closeDatabase(javax.sql.DataSource ds)
public static java.lang.String findDriverByUrl(java.lang.String url)