public interface AQColumnDescriptor
Modifier and Type | Method and Description |
---|---|
String |
getDataType()
Returns database data type, or null if data type is unknown.
|
Class<?> |
getJavaClass()
Returns the java class object corresponding to the data type.
|
String |
getJavaType()
Returns fully qualified name of the java class corresponding to the data type, or null if unknown.
|
String |
getName()
Returns table column name.
|
int |
getSqlType()
Returns an integer value which corresponds to a generic SQL type identifier defined in
Types . |
boolean |
isBinary()
Returns true if this column data type is binary.
|
boolean |
isBit()
Returns true if this column data type is bit.
|
boolean |
isBoolean()
Returns true if this column data type is boolean.
|
boolean |
isDate()
Returns true if this column data type is compatible with date types.
|
boolean |
isDateTime()
Returns true if this column data type is compatible with datetime types.
|
boolean |
isNumber()
Returns true if this column data type is compatible with numeric types.
|
boolean |
isOther()
Returns true if this column data type is some other kind.
|
boolean |
isText()
Returns true if this column data type is text.
|
boolean |
isTime()
Returns true if this column data type is compatible with time types.
|
void |
setDataType(String type)
Sets database data type.
|
void |
setJavaType(String type)
Sets java type.
|
void |
setSqlType(int type)
Sets generic SQL type identifier.
|
String getName()
String getDataType()
void setDataType(String type)
type
- the data typeString getJavaType()
void setJavaType(String type)
type
- the data typeClass<?> getJavaClass()
Object
class if the type is unknown or is not set.int getSqlType()
Types
.void setSqlType(int type)
type
- One of the integer values defined in Types
.boolean isText()
boolean isNumber()
boolean isDate()
boolean isTime()
boolean isDateTime()
boolean isBinary()
boolean isBoolean()
boolean isBit()
boolean isOther()
Copyright © 2017 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.