public class DataTypes
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static ArrayType |
BooleanArrayType
Boolean Array data type.
|
static ObjectType |
BooleanObjectType
Boolean Object data type.
|
static BooleanType |
BooleanType
Boolean data type.
|
static ArrayType |
ByteArrayType
Byte Array data type.
|
static ObjectType |
ByteObjectType
Byte Object data type.
|
static ByteType |
ByteType
Byte data type.
|
static ArrayType |
CharArrayType
Char Array data type.
|
static ObjectType |
CharObjectType
Char Object data type.
|
static CharType |
CharType
Char data type.
|
static DateTimeType |
DateTimeType
DateTime data type with ISO format.
|
static DateType |
DateType
Date data type with ISO format.
|
static DecimalType |
DecimalType
Decimal data type.
|
static ArrayType |
DoubleArrayType
Double Array data type.
|
static ObjectType |
DoubleObjectType
Double Object data type.
|
static DoubleType |
DoubleType
Double data type.
|
static ArrayType |
FloatArrayType
Float Array data type.
|
static ObjectType |
FloatObjectType
Float Object data type.
|
static FloatType |
FloatType
Float data type.
|
static ArrayType |
IntegerArrayType
Integer Array data type.
|
static ObjectType |
IntegerObjectType
Integer Object data type.
|
static IntegerType |
IntegerType
Integer data type.
|
static ArrayType |
LongArrayType
Long Array data type.
|
static ObjectType |
LongObjectType
Long Object data type.
|
static LongType |
LongType
Long data type.
|
static ObjectType |
ObjectType
Plain Object data type.
|
static ArrayType |
ShortArrayType
Short Array data type.
|
static ObjectType |
ShortObjectType
Short Object data type.
|
static ShortType |
ShortType
Short data type.
|
static StringType |
StringType
String data type.
|
static TimeType |
TimeType
Time data type with ISO format.
|
| Constructor and Description |
|---|
DataTypes() |
| Modifier and Type | Method and Description |
|---|---|
static ArrayType |
array(DataType type)
Creates an array data type.
|
static DateType |
date(java.lang.String pattern)
Date data type with customized format.
|
static DateTimeType |
datetime(java.lang.String pattern)
DateTime data type with customized format.
|
static DataType |
object(java.lang.Class clazz)
Creates an object data type of a given class.
|
static StructType |
struct(java.util.List<StructField> fields)
Creates a struct data type.
|
static StructType |
struct(java.sql.ResultSet rs)
Creates a struct data type from JDBC result set meta data.
|
static StructType |
struct(java.sql.ResultSetMetaData meta,
java.lang.String dbms)
Creates a struct data type from JDBC result set meta data.
|
static StructType |
struct(StructField... fields)
Creates a struct data type.
|
static TimeType |
time(java.lang.String pattern)
ime data type with customized format.
|
public static BooleanType BooleanType
public static CharType CharType
public static ByteType ByteType
public static ShortType ShortType
public static IntegerType IntegerType
public static LongType LongType
public static FloatType FloatType
public static DoubleType DoubleType
public static DecimalType DecimalType
public static StringType StringType
public static DateType DateType
public static DateTimeType DateTimeType
public static TimeType TimeType
public static ObjectType ObjectType
public static ObjectType BooleanObjectType
public static ObjectType CharObjectType
public static ObjectType ByteObjectType
public static ObjectType ShortObjectType
public static ObjectType IntegerObjectType
public static ObjectType LongObjectType
public static ObjectType FloatObjectType
public static ObjectType DoubleObjectType
public static ArrayType BooleanArrayType
public static ArrayType CharArrayType
public static ArrayType ByteArrayType
public static ArrayType ShortArrayType
public static ArrayType IntegerArrayType
public static ArrayType LongArrayType
public static ArrayType FloatArrayType
public static ArrayType DoubleArrayType
public static DateType date(java.lang.String pattern)
public static TimeType time(java.lang.String pattern)
public static DateTimeType datetime(java.lang.String pattern)
public static DataType object(java.lang.Class clazz)
public static StructType struct(StructField... fields)
public static StructType struct(java.util.List<StructField> fields)
public static StructType struct(java.sql.ResultSet rs) throws java.sql.SQLException
java.sql.SQLExceptionpublic static StructType struct(java.sql.ResultSetMetaData meta, java.lang.String dbms) throws java.sql.SQLException
java.sql.SQLException