Interface SqlTypeFactory

All Known Implementing Classes:
JdbcTypeFactory, SqlComposedTypeFactory

public interface SqlTypeFactory
The factory definition, which can be used to construct the 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 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

      SqlMetaType getMetaType(Class<?> clazz)
      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

      SqlMetaType getMetaType(String name)
      Returns the META type with the provided name.
      Parameters:
      name - the name of the META SQL type
      Returns:
      the META type