类 JdbcTypeJavaClassMappings
- java.lang.Object
-
- org.hibernate.type.descriptor.sql.JdbcTypeJavaClassMappings
-
public class JdbcTypeJavaClassMappings extends Object
Maintains the JDBC recommended mappings for JDBC type-code to/from Java Class as defined in _Appendix B : Data Type Conversion Tables_ of the _JDBC 4.0 Specification_ Eventually, the plan is to haveDialectandDatabaseMetaData.getTypeInfo()contribute this information.- 作者:
- Steve Ebersole
-
-
字段概要
字段 修饰符和类型 字段 说明 static JdbcTypeJavaClassMappingsINSTANCE
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ClassdetermineJavaClassForJdbcTypeCode(int typeCode)ClassdetermineJavaClassForJdbcTypeCode(Integer typeCode)For the given JDBC type, determine the JDBC recommended Java type.intdetermineJdbcTypeCodeForJavaClass(Class cls)For the given Java type, determine the JDBC recommended JDBC type.
-
-
-
字段详细资料
-
INSTANCE
public static final JdbcTypeJavaClassMappings INSTANCE
-
-
方法详细资料
-
determineJdbcTypeCodeForJavaClass
public int determineJdbcTypeCodeForJavaClass(Class cls)
For the given Java type, determine the JDBC recommended JDBC type. This includes the mappings defined in TABLE B-2 - Java Types Mapped to JDBC Types as well as some additional "common sense" mappings for things like BigDecimal, BigInteger, etc.
-
determineJavaClassForJdbcTypeCode
public Class determineJavaClassForJdbcTypeCode(Integer typeCode)
For the given JDBC type, determine the JDBC recommended Java type. These mappings are defined by TABLE B-1 - JDBC Types Mapped to Java Types
-
determineJavaClassForJdbcTypeCode
public Class determineJavaClassForJdbcTypeCode(int typeCode)
-
-