|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ColumnType>
org.eobjects.metamodel.schema.ColumnType
public enum ColumnType
Represents the data-type of columns. Most of the elements in this enum are
based on the JDBC Types class, but with a few additions.
| Enum Constant Summary | |
|---|---|
ARRAY
|
|
BIGINT
|
|
BINARY
Binary types |
|
BIT
Booleans |
|
BLOB
|
|
BOOLEAN
|
|
CHAR
Literal |
|
CLOB
|
|
DATALINK
|
|
DATE
Time based |
|
DECIMAL
|
|
DISTINCT
|
|
DOUBLE
|
|
FLOAT
|
|
INTEGER
|
|
JAVA_OBJECT
|
|
LIST
Additional types (added by MetaModel for non-JDBC datastores) |
|
LONGNVARCHAR
|
|
LONGVARBINARY
|
|
LONGVARCHAR
|
|
MAP
|
|
NCHAR
|
|
NCLOB
|
|
NULL
Other types (as defined in Types). |
|
NUMERIC
|
|
NVARCHAR
|
|
OTHER
|
|
REAL
|
|
REF
|
|
ROWID
|
|
SMALLINT
|
|
SQLXML
|
|
STRUCT
|
|
TIME
|
|
TIMESTAMP
|
|
TINYINT
Numbers |
|
VARBINARY
|
|
VARCHAR
|
|
| Method Summary | |
|---|---|
static ColumnType |
convertColumnType(Class<?> cls)
Finds the ColumnType enum corresponding to the incoming Java class. |
static ColumnType |
convertColumnType(int jdbcType)
Finds the ColumnType enum corresponding to the incoming JDBC type-constant |
Comparator<Object> |
getComparator()
|
Class<?> |
getJavaEquivalentClass()
|
int |
getJdbcType()
Gets the JDBC type as per the Types class. |
SuperColumnType |
getSuperType()
|
boolean |
isBinary()
|
boolean |
isBoolean()
|
boolean |
isLargeObject()
|
boolean |
isLiteral()
|
boolean |
isNumber()
|
boolean |
isTimeBased()
|
static ColumnType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ColumnType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ColumnType CHAR
public static final ColumnType VARCHAR
public static final ColumnType LONGVARCHAR
public static final ColumnType CLOB
public static final ColumnType NCHAR
public static final ColumnType NVARCHAR
public static final ColumnType LONGNVARCHAR
public static final ColumnType NCLOB
public static final ColumnType TINYINT
public static final ColumnType SMALLINT
public static final ColumnType INTEGER
public static final ColumnType BIGINT
public static final ColumnType FLOAT
public static final ColumnType REAL
public static final ColumnType DOUBLE
public static final ColumnType NUMERIC
public static final ColumnType DECIMAL
public static final ColumnType DATE
public static final ColumnType TIME
public static final ColumnType TIMESTAMP
public static final ColumnType BIT
public static final ColumnType BOOLEAN
public static final ColumnType BINARY
public static final ColumnType VARBINARY
public static final ColumnType LONGVARBINARY
public static final ColumnType BLOB
public static final ColumnType NULL
Types).
public static final ColumnType OTHER
public static final ColumnType JAVA_OBJECT
public static final ColumnType DISTINCT
public static final ColumnType STRUCT
public static final ColumnType ARRAY
public static final ColumnType REF
public static final ColumnType DATALINK
public static final ColumnType ROWID
public static final ColumnType SQLXML
public static final ColumnType LIST
public static final ColumnType MAP
| Method Detail |
|---|
public static ColumnType[] values()
for (ColumnType c : ColumnType.values()) System.out.println(c);
public static ColumnType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic Comparator<Object> getComparator()
public boolean isBoolean()
public boolean isBinary()
public boolean isNumber()
public boolean isTimeBased()
public boolean isLiteral()
public boolean isLargeObject()
public Class<?> getJavaEquivalentClass()
public SuperColumnType getSuperType()
public static ColumnType convertColumnType(int jdbcType)
public int getJdbcType()
throws IllegalStateException
Types class.
Types
class.
IllegalStateException - in case getting the JDBC type was unsuccesful.public static ColumnType convertColumnType(Class<?> cls)
cls -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||