public class JDBCUtils extends Object
| Constructor and Description |
|---|
JDBCUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getSubprotocolForURL(String url)
Method to return the "subprotocol" for a JDBC URL.
|
static void |
logWarnings(Connection conn)
Utility to log all warning for the specified Connection.
|
static void |
logWarnings(ResultSet rs)
Utility to log all warning for the specified ResultSet.
|
static void |
logWarnings(SQLWarning warning)
Logs SQL warnings to the common log.
|
static void |
logWarnings(Statement stmt)
Utility to log all warning for the specified Statement.
|
public static String getSubprotocolForURL(String url)
url - The JDBC URLpublic static void logWarnings(SQLWarning warning)
warning - the value returned from getWarnings().public static void logWarnings(Connection conn)
conn - The connection to the datastorepublic static void logWarnings(Statement stmt)
stmt - The statementpublic static void logWarnings(ResultSet rs)
rs - The ResultSetCopyright © 2017. All rights reserved.