- java.lang.Object
-
- org.tentackle.sql.DefaultDataTypeFactory
-
- All Implemented Interfaces:
DataTypeFactory
@Service(DataTypeFactory.class) public class DefaultDataTypeFactory extends java.lang.Object implements DataTypeFactory
-
-
Field Summary
-
Fields inherited from interface org.tentackle.sql.DataTypeFactory
CONVERTIBLE_TYPE, LARGE_VARIANT
-
-
Constructor Summary
Constructors Constructor Description DefaultDataTypeFactory()Creates the datatype factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataType<?>get(java.lang.String name, java.lang.String variant)Gets the datatype singleton.ConvertibleTypegetConvertibleType()Gets the special convertible type singleton.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.tentackle.sql.DataTypeFactory
get, get, get
-
-
-
-
Method Detail
-
get
public DataType<?> get(java.lang.String name, java.lang.String variant)
Description copied from interface:DataTypeFactoryGets the datatype singleton.- Specified by:
getin interfaceDataTypeFactory- Parameters:
name- the type namevariant- the type variant, empty string if none- Returns:
- the datatype, null if no such type
-
getConvertibleType
public ConvertibleType getConvertibleType()
Description copied from interface:DataTypeFactoryGets the special convertible type singleton.- Specified by:
getConvertibleTypein interfaceDataTypeFactory- Returns:
- the application specific wrapper type
-
-