com.j256.ormlite.jdbc
Class TypeValMapper
java.lang.Object
com.j256.ormlite.jdbc.TypeValMapper
public class TypeValMapper
- extends Object
Map from SqlType
to the constants in the Types
class.
- Author:
- graywatson
Method Summary |
static com.j256.ormlite.field.SqlType |
getSqlTypeForTypeVal(int typeVal)
Returns the SqlType value associated with the typeVal argument. |
static int |
getTypeValForSqlType(com.j256.ormlite.field.SqlType sqlType)
Returns the primary type value associated with the SqlType argument. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeValMapper
public TypeValMapper()
getTypeValForSqlType
public static int getTypeValForSqlType(com.j256.ormlite.field.SqlType sqlType)
throws SQLException
- Returns the primary type value associated with the SqlType argument.
- Throws:
SQLException
getSqlTypeForTypeVal
public static com.j256.ormlite.field.SqlType getSqlTypeForTypeVal(int typeVal)
- Returns the SqlType value associated with the typeVal argument. Can be slow-er.
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.