public class ColumnTypeImpl extends Object implements ColumnType
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
logger |
ARRAY, BIGINT, BINARY, BIT, BLOB, BOOLEAN, CHAR, CLOB, DATALINK, DATE, DECIMAL, DISTINCT, DOUBLE, FLOAT, INET, INTEGER, JAVA_OBJECT, LIST, LONGNVARCHAR, LONGVARBINARY, LONGVARCHAR, MAP, NCHAR, NCLOB, NULL, NUMBER, NUMERIC, NVARCHAR, OTHER, REAL, REF, ROWID, SET, SMALLINT, SQLXML, STRING, STRUCT, TIME, TIMESTAMP, TINYINT, UUID, VARBINARY, VARCHAR
Constructor and Description |
---|
ColumnTypeImpl(String name,
SuperColumnType superColumnType) |
ColumnTypeImpl(String name,
SuperColumnType superColumnType,
Class<?> javaType) |
ColumnTypeImpl(String name,
SuperColumnType superColumnType,
Class<?> javaType,
boolean largeObject) |
Modifier and Type | Method and Description |
---|---|
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. |
String |
getName() |
SuperColumnType |
getSuperType() |
boolean |
isBinary() |
boolean |
isBoolean() |
boolean |
isLargeObject() |
boolean |
isLiteral() |
boolean |
isNumber() |
boolean |
isTimeBased() |
String |
toString() |
static ColumnType |
valueOf(String fieldName) |
public ColumnTypeImpl(String name, SuperColumnType superColumnType)
public ColumnTypeImpl(String name, SuperColumnType superColumnType, Class<?> javaType)
public ColumnTypeImpl(String name, SuperColumnType superColumnType, Class<?> javaType, boolean largeObject)
public Comparator<Object> getComparator()
getComparator
in interface ColumnType
public boolean isBoolean()
isBoolean
in interface ColumnType
public boolean isBinary()
isBinary
in interface ColumnType
public boolean isNumber()
isNumber
in interface ColumnType
public boolean isTimeBased()
isTimeBased
in interface ColumnType
public boolean isLiteral()
isLiteral
in interface ColumnType
public boolean isLargeObject()
isLargeObject
in interface ColumnType
public Class<?> getJavaEquivalentClass()
getJavaEquivalentClass
in interface ColumnType
public SuperColumnType getSuperType()
getSuperType
in interface ColumnType
public int getJdbcType() throws IllegalStateException
ColumnType
Types
class.getJdbcType
in interface ColumnType
Types
class.IllegalStateException
- in case getting the JDBC type was unsuccesful.public static ColumnType convertColumnType(int jdbcType)
public static ColumnType convertColumnType(Class<?> cls)
cls
- public static ColumnType valueOf(String fieldName)
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.