T
- The Java type associated with this SQL data typepublic interface DataType<T> extends Serializable
Modifier and Type | Method and Description |
---|---|
<A extends ArrayRecord<T>> |
asArrayDataType(Class<A> arrayDataType)
Retrieve the data type for an Oracle-style ARRAY of this data type
|
<U> DataType<U> |
asConvertedDataType(Converter<? super T,U> converter)
Retrieve the data type for a given converter
|
<E extends EnumType> |
asEnumDataType(Class<E> enumDataType)
Retrieve the data type for a given enum data type
|
<M extends MasterDataType<T>> |
asMasterDataType(Class<M> masterDataType)
Deprecated.
- 2.5.0 [#1741] - This feature will be removed as of jOOQ 3.0
|
List<T> |
convert(Collection<?> objects)
Convert an arbitrary set of objects into
<T> |
T[] |
convert(Object... objects)
Convert an arbitrary set of objects into
<T> |
T |
convert(Object object)
Convert an arbitrary object into
<T> |
DataType<T[]> |
getArrayDataType()
Retrieve the data type for an ARRAY of this data type
|
Class<? extends T[]> |
getArrayType()
Retrieve the Java type associated with ARRAYs of this data type
|
String |
getCastTypeName()
Retrieve the dialect-specific type name associated with this data type
used for casting
This is useful for some dialects that have specialised type names for
cast expressions.
|
String |
getCastTypeName(Configuration configuration)
Retrieve the dialect-specific type name associated with this data type
used for casting
This is useful for some dialects that have specialised type names for
cast expressions.
|
String |
getCastTypeName(Configuration configuration,
int length)
Retrieve the dialect-specific type name associated with this data type
used for casting
This is useful for some dialects that have specialised type names for
cast expressions.
|
String |
getCastTypeName(Configuration configuration,
int precision,
int scale)
Retrieve the dialect-specific type name associated with this data type
used for casting
This is useful for some dialects that have specialised type names for
cast expressions.
|
DataType<T> |
getDataType(Configuration configuration)
The dialect-specific data type representing this data type.
|
SQLDialect |
getDialect()
Retrieve the underlying
SQLDialect |
SQLDataType<T> |
getSQLDataType()
Get the standard SQL data type of this (dialect-specific) data type if
available.
|
int |
getSQLType()
Get JDBC
Types value |
Class<? extends T> |
getType()
Retrieve the Java type associated with this data type
|
Class<?> |
getType(int precision,
int scale)
Retrieve a Java type associated with this data type and precision/scale
|
String |
getTypeName()
Retrieve the dialect-specific type name associated with this data type
|
String |
getTypeName(Configuration configuration)
Retrieve the dialect-specific type name associated with this data type
|
boolean |
isArray()
Whether this data type is an array type.
|
boolean |
isBinary()
Whether this data type is any binary type.
|
boolean |
isDateTime()
Whether this data type is any date or time type.
|
boolean |
isInterval()
Whether this data type is any interval type.
|
boolean |
isLob()
Whether this data type is best deserialised as a
LOB . |
boolean |
isNumeric()
Whether this data type is any numeric data type.
|
boolean |
isString()
Whether this data type is any character data type.
|
boolean |
isTemporal()
Whether this data type is any date or time type.
|
SQLDataType<T> getSQLDataType()
DataType<T> getDataType(Configuration configuration)
int getSQLType()
Types
valueClass<?> getType(int precision, int scale)
Class<? extends T[]> getArrayType()
DataType<T[]> getArrayDataType()
<A extends ArrayRecord<T>> DataType<A> asArrayDataType(Class<A> arrayDataType)
@Deprecated <M extends MasterDataType<T>> DataType<M> asMasterDataType(Class<M> masterDataType)
<E extends EnumType> DataType<E> asEnumDataType(Class<E> enumDataType)
<U> DataType<U> asConvertedDataType(Converter<? super T,U> converter)
String getTypeName()
String getTypeName(Configuration configuration)
String getCastTypeName()
This is useful for some dialects that have specialised type names for cast expressions. Other dialects require type-length binding when casting, (e.g. VARCHAR(32767))
String getCastTypeName(Configuration configuration)
This is useful for some dialects that have specialised type names for cast expressions. Other dialects require type-length binding when casting, (e.g. VARCHAR(32767))
String getCastTypeName(Configuration configuration, int length)
This is useful for some dialects that have specialised type names for cast expressions. Other dialects require type-length binding when casting, (e.g. VARCHAR(20))
String getCastTypeName(Configuration configuration, int precision, int scale)
This is useful for some dialects that have specialised type names for cast expressions. Other dialects require type-length binding when casting, (e.g. DECIMAL(20,5))
SQLDialect getDialect()
SQLDialect
T convert(Object object)
<T>
object
- The object to be convertedDataTypeException
- If conversion fails.T[] convert(Object... objects)
<T>
objects
- The objects to be convertedDataTypeException
- If conversion fails.List<T> convert(Collection<?> objects)
<T>
objects
- The objects to be convertedDataTypeException
- If conversion fails.boolean isNumeric()
This applies to any of these types:
boolean isString()
This applies to any of these types:
boolean isDateTime()
This applies to any of these types.
boolean isTemporal()
This applies to any of these types.
This is a combination of isDateTime()
or isInterval()
boolean isInterval()
This applies to any of these types.
boolean isBinary()
This applies to any of these types.
boolean isLob()
LOB
.
This applies to any of these types.
boolean isArray()
Copyright © 2013. All Rights Reserved.