public interface DataTypeService extends StringConstants
Modifier and Type | Interface and Description |
---|---|
static class |
DataTypeService.DataSourceTypes
Types of data source supported by teiid instances
|
static class |
DataTypeService.DataTypeAliases |
static class |
DataTypeService.DataTypeName
Enumerator of data type names supported by the
teiid DataTypeManager
|
Modifier and Type | Field and Description |
---|---|
static String |
ARRAY_SUFFIX
The suffix designating an array
|
AMPERSAND, AT, BR, CLASS, CLOSE_ANGLE_BRACKET, CLOSE_BRACE, CLOSE_BRACKET, CLOSE_PRE_CMT, CLOSE_PRE_TAG, CLOSE_SQUARE_BRACKET, COLON, COMMA, CONNECTION_SUFFIX, CURRENT_FOLDER_SYMBOL, DDL, DEFAULT_LOCAL_WORKSPACE_NAME, DIVIDE, DOLLAR_SIGN, DOT, DOT_CHAR, DOT_DOT, DOT_KOMODO, DOUBLE_BACK_SLASH, DRIVE_SEPARATOR, EMPTY_ARRAY, EMPTY_STRING, ENUM, EQUALS, FILE_EXTENSION_SEPARATOR, FILE_NAME_WILDCARD, FINAL, FORWARD_SLASH, HASH, HYPHEN, INTERFACE, JAR, JAVA, JAVA_IO_TMPDIR, JBOSS_SERVER_TMP_DIR, KOMODO, LINE_SEPARATOR, LINE_SEPARATOR_PROPERTY_NAME, LOG, MINUS, MULTIPLY, NBSP, NEW_LINE, OPEN_ANGLE_BRACKET, OPEN_BRACE, OPEN_BRACKET, OPEN_PRE_CMT, OPEN_PRE_TAG, OPEN_SQUARE_BRACKET, PARENT_FOLDER_SYMBOL, PERCENT, PIPE, PLUS, PREFIX_PATTERN, PRIVATE, PUBLIC, QUESTION_MARK, QUOTE_MARK, SEMI_COLON, SERVICE_VDB_SUFFIX, SERVICE_VDB_VIEW_MODEL, SERVICE_VDB_VIEW_SUFFIX, SOURCES, SPACE, SPEECH_MARK, SRC, STAR, STATIC, TAB, TARGET, UNDERSCORE, UNDERSCORE_CHAR, VDB_DEPLOYMENT_SUFFIX, VDB_PREFIX, XML, XML_SUFFIX, ZIP, ZIP_SUFFIX
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAllDataTypeNames()
Get a set of all data type names.
|
String |
getDataSourceType(DataTypeService.DataSourceTypes dataSourceType)
Get the teiid instance specific name of the data source type
|
Class<?> |
getDataTypeClass(String name)
Get the data type class with the given name.
|
String |
getDataTypeName(Class<?> typeClass)
Get the runtime type for the given class as a String
|
DataTypeService.DataTypeName |
getDataTypeName(String dataTypeId)
Get the runtime data type name for the given data type id
|
Class<?> |
getDefaultDataClass(DataTypeService.DataTypeName dataTypeName)
Get the default data class represented by the
given
DataTypeService.DataTypeName enumerator |
boolean |
isExplicitConversion(String sourceTypeName,
String targetTypeName)
Is the given source an explicit conversion of the target
|
boolean |
isImplicitConversion(String sourceTypeName,
String targetTypeName)
Is the given source an implicit conversion of the target
|
boolean |
isLOB(Class<?> type) |
boolean |
isTransformable(String sourceTypeName,
String targetTypeName)
Can a value transformation between the sourceType with given name
and the targetType of given name be attained.
|
DataTypeService.DataTypeName |
retrieveDataTypeName(Class<?> typeClass)
Retrieve the runtime type for the given class as a
DataTypeService.DataTypeName |
<T> T |
transformValue(Object value,
Class<?> typeClass)
Transform the given value into the given class type
|
<T> T |
transformValue(Object value,
DataTypeService.DataTypeName dataTypeName)
/**
Transform the given value into the given data type
|
static final String ARRAY_SUFFIX
String getDataSourceType(DataTypeService.DataSourceTypes dataSourceType)
dataSourceType
- Class<?> getDataTypeClass(String name)
name
- Data type nameDataTypeService.DataTypeName getDataTypeName(String dataTypeId)
dataTypeId
- String getDataTypeName(Class<?> typeClass)
typeClass
- DataTypeService.DataTypeName retrieveDataTypeName(Class<?> typeClass)
DataTypeService.DataTypeName
typeClass
- DataTypeService.DataTypeName
Set<String> getAllDataTypeNames()
Class<?> getDefaultDataClass(DataTypeService.DataTypeName dataTypeName)
DataTypeService.DataTypeName
enumeratordataTypeName
- boolean isExplicitConversion(String sourceTypeName, String targetTypeName)
sourceTypeName
- targetTypeName
- boolean isImplicitConversion(String sourceTypeName, String targetTypeName)
sourceTypeName
- targetTypeName
- boolean isTransformable(String sourceTypeName, String targetTypeName)
sourceTypeName
- targetTypeName
- <T> T transformValue(Object value, DataTypeService.DataTypeName dataTypeName) throws Exception
value
- dataTypeName
- Exception
<T> T transformValue(Object value, Class<?> typeClass) throws Exception
value
- dataTypeName
- Exception
boolean isLOB(Class<?> type)
type
- Copyright © 2013–2019. All rights reserved.