com.j256.ormlite.jdbc
Class TypeValMapper

java.lang.Object
  extended by com.j256.ormlite.jdbc.TypeValMapper

public class TypeValMapper
extends Object

Map from SqlType to the constants in the Types class.

Author:
graywatson

Constructor Summary
TypeValMapper()
           
 
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
 

Constructor Detail

TypeValMapper

public TypeValMapper()
Method Detail

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.