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 ColumnTypepublic boolean isBoolean()
isBoolean in interface ColumnTypepublic boolean isBinary()
isBinary in interface ColumnTypepublic boolean isNumber()
isNumber in interface ColumnTypepublic boolean isTimeBased()
isTimeBased in interface ColumnTypepublic boolean isLiteral()
isLiteral in interface ColumnTypepublic boolean isLargeObject()
isLargeObject in interface ColumnTypepublic Class<?> getJavaEquivalentClass()
getJavaEquivalentClass in interface ColumnTypepublic SuperColumnType getSuperType()
getSuperType in interface ColumnTypepublic int getJdbcType()
throws IllegalStateException
ColumnTypeTypes class.getJdbcType in interface ColumnTypeTypes
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–2019 The Apache Software Foundation. All rights reserved.