Enum Class DefaultAdlSqlType
- All Implemented Interfaces:
de.calamanari.adl.cnv.tps.AdlType, AdlSqlType, Serializable, Comparable<DefaultAdlSqlType>, Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final de.calamanari.adl.cnv.tps.NativeTypeCasterThere is no default type casting. -
Method Summary
Modifier and TypeMethodDescriptionde.calamanari.adl.cnv.tps.ArgValueFormatterintde.calamanari.adl.cnv.tps.NativeTypeCasterbooleanbooleanstatic DefaultAdlSqlTypeReturns the enum constant of this class with the specified name.static DefaultAdlSqlType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface AdlSqlType
getBaseType, isCompatibleWith, withFormatter, withFormatter, withNativeTypeCaster, withNativeTypeCaster, withQueryParameterApplicator, withQueryParameterApplicator, withQueryParameterCreator, withQueryParameterCreatorMethods inherited from interface de.calamanari.adl.cnv.tps.AdlType
name
-
Enum Constant Details
-
SQL_BIT
-
SQL_BIGINT
-
SQL_BOOLEAN
-
SQL_CHAR
-
SQL_DATE
-
SQL_DECIMAL
-
SQL_DOUBLE
-
SQL_FLOAT
-
SQL_INTEGER
-
SQL_LONGNVARCHAR
-
SQL_LONGVARCHAR
-
SQL_NCHAR
-
SQL_NUMERIC
-
SQL_NVARCHAR
-
SQL_REAL
-
SQL_SMALLINT
-
SQL_TIMESTAMP
-
SQL_TINYINT
-
SQL_VARCHAR
-
-
Field Details
-
DUMMY_TYPE_CASTER
public static final de.calamanari.adl.cnv.tps.NativeTypeCaster DUMMY_TYPE_CASTERThere is no default type casting. This instance returns the native field name as-is.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getFormatter
public de.calamanari.adl.cnv.tps.ArgValueFormatter getFormatter()- Specified by:
getFormatterin interfacede.calamanari.adl.cnv.tps.AdlType
-
supportsContains
public boolean supportsContains()- Specified by:
supportsContainsin interfacede.calamanari.adl.cnv.tps.AdlType
-
supportsLessThanGreaterThan
public boolean supportsLessThanGreaterThan()- Specified by:
supportsLessThanGreaterThanin interfacede.calamanari.adl.cnv.tps.AdlType
-
getJavaSqlType
public int getJavaSqlType()- Specified by:
getJavaSqlTypein interfaceAdlSqlType- Returns:
- this is the underlying SQL-type for this type, see
Types(mainly for reference and debugging)
-
getQueryParameterCreator
- Specified by:
getQueryParameterCreatorin interfaceAdlSqlType- Returns:
- the component that can convert a given expression argument of any given
AdlTypeinto an SQL-query parameter compliant to this type. NOT NULL.
-
getQueryParameterApplicator
- Specified by:
getQueryParameterApplicatorin interfaceAdlSqlType- 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:
getNativeTypeCasterin interfacede.calamanari.adl.cnv.tps.AdlType
-