|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.api.persistence.mapping.ejb.MappingGenerator.SQLTypeUtil
public static class MappingGenerator.SQLTypeUtil
The contents of this class will eventually be added to SQLTypeUtil in dbmodel. It is an util class which provides methods for jdbc type compatible and jdbc attribute.
| Constructor Summary | |
|---|---|
MappingGenerator.SQLTypeUtil()
|
|
| Method Summary | |
|---|---|
static java.util.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MappingGenerator.SQLTypeUtil()
| Method Detail |
|---|
public static boolean isNumeric(int jdbcType)
jdbcType - the type from java.sql.Types
true if the given type is numeric type;
false otherwisepublic static boolean isCharacter(int jdbcType)
jdbcType - the type from java.sql.Types
true if the given type is character type;
false otherwisepublic static boolean isBlob(int jdbcType)
jdbcType - the type from java.sql.Types
true if the give type is blob type;
false otherwisepublic static boolean isTime(int jdbcType)
jdbcType - the type from java.sql.Types
true if the give type is time type;
false otherwisepublic static java.util.Collection getCompatibleTypes(int jdbcType)
jdbcType - the type from java.sql.Types
public static boolean hasScale(int jdbcType)
jdbcType - a jdbc type from java.sql.Types
true if the type has scale;
false otherwisepublic static boolean hasPrecision(int jdbcType)
jdbcType - a jdbc type from java.sql.Types
true if the type has precision;
false otherwisepublic static boolean hasLength(int jdbcType)
jdbcType - a jdbc type from java.sql.Types
true if the type has length;
false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||