|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.db.JDBCUtils
public class JDBCUtils
Various JDBC related utility methods
Field Summary | |
---|---|
static String |
JDBC_CONFIGURATIONS
|
static String |
JDBC_CONTEXT
|
Constructor Summary | |
---|---|
JDBCUtils()
|
Method Summary | |
---|---|
static void |
closeQuietly(Connection conn)
|
static void |
closeQuietly(ResultSet rs)
|
static void |
closeQuietly(ResultSet rs,
Statement stmt,
Connection conn)
|
static void |
closeQuietly(Statement stmt)
|
static void |
closeQuietly(Statement stmt,
Connection conn)
|
JDBCConfiguration |
getDatabaseConfiguration(DatabaseType type)
Given a database type, return the corresponding JDBC configuration |
JDBCConfiguration |
getDatabaseConfiguration(String url)
Given a JDBC url, attempt to locate the corresponding JDBCConfig object |
String |
getDatabaseName(String url)
Given a JDBC connection URL, extract only the database name. |
String |
getServerUrl(String url)
Given a JDBC connection URL, generate a new connection URL to connect directly to the database server itself (ie: no database specified). |
static void |
rollbackQuietly(Connection conn)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String JDBC_CONTEXT
public static final String JDBC_CONFIGURATIONS
Constructor Detail |
---|
public JDBCUtils()
Method Detail |
---|
public JDBCConfiguration getDatabaseConfiguration(DatabaseType type)
public JDBCConfiguration getDatabaseConfiguration(String url)
url
-
public String getDatabaseName(String url)
url
- a JDBC connection URL
public String getServerUrl(String url)
url
- a JDBC connection URL
public static void closeQuietly(ResultSet rs, Statement stmt, Connection conn)
public static void closeQuietly(Statement stmt, Connection conn)
public static void closeQuietly(ResultSet rs)
public static void closeQuietly(Statement stmt)
public static void closeQuietly(Connection conn)
public static void rollbackQuietly(Connection conn)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |