public final class JDBCSQLTypeInfo extends Object
This is a helper class used to obtain SQL type information for java types. The SQL type information is obtained from java.sql.Types class. The integers and strings returned by methods in this class are based on constants in java.sql.Types.
Modifier and Type | Class and Description |
---|---|
static class |
JDBCSQLTypeInfo.TypeInfo |
Modifier and Type | Field and Description |
---|---|
static Integer |
DEFAULT_RADIX |
static Integer |
DEFAULT_SCALE |
static Integer |
XML_COLUMN_LENGTH |
Modifier and Type | Method and Description |
---|---|
static Integer |
getDefaultPrecision(Class<?> dataTypeClass) |
static Integer |
getDefaultPrecision(String typeName) |
static String |
getJavaClassName(int jdbcSQLType)
This method is used to obtain a the java class name given an int value
indicating JDBC SQL type.
|
static Integer |
getMaxDisplaySize(Class<?> dataTypeClass) |
static Integer |
getMaxDisplaySize(String typeName) |
static Set<String> |
getMMTypeNames() |
static int |
getSQLType(String typeName)
This method is used to obtain a short indicating JDBC SQL type for any object.
|
static int |
getSQLTypeFromClass(String className)
Get sql Type from java class type name.
|
static int |
getSQLTypeFromRuntimeType(Class<?> type)
Get the sql type from the given runtime type
|
static String |
getTypeName(int sqlType) |
public static final Integer DEFAULT_RADIX
public static final Integer DEFAULT_SCALE
public static final Integer XML_COLUMN_LENGTH
public static final int getSQLType(String typeName)
typeName
- of the teiid type.public static final int getSQLTypeFromClass(String className)
className
- public static final int getSQLTypeFromRuntimeType(Class<?> type)
type
- public static final String getJavaClassName(int jdbcSQLType)
jdbcSQLType
- value giving the SQL type code.public static final String getTypeName(int sqlType)
Copyright © 2019. All rights reserved.