|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.util.JdbcTypesHelper
Helper class centralise all SQL Types operations and make
available JdbcType
inner class implementations.
Constructor Summary | |
JdbcTypesHelper()
|
Method Summary | |
static java.lang.String |
getJdbcTypeAsString(int jdbcType)
Returns a string representation of the given Types value. |
static JdbcType |
getJdbcTypeByName(java.lang.String typeName)
Lookup the JdbcType by name. |
static JdbcType |
getJdbcTypeByReflection(java.lang.String fieldType)
Try to automatically assign a jdbc type for the given java type name. |
static JdbcType |
getJdbcTypeByTypesIndex(java.lang.Integer type)
Return the JdbcType for the given jdbc type . |
static java.lang.Object |
getObjectFromColumn(java.sql.ResultSet rs,
java.lang.Integer jdbcType,
int columnId)
Returns an java object read from the specified ResultSet column. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JdbcTypesHelper()
Method Detail |
public static JdbcType getJdbcTypeByTypesIndex(java.lang.Integer type)
JdbcType
for the given jdbc type
.
public static JdbcType getJdbcTypeByName(java.lang.String typeName)
JdbcType
by name. If name was not found an exception
is thrown.
public static JdbcType getJdbcTypeByReflection(java.lang.String fieldType)
FieldDescriptor.getJdbcType()
public static java.lang.Object getObjectFromColumn(java.sql.ResultSet rs, java.lang.Integer jdbcType, int columnId) throws java.sql.SQLException
java.sql.SQLException
public static java.lang.String getJdbcTypeAsString(int jdbcType)
Types
value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |