Enum Class DefaultAdlSqlType

java.lang.Object
java.lang.Enum<DefaultAdlSqlType>
de.calamanari.adl.sql.DefaultAdlSqlType
All Implemented Interfaces:
de.calamanari.adl.cnv.tps.AdlType, AdlSqlType, Serializable, Comparable<DefaultAdlSqlType>, Constable

public enum DefaultAdlSqlType extends Enum<DefaultAdlSqlType> implements AdlSqlType
The DefaultAdlSqlType maps a selection of the SQL-types defined in Types and decorate them with the ability to act as AdlType.
Author:
Karl Eilebrecht
  • Enum Constant Details

  • Field Details

    • DUMMY_TYPE_CASTER

      public static final de.calamanari.adl.cnv.tps.NativeTypeCaster DUMMY_TYPE_CASTER
      There is no default type casting. This instance returns the native field name as-is.
  • Method Details

    • values

      public static DefaultAdlSqlType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DefaultAdlSqlType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getFormatter

      public de.calamanari.adl.cnv.tps.ArgValueFormatter getFormatter()
      Specified by:
      getFormatter in interface de.calamanari.adl.cnv.tps.AdlType
    • supportsContains

      public boolean supportsContains()
      Specified by:
      supportsContains in interface de.calamanari.adl.cnv.tps.AdlType
    • supportsLessThanGreaterThan

      public boolean supportsLessThanGreaterThan()
      Specified by:
      supportsLessThanGreaterThan in interface de.calamanari.adl.cnv.tps.AdlType
    • getJavaSqlType

      public int getJavaSqlType()
      Specified by:
      getJavaSqlType in interface AdlSqlType
      Returns:
      this is the underlying SQL-type for this type, see Types (mainly for reference and debugging)
    • getQueryParameterCreator

      public QueryParameterCreator getQueryParameterCreator()
      Specified by:
      getQueryParameterCreator in interface AdlSqlType
      Returns:
      the component that can convert a given expression argument of any given AdlType into an SQL-query parameter compliant to this type. NOT NULL.
    • getQueryParameterApplicator

      public QueryParameterApplicator getQueryParameterApplicator()
      Specified by:
      getQueryParameterApplicator in interface AdlSqlType
      Returns:
      the component that can set a parameter (sql-value) on a statement, NOT NULL
    • getNativeTypeCaster

      public de.calamanari.adl.cnv.tps.NativeTypeCaster getNativeTypeCaster()
      Specified by:
      getNativeTypeCaster in interface de.calamanari.adl.cnv.tps.AdlType