Uses of Interface
de.calamanari.adl.sql.AdlSqlType
Packages that use AdlSqlType
-
Uses of AdlSqlType in de.calamanari.adl.sql
Classes in de.calamanari.adl.sql that implement AdlSqlTypeModifier and TypeClassDescriptionclassOften anAdlSqlTypes behavior will be common resp. applicable in many scenarios but we want to change the formatter or add a type caster.enumTheDefaultAdlSqlTypemaps a selection of the SQL-types defined inTypesand decorate them with the ability to act asAdlType.Methods in de.calamanari.adl.sql that return AdlSqlTypeModifier and TypeMethodDescriptionDefaultQueryParameter.adlSqlType()Returns the value of theadlSqlTyperecord component.QueryParameter.adlSqlType()default AdlSqlTypeAdlSqlType.getBaseType()AdlSqlTypeDecorator.getBaseType()default AdlSqlTypeAdlSqlType.withFormatter(de.calamanari.adl.cnv.tps.ArgValueFormatter formatter) default AdlSqlTypeAdlSqlType.withFormatter(String name, de.calamanari.adl.cnv.tps.ArgValueFormatter formatter) default AdlSqlTypeAdlSqlType.withNativeTypeCaster(de.calamanari.adl.cnv.tps.NativeTypeCaster nativeTypeCaster) default AdlSqlTypeAdlSqlType.withNativeTypeCaster(String name, de.calamanari.adl.cnv.tps.NativeTypeCaster nativeTypeCaster) default AdlSqlTypeAdlSqlType.withQueryParameterApplicator(QueryParameterApplicator queryParameterApplicator) Allows adding a newQueryParameterApplicatorto an existing type to refine the behavior of the composedAdlSqlTypedefault AdlSqlTypeAdlSqlType.withQueryParameterApplicator(String name, QueryParameterApplicator queryParameterApplicator) Allows adding a newQueryParameterApplicatorto an existing type to refine the behavior of the composedAdlSqlTypedefault AdlSqlTypeAdlSqlType.withQueryParameterCreator(QueryParameterCreator queryParameterCreator) Allows adding a newQueryParameterCreatorto an existing type to refine the behavior of the composedAdlSqlTypedefault AdlSqlTypeAdlSqlType.withQueryParameterCreator(String name, QueryParameterCreator queryParameterCreator) Allows adding a newQueryParameterCreatorto an existing type to refine the behavior of the composedAdlSqlTypeMethods in de.calamanari.adl.sql with parameters of type AdlSqlTypeModifier and TypeMethodDescriptionDefaultQueryParameterCreator.createParameter(de.calamanari.adl.cnv.tps.ArgMetaInfo argMetaInfo, String argValue, de.calamanari.adl.irl.MatchOperator matchOperator, AdlSqlType adlSqlType) DefaultQueryParameterCreator.createParameter(String id, de.calamanari.adl.cnv.tps.ArgMetaInfo argMetaInfo, String argValue, de.calamanari.adl.irl.MatchOperator matchOperator, AdlSqlType adlSqlType) This is the preferred method to create a valid parameter to ensure compatibility with the target column.QueryParameterCreator.createParameter(de.calamanari.adl.cnv.tps.ArgMetaInfo argMetaInfo, String argValue, de.calamanari.adl.irl.MatchOperator matchOperator, AdlSqlType adlSqlType) Takes an argument from an expression withAdlTypeinformation as its input to create aQueryParameterto be applied to aPreparedStatementat a later time.QueryParameterCreator.createParameter(String id, de.calamanari.adl.cnv.tps.ArgMetaInfo argMetaInfo, String argValue, de.calamanari.adl.irl.MatchOperator matchOperator, AdlSqlType adlSqlType) Takes an argument from an expression withAdlTypeinformation as its input to create aQueryParameterto be applied to aPreparedStatementat a later time.booleanDefaultQueryParameterCreator.isTypeCombinationSupported(de.calamanari.adl.cnv.tps.AdlType sourceType, AdlSqlType targetType) booleanQueryParameterCreator.isTypeCombinationSupported(de.calamanari.adl.cnv.tps.AdlType sourceType, AdlSqlType targetType) This method tells whether an argument of the given sourceType can be mapped to the targetType to create a valid SQL-parameter.
It is meant for detecting configuration errors early.Constructors in de.calamanari.adl.sql with parameters of type AdlSqlTypeModifierConstructorDescriptionDefaultQueryParameter(String id, AdlSqlType adlSqlType, Serializable value, de.calamanari.adl.irl.MatchOperator operator) Creates an instance of aDefaultQueryParameterrecord class. -
Uses of AdlSqlType in de.calamanari.adl.sql.cnv
Methods in de.calamanari.adl.sql.cnv with parameters of type AdlSqlTypeModifier and TypeMethodDescriptionstatic booleanMatchCondition.shouldAlignDate(de.calamanari.adl.cnv.tps.AdlType type, AdlSqlType columnType, de.calamanari.adl.ProcessContext ctx) Tells whether we should perform an alignment of the given data to a higher resolution stamp before creating the query, to for example turn an equals into a range query. -
Uses of AdlSqlType in de.calamanari.adl.sql.config
Fields in de.calamanari.adl.sql.config declared as AdlSqlTypeModifier and TypeFieldDescriptionprotected AdlSqlTypeAbstractTableBuilder.columnTypetype of the current columnMethods in de.calamanari.adl.sql.config that return AdlSqlTypeModifier and TypeMethodDescriptionAdlSqlColumn.columnType()DataColumn.columnType()Returns the value of thecolumnTyperecord component.FilterColumn.columnType()Returns the value of thecolumnTyperecord component.Methods in de.calamanari.adl.sql.config with parameters of type AdlSqlTypeModifier and TypeMethodDescriptionAbstractTableBuilder.dataColumn(String columnName, AdlSqlType columnType) ConfigBuilderInterfaces.DataColumnStep1.dataColumn(String columnName, AdlSqlType columnType) Defines a data column of the given type.ConfigBuilderInterfaces.MultiTableDataColumnStep1.dataColumn(String columnName, AdlSqlType columnType) Adds a data column of the given type to the current tableConfigBuilderInterfaces.SingleTableAddColumnOrExit.dataColumn(String columnName, AdlSqlType columnType) Adds a data column of the given type to the current tableAbstractTableBuilder.filteredBy(String columnName, AdlSqlType columnType, String value) ConfigBuilderInterfaces.DataColumnStep4.filteredBy(String columnName, AdlSqlType columnType, String value) Defines an extra column filter on a column.ConfigBuilderInterfaces.MultiTableDataColumnStep4.filteredBy(String columnName, AdlSqlType columnType, String value) Defines an extra column filter on a column.ConfigBuilderInterfaces.MultiTableStep3.filteredBy(String columnName, AdlSqlType columnType, String value) Defines an extra column filter to be applied to each query on this table.ConfigBuilderInterfaces.SingleTableDataColumnStep4.filteredBy(String columnName, AdlSqlType columnType, String value) Defines an extra column filter on a column.ConfigBuilderInterfaces.SingleTableStep4.filteredBy(String columnName, AdlSqlType columnType, String value) Defines an extra column filter to be applied to each query on this table.Constructors in de.calamanari.adl.sql.config with parameters of type AdlSqlTypeModifierConstructorDescriptionDataColumn(String tableName, String columnName, AdlSqlType columnType, boolean isAlwaysKnown, boolean isMultiRow, List<FilterColumn> filters) Creates an instance of aDataColumnrecord class.FilterColumn(String tableName, String columnName, AdlSqlType columnType, String filterValue) Creates an instance of aFilterColumnrecord class.