public static class MappingGenerator.SQLTypeUtil extends Object
| Constructor and Description |
|---|
SQLTypeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Collection |
getCompatibleTypes(int jdbcType)
Returns a collection of compatible jdbc types.
|
static boolean |
hasLength(int jdbcType)
This method returns true if the jdbc type has length
|
static boolean |
hasPrecision(int jdbcType)
This method returns true if the jdbc type has precision.
|
static boolean |
hasScale(int jdbcType)
This method returns true if the jdbc type has scale.
|
static boolean |
isBlob(int jdbcType)
Returns if a given data type is blob type or not.
|
static boolean |
isCharacter(int jdbcType)
Returns if the given data type is character type or not.
|
static boolean |
isNumeric(int jdbcType)
Returns if the given data type is numeric type or not.
|
static boolean |
isTime(int jdbcType)
Returns if a given data type is time type or not.
|
public static boolean isNumeric(int jdbcType)
jdbcType - the type from java.sql.Typestrue if the given type is numeric type;
false otherwisepublic static boolean isCharacter(int jdbcType)
jdbcType - the type from java.sql.Typestrue if the given type is character type;
false otherwisepublic static boolean isBlob(int jdbcType)
jdbcType - the type from java.sql.Typestrue if the give type is blob type;
false otherwisepublic static boolean isTime(int jdbcType)
jdbcType - the type from java.sql.Typestrue if the give type is time type;
false otherwisepublic static Collection getCompatibleTypes(int jdbcType)
jdbcType - the type from java.sql.Typespublic static boolean hasScale(int jdbcType)
jdbcType - a jdbc type from java.sql.Typestrue if the type has scale;
false otherwisepublic static boolean hasPrecision(int jdbcType)
jdbcType - a jdbc type from java.sql.Typestrue if the type has precision;
false otherwisepublic static boolean hasLength(int jdbcType)
jdbcType - a jdbc type from java.sql.Typestrue if the type has length;
false otherwiseCopyright © 2017. All rights reserved.