public final class FieldTypeHelper extends Object
This class is for JOOQ INTERNAL USE only. Do not reference directly
Modifier and Type | Method and Description |
---|---|
static Class<?> |
getClass(int sqlType,
int precision,
int scale) |
static <T> DataType<T> |
getDataType(SQLDialect dialect,
Class<? extends T> type) |
static DataType<?> |
getDialectDataType(SQLDialect dialect,
String t,
int p,
int s)
Convert a type name (using precision and scale) into a Java class
|
static Class<?> |
getDialectJavaType(SQLDialect dialect,
String t,
int p,
int s)
Convert a type name (using precision and scale) into a Java class
|
static <T> T |
getFromSQLInput(Configuration configuration,
SQLInput stream,
Field<T> field) |
static <T> T |
getFromStatement(ExecuteContext ctx,
Class<? extends T> type,
int index) |
static Map<String,Class<?>> |
getTypeMapping(Class<?> udtType)
Deprecated.
- 2.3.0 - Do not reuse this method
|
static String |
normalise(String typeName) |
static <T> void |
writeToSQLOutput(SQLOutput stream,
Class<? extends T> type,
T value)
Deprecated.
- 2.3.0 - Do not reuse this method
|
static <T> void |
writeToSQLOutput(SQLOutput stream,
Field<T> field,
T value) |
public static <T> T getFromSQLInput(Configuration configuration, SQLInput stream, Field<T> field) throws SQLException
SQLException
public static <T> void writeToSQLOutput(SQLOutput stream, Field<T> field, T value) throws SQLException
SQLException
@Deprecated public static <T> void writeToSQLOutput(SQLOutput stream, Class<? extends T> type, T value) throws SQLException
SQLException
@Deprecated public static Map<String,Class<?>> getTypeMapping(Class<?> udtType) throws SQLException
SQLException
public static <T> T getFromStatement(ExecuteContext ctx, Class<? extends T> type, int index) throws SQLException
SQLException
public static Class<?> getClass(int sqlType, int precision, int scale)
public static <T> DataType<T> getDataType(SQLDialect dialect, Class<? extends T> type)
public static String normalise(String typeName)
public static DataType<?> getDialectDataType(SQLDialect dialect, String t, int p, int s) throws SQLDialectNotSupportedException
SQLDialectNotSupportedException
public static Class<?> getDialectJavaType(SQLDialect dialect, String t, int p, int s) throws SQLDialectNotSupportedException
SQLDialectNotSupportedException
Copyright © 2013. All Rights Reserved.