类 JdbcTypeNameMapper
- java.lang.Object
-
- org.hibernate.type.descriptor.JdbcTypeNameMapper
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static StringgetTypeName(Integer typeCode)Get the type name as in the static field names defined onTypes.static booleanisStandardTypeCode(int typeCode)Determine whether the given JDBC type code represents a standard JDBC type ("standard" being those defined onTypes).static booleanisStandardTypeCode(Integer typeCode)Same as call toisStandardTypeCode(int)
-
-
-
方法详细资料
-
isStandardTypeCode
public static boolean isStandardTypeCode(int typeCode)
Determine whether the given JDBC type code represents a standard JDBC type ("standard" being those defined onTypes). NOTE :Types.OTHERis also "filtered out" as being non-standard.- 参数:
typeCode- The JDBC type code to check- 返回:
trueto indicate the type code is a standard type code;falseotherwise.
-
isStandardTypeCode
public static boolean isStandardTypeCode(Integer typeCode)
Same as call toisStandardTypeCode(int)- 另请参阅:
isStandardTypeCode(int)
-
getTypeName
public static String getTypeName(Integer typeCode)
Get the type name as in the static field names defined onTypes. If a type code is not recognized, it is reported asUNKNOWN(?)where '?' is replace with the given type code. Intended as useful for logging purposes...- 参数:
typeCode- The type code to find the name for.- 返回:
- The type name.
-
-