|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.onemind.commons.java.sql.JdbcUtils
JDBC utilities
Field Summary | |
static java.util.Map |
CLASS_TO_TYPE_MAP
map the java classes to jdbc type int * |
Method Summary | |
static MetaData |
getMetaData(java.sql.ResultSetMetaData meta,
java.lang.String name)
return the MetaData |
static MetaData |
getMetaData(java.sql.ResultSet rst,
java.lang.String name)
Get the MetaData from the resultset |
static boolean |
isJdbcType(java.lang.Class c)
Return whether a java type is a jdbc type |
static int |
toJdbcType(java.lang.Class c)
Return the jdbc type given the java type (based on JDBC spec) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.util.Map CLASS_TO_TYPE_MAP
Method Detail |
public static MetaData getMetaData(java.sql.ResultSet rst, java.lang.String name) throws java.sql.SQLException
rst
- the result setname
- the name of metadata to create
java.sql.SQLException
- if there's database problempublic static MetaData getMetaData(java.sql.ResultSetMetaData meta, java.lang.String name) throws java.sql.SQLException
meta
- the resultset metadataname
- the name
java.sql.SQLException
- if there's database problempublic static int toJdbcType(java.lang.Class c)
c
- the java class
public static boolean isJdbcType(java.lang.Class c)
c
- the class
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |