- All Known Implementing Classes:
DefaultDataTypeFactory
public interface DataTypeFactory
Loads all data types and creates singletons of each type.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault <T> DataType<T> Gets the datatype singleton.default <T> DataType<T> Gets the datatype singleton.default DataType<?> Gets the datatype singleton.DataType<?> Gets the datatype singleton.Gets the special convertible type singleton.static DataTypeFactoryThe singleton.
-
Field Details
-
LARGE_VARIANT
Large variant of a type.
For example, to distinguish standard VARCHAR Strings from CLOBs.- See Also:
-
CONVERTIBLE_TYPE
Type name for the wrapper type implementingorg.tentackle.misc.Convertible.- See Also:
-
-
Method Details
-
getInstance
The singleton.- Returns:
- the singleton
-
get
Gets the datatype singleton.- Parameters:
name- the type namevariant- the type variant, empty string if none- Returns:
- the datatype, null if no such type
-
get
Gets the datatype singleton.- Type Parameters:
T- the java type- Parameters:
clazz- the java classvariant- the variant, empty string if none- Returns:
- the datatype, null if no such type
-
get
Gets the datatype singleton.- Parameters:
javaType- the java type- Returns:
- the datatype, null if no such type
-
get
Gets the datatype singleton.- Type Parameters:
T- the java type- Parameters:
clazz- the java class- Returns:
- the datatype, null if no such type
-
getConvertibleType
ConvertibleType getConvertibleType()Gets the special convertible type singleton.- Returns:
- the application specific wrapper type
-