Package org.hibernate.type.descriptor
Class JdbcTypeNameMapper
- java.lang.Object
-
- org.hibernate.type.descriptor.JdbcTypeNameMapper
-
public final class JdbcTypeNameMapper extends java.lang.Object(Badly named) helper for dealing with standard JDBC types as defined byTypes
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetTypeName(java.lang.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(java.lang.Integer typeCode)Same as call toisStandardTypeCode(int)
-
-
-
Method Detail
-
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.- Parameters:
typeCode- The JDBC type code to check- Returns:
trueto indicate the type code is a standard type code;falseotherwise.
-
isStandardTypeCode
public static boolean isStandardTypeCode(java.lang.Integer typeCode)
Same as call toisStandardTypeCode(int)- See Also:
isStandardTypeCode(int)
-
getTypeName
public static java.lang.String getTypeName(java.lang.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...- Parameters:
typeCode- The type code to find the name for.- Returns:
- The type name.
-
-