|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.rdbms.JDBCUtils
public class JDBCUtils
Convenience helper for JDBC.
| Constructor Summary | |
|---|---|
JDBCUtils()
|
|
| Method Summary | |
|---|---|
static int |
getJDBCTypeForName(String typeName)
Method to return the type given the "jdbc-type" name. |
static int[] |
getJDBCTypes()
Accessor for the JDBC types. |
static String |
getNameForJDBCType(int jdbcType)
Accessor for a string name of a JDBC Type |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JDBCUtils()
| Method Detail |
|---|
public static final int[] getJDBCTypes()
public static String getNameForJDBCType(int jdbcType)
jdbcType - The JDBC Type
public static int getJDBCTypeForName(String typeName)
typeName - "jdbc-type" name
public static String getSubprotocolForURL(String url)
url - The JDBC URL
public 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 ResultSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||