Package org.sqlproc.engine.type
Interface SqlTypeFactory
- All Known Implementing Classes:
JdbcTypeFactory,SqlComposedTypeFactory
public interface SqlTypeFactory
The factory definition, which can be used to construct the
The implementation depends the stack on top of which the SQL Processor works. It can be a singleton or a registry.
SqlMetaType instances.
In the process of the META SQL statements and mapping rules parsing the input/output values META types have to be
established. For this purpose a factory class responsible for these META types construction has to be supplied.The implementation depends the stack on top of which the SQL Processor works. It can be a singleton or a registry.
- Author:
- Vladimir Hudec
-
Method Summary
Modifier and TypeMethodDescriptionReturns the collection of all the META types provided by this factory.Returns the default META type.Returns the META type for the enumerations based on Integer internal type.Returns the META type for the enumerations based on String internal type.Returns the META type for an auto-generated identity.getMetaType(Class<?> clazz) Returns the META type, which can be used to handle input/output values of provided Java type.getMetaType(String name) Returns the META type with the provided name.
-
Method Details
-
getDefaultType
SqlMetaType getDefaultType()Returns the default META type. It's used in the case there's no explicit META type declaration in the META SQL statements.- Returns:
- the default META type
-
getEnumIntegerType
SqlMetaType getEnumIntegerType()Returns the META type for the enumerations based on Integer internal type.- Returns:
- the META type for the enumerations based on Integer internal type
-
getEnumStringType
SqlMetaType getEnumStringType()Returns the META type for the enumerations based on String internal type.- Returns:
- the META type for the enumerations based on String internal type
-
getIdentityType
SqlMetaType getIdentityType()Returns the META type for an auto-generated identity.- Returns:
- the META type for an auto-generated identity
-
getAllTypes
SqlMetaType[] getAllTypes()Returns the collection of all the META types provided by this factory.- Returns:
- the collection of all the META types
-
getMetaType
Returns the META type, which can be used to handle input/output values of provided Java type.- Parameters:
clazz- the input/output value Java type- Returns:
- the META type
-
getMetaType
Returns the META type with the provided name.- Parameters:
name- the name of the META SQL type- Returns:
- the META type
-