Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractSqlExpressionConverter<C> - Class in de.calamanari.adl.sql.cnv
-
Base class for creating SQL-converters.
- AbstractSqlExpressionConverter(Supplier, ResettableScpContext) - Constructor for class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
Creates a new instance of the converter, fully prepared to call
AbstractExpressionConverter.convert(Object). - AbstractSqlExpressionConverter(Supplier, DataBinding) - Constructor for class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
Creates a new instance of the converter, fully prepared to call
AbstractExpressionConverter.convert(Object). - AbstractSqlExpressionConverter(Supplier, DataBinding, Map, Set) - Constructor for class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
Creates a new instance of the converter, fully prepared to call
AbstractExpressionConverter.convert(Object). - AbstractTableBuilder<T> - Class in de.calamanari.adl.sql.config
-
Implementation backing the fluent configuration builders for column and tables.
- AbstractTableBuilder(ArgMetaInfoLookup) - Constructor for class de.calamanari.adl.sql.config.AbstractTableBuilder
- addExtraAliasWithClauseElements(List) - Method in class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
-
Adds further WITH-clause elements to the list.
- addMainWithClauseElement(List) - Method in class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
-
This is the base query if (and only if) an alias has been chosen as base query
- addOnRestrictionIfApplicable(TableMetaInfo, ExpressionAlias, Set) - Method in class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
-
This method tests the given alias, and if the alias matches the table and certain criteria is fulfilled the expression will be added to the candidates which can later refine the ON-condition.
- addPendingColumn() - Method in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
Takes the collected data and adds a new column, resets the builder for the next column
- AdlSqlColumn - Interface in de.calamanari.adl.sql.config
-
Interface to for columns, introduced to handle
DataColumns andFilterColumns in a common way. - adlSqlType() - Method in record class de.calamanari.adl.sql.DefaultQueryParameter
-
Returns the value of the
adlSqlTyperecord component. - adlSqlType() - Method in interface de.calamanari.adl.sql.QueryParameter
- AdlSqlType - Interface in de.calamanari.adl.sql
-
This sub-type of
AdlTypeis especially made for SQL conversion. - AdlSqlTypeDecorator - Class in de.calamanari.adl.sql
-
Often an
AdlSqlTypes behavior will be common resp. applicable in many scenarios but we want to change the formatter or add a type caster. - AFTER_TODAY - Enum constant in enum class de.calamanari.adl.sql.cnv.ColumnConditionType
-
Exactly one value with the aligned date after the specified one, to query greater than or equals rather than greater than
- ALIAS_PREFIX - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
Alias prefix
- aliasesInWhereClause() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- aliasHelper() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- AliasHelper - Class in de.calamanari.adl.sql.cnv
-
During a conversion run an
AliasHelperkeeps track of all the created aliases. - AliasHelper() - Constructor for class de.calamanari.adl.sql.cnv.AliasHelper
- aliasMap - Variable in class de.calamanari.adl.sql.cnv.AliasHelper
-
Lookup from sub-expression to its alias, even if the same sub-expression occurs multiple times in a query this will ensure we have only a single alias.
- ALL_IDS - Enum constant in enum class de.calamanari.adl.sql.config.TableNature
-
Table contains all IDs.
- ALL_IDS_SPARSE - Enum constant in enum class de.calamanari.adl.sql.config.TableNature
-
Table contains all IDs, and it contains sparse data (treat columns independently).
- ALL_IDS_UNIQUE - Enum constant in enum class de.calamanari.adl.sql.config.TableNature
-
Table contains all IDs, each ID appears once and once-only.
- allTableMetaInfos() - Method in interface de.calamanari.adl.sql.config.DataTableConfig
-
Returns the meta information for all the tables in this configuration.
- allTableMetaInfos() - Method in class de.calamanari.adl.sql.config.DummyDataTableConfig
- allTableMetaInfos() - Method in record class de.calamanari.adl.sql.config.MultiTableConfig
- allTableMetaInfos() - Method in record class de.calamanari.adl.sql.config.SingleTableConfig
- alwaysKnown() - Method in class de.calamanari.adl.sql.config.AbstractTableBuilder
- alwaysKnown() - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.DataColumnStep2
-
Defines that there is a known value for every record in your database.
- alwaysKnown() - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.MultiTableDataColumnStep2
-
Defines that there is a known value for every record in your database.
- alwaysKnown() - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.SingleTableDataColumnStep2
-
Defines that there is a known value for every record in your database.
- alwaysKnownFlag - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
setting for the current column
- AND - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"AND"
- appendAliasExistenceCheckWithExtraNullCheckIfRequired(StringBuilder, MatchCondition, ExpressionAlias) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
When we query columns with multi-row sensitivity, we perform the condition check within the alias query and perform an alias existence check in the global WHERE clause (we are not attributing the aliases).
- appendAliasGroupToBaseQuery(StringBuilder, List) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
Appends the query related to one alias group (a table or duo of two tables in case of a reference match) to become part of a UNION that shall form the base query.
- appendAliasJoinsIfRequired(StringBuilder) - Method in class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
-
Here we add the joins to connect tables and (if defined) aliases from the WITH-clause to the base query
- appendAliasQuery(StringBuilder, ExpressionAlias) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
Append an alias query (part of the SQL WITH-section)
- appendAliasUnionBaseQuery(StringBuilder, List) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
Appends a UNION of the given aliases to compose a super set as base query (part if with)
- appendAllTableUnionBaseQuery(StringBuilder) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
Appends a UNION of all tables defined in the data binding.
- appendFilterColumnConditions(StringBuilder, String, List, boolean) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
Appends the given list of filter column conditions, connected by AND with the previous content
- appendFullTableQuery(StringBuilder, TableMetaInfo) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
Appends a select that queries all IDs of the given table
- appendFurtherJoinOnRestrictions(StringBuilder, String, List) - Method in class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
-
If the given list of expressions is not empty, each will be expressed as a further ON-restriction of the join, added and combined with AND
- appendGlobalWhereCondition(StringBuilder) - Method in class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
-
This method appends the global WHERE-condition (the part after the 'WHERE'), composed in
AbstractSqlExpressionConverter.whereClause()to the given builder - appendIsNullInversion(StringBuilder, boolean) - Static method in class de.calamanari.adl.sql.SqlFormatUtils
-
Appends the inversion of an IS (NOT) NULL check.
- appendJoin(StringBuilder, String, String, List) - Method in class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
-
Appends the join for a table or alias with optional restrictions (ON-condition)
- appendMainSelectFrom(StringBuilder) - Method in class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
-
Setup of the SELECT-FROM part of the query (everything before the joins)
- appendMatchCondition(StringBuilder, MatchCondition, boolean) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
Appends the given condition to WHERE clause (with/sub query).
- appendOrderBy(StringBuilder, String, FormatStyle, int) - Static method in class de.calamanari.adl.sql.SqlFormatUtils
-
Appends the order-by in a formatted way
- appendQualifiedColumnName(StringBuilder, String, String) - Static method in class de.calamanari.adl.sql.SqlFormatUtils
-
Appends the column name qualified by the given alias to the builder.
- appendSpacedIf(StringBuilder, boolean, String...) - Static method in class de.calamanari.adl.sql.SqlFormatUtils
-
Same as
FormatUtils.appendSpaced(StringBuilder, String...)but only if the condition is true - appendToAliasConditionClause(StringBuilder, MatchCondition, boolean) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
Appends the condition to the given alias WHERE-clause or ON-condition.
- appendToGlobalWhereClause(StringBuilder, MatchCondition, ExpressionAlias) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
Appends the condition to the global WHERE-clause.
- appendWithClauseIfRequired(StringBuilder) - Method in class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
-
Appends the with-clause elements to the query
- apply(PreparedStatement) - Method in record class de.calamanari.adl.sql.QueryTemplateWithParameters
-
Applies the parameters to the
PreparedStatementcreated from theQueryTemplateWithParameters.qmTemplate(). - apply(PreparedStatement, int) - Method in interface de.calamanari.adl.sql.QueryParameter
-
Sets the value of this parameter on the statement at the given index.
- apply(PreparedStatement, QueryParameter, int) - Method in class de.calamanari.adl.sql.DefaultQueryParameterApplicator
- apply(PreparedStatement, QueryParameter, int) - Method in interface de.calamanari.adl.sql.QueryParameterApplicator
-
Sets the value of the given parameter on the statement at the given index.
- applyUnsafe(StringBuilder) - Method in record class de.calamanari.adl.sql.QueryTemplateWithParameters
-
This method returns the SQL-string with the positional parameters replaced with string arguments.
- applyUnsafe(StringBuilder, int) - Method in interface de.calamanari.adl.sql.QueryParameter
-
Appends the value of the given parameter to an SQL script.
- applyUnsafe(StringBuilder, QueryParameter, int) - Method in class de.calamanari.adl.sql.DefaultQueryParameterApplicator
- applyUnsafe(StringBuilder, QueryParameter, int) - Method in interface de.calamanari.adl.sql.QueryParameterApplicator
-
Appends the value of the given parameter to an SQL script.
- arg() - Method in record class de.calamanari.adl.sql.config.ArgColumnAssignment
-
Returns the value of the
argrecord component. - ARG_NAME_LOCAL_PLACEHOLDER - Static variable in class de.calamanari.adl.sql.config.DefaultAutoMappingPolicy
-
Reference to the variable "argName.local"
- ARG_NAME_PLACEHOLDER - Static variable in record class de.calamanari.adl.sql.config.FilterColumn
-
Reference to the variable "argName"
- ArgColumnAssignment - Record Class in de.calamanari.adl.sql.config
-
ArgColumnAssignments assign arguments to columns. - ArgColumnAssignment(ArgMetaInfo, DataColumn) - Constructor for record class de.calamanari.adl.sql.config.ArgColumnAssignment
-
Creates an instance of a
ArgColumnAssignmentrecord class. - argColumnMap - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
mappings collected for the current table
- argColumnMap() - Method in record class de.calamanari.adl.sql.config.SingleTableConfig
-
Returns the value of the
argColumnMaprecord component. - argMetaInfoLookup - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
the lookup (if present) or null if this builder implicitly builds the logical data model
- ARGNAME_DUMMY - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
Constant for cases where we need a dummy argument name for method calls (relevant for debugging only)
- argNameLeft() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
Returns the value of the
argNameLeftrecord component. - argNameRight() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
Returns the value of the
argNameRightrecord component. - argNames() - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionStats
-
Returns the value of the
argNamesrecord component. - argNamesInNegativeIsUnknownMatches() - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionStats
-
Returns the value of the
argNamesInNegativeIsUnknownMatchesrecord component. - argNamesInNegativeValueMatches() - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionStats
-
Returns the value of the
argNamesInNegativeValueMatchesrecord component. - argNamesInPositiveIsUnknownMatches() - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionStats
-
Returns the value of the
argNamesInPositiveIsUnknownMatchesrecord component. - argNamesInPositiveValueMatches() - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionStats
-
Returns the value of the
argNamesInPositiveValueMatchesrecord component. - argNamesMarkedMultiRow() - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionStats
-
Returns the value of the
argNamesMarkedMultiRowrecord component. - argNamesWithMultiRowSensitivity() - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionStats
-
Returns the value of the
argNamesWithMultiRowSensitivityrecord component. - AS - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"AS"
- asPrimaryTable() - Method in class de.calamanari.adl.sql.config.AbstractTableBuilder
- asPrimaryTable() - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.MultiTableStep1
-
Configures this table as the primary table of a setup, means the table to start the base selection on before joining any other table.
- asPrimaryTable() - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.SingleTableStep2
-
Configures this table as the primary table of a setup, means the table to start the base selection on before joining any other table.
- assertContextNotNull(ProcessContext) - Static method in class de.calamanari.adl.sql.config.ConfigUtils
- assertValidArgName(String) - Static method in class de.calamanari.adl.sql.config.ConfigUtils
- assignmentTemplate - Variable in class de.calamanari.adl.sql.config.DefaultAutoMappingPolicy
-
At runtime we return the same mapping for all matching argNames, argMetaInfo updated with the current argName
- augmentationListener() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- autoMapped(DefaultAutoMappingPolicy.LocalArgNameExtractor, AdlType) - Method in class de.calamanari.adl.sql.config.AbstractTableBuilder
- autoMapped(DefaultAutoMappingPolicy.LocalArgNameExtractor, AdlType) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.MultiTableDataColumnStep1a
-
Maps the column to every attribute (argName) the given extractor can extract a local argName from (not null).
- autoMapped(DefaultAutoMappingPolicy.LocalArgNameExtractor, AdlType) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.SingleTableDataColumnStep1
-
Maps the column to every attribute (argName) the given extractor can extract a local argName from (not null).
- autoMapped(Function) - Method in class de.calamanari.adl.sql.config.AbstractTableBuilder
- autoMapped(Function) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.MultiTableDataColumnStep1a
-
Maps the column to every attribute (argName) the given policy covers.
- autoMapped(Function) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.SingleTableDataColumnStep1
-
Maps the column to every attribute (argName) the given policy covers.
- autoMappingExtractor - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
For optional auto-mapping policy for the current column
- autoMappingPolicies - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
List of all the policies for the current table
- autoMappingPolicy() - Method in record class de.calamanari.adl.sql.config.SingleTableConfig
-
Returns the value of the
autoMappingPolicyrecord component. - AutoMappingPolicy - Interface in de.calamanari.adl.sql.config
-
An
AutoMappingPolicyderives the target column assignment for a given argName by parsing or mapping the given argName. - autoMappingPolicyFunction - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
For optional auto-mapping policy for the current column
B
- BRACE_CLOSE - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
")"
- BRACE_OPEN - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"("
C
- checkLeftSupersetOfRight(CoreExpression, CoreExpression) - Method in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
Tests whether the left expression must be true if the right shall be true, in other words right implies left.
- clear() - Method in class de.calamanari.adl.sql.cnv.SqlConversionContext
-
Resets this context to its defaults
- CMP_EQUALS - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"="
- CMP_GREATER_THAN - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
">"
- CMP_LESS_THAN - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"<"
- CMP_NOT_EQUALS - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"<>"
- collectFurtherRequiredAliases() - Method in class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
-
Collects further aliases.
- column() - Method in record class de.calamanari.adl.sql.cnv.ColumnCondition
-
Returns the value of the
columnrecord component. - column() - Method in record class de.calamanari.adl.sql.config.ArgColumnAssignment
-
Returns the value of the
columnrecord component. - ColumnCondition - Record Class in de.calamanari.adl.sql.cnv
-
A
ColumnConditioncarries the meta data and the prepared parameters related to a single column, which can either be aDataColumn(means a column related to an argName) or aFilterColumnto be tested against a value. - ColumnCondition(ColumnConditionType, MatchOperator, AdlSqlColumn, List) - Constructor for record class de.calamanari.adl.sql.cnv.ColumnCondition
-
Creates an instance of a
ColumnConditionrecord class. - columnConditions() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
Returns the value of the
columnConditionsrecord component. - ColumnConditionType - Enum Class in de.calamanari.adl.sql.cnv
-
Defines the type of the parameter set for a column, information for later expression setup
- columnLeft() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
Returns the value of the
columnLeftrecord component. - columnName - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
The current column
- columnName() - Method in interface de.calamanari.adl.sql.config.AdlSqlColumn
- columnName() - Method in record class de.calamanari.adl.sql.config.DataColumn
-
Returns the value of the
columnNamerecord component. - columnName() - Method in record class de.calamanari.adl.sql.config.FilterColumn
-
Returns the value of the
columnNamerecord component. - columnRight() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
Returns the value of the
columnRightrecord component. - columnType - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
type of the current column
- columnType() - Method in interface de.calamanari.adl.sql.config.AdlSqlColumn
- columnType() - Method in record class de.calamanari.adl.sql.config.DataColumn
-
Returns the value of the
columnTyperecord component. - columnType() - Method in record class de.calamanari.adl.sql.config.FilterColumn
-
Returns the value of the
columnTyperecord component. - compareTo(ExpressionAlias) - Method in class de.calamanari.adl.sql.cnv.ExpressionAlias
- complexityComparator - Variable in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
A comparator that ascendingly orders expressions first after
CoreExpressionSqlHelper.complexityOf(CoreExpression) - complexityOf(CoreExpression) - Method in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
Estimates the complexity of the given expression based on the nesting, type of sub-expressions and the database mapping
- CompositeAutoMappingPolicy - Record Class in de.calamanari.adl.sql.config
-
A
CompositeAutoMappingPolicyallows combining a list of policies into a common policy that can apply different rules or patterns to determine the column assignment for a given argName. - CompositeAutoMappingPolicy(List) - Constructor for record class de.calamanari.adl.sql.config.CompositeAutoMappingPolicy
-
Creates an instance of a
CompositeAutoMappingPolicyrecord class. - conditionFactory() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- ConfigBuilderInterfaces - Class in de.calamanari.adl.sql.config
-
This class contains the interfaces for the fluent builder flows for creating column and table configurations.
- ConfigBuilderInterfaces.DataColumnStep1 - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
DataColumn - ConfigBuilderInterfaces.DataColumnStep2 - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
DataColumn - ConfigBuilderInterfaces.DataColumnStep3 - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
DataColumn - ConfigBuilderInterfaces.DataColumnStep4 - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
DataColumn - ConfigBuilderInterfaces.MultiTableAddTable - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
MultiTableConfig - ConfigBuilderInterfaces.MultiTableAddTableOrExit - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
MultiTableConfig - ConfigBuilderInterfaces.MultiTableDataColumnStep1 - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
MultiTableConfig - ConfigBuilderInterfaces.MultiTableDataColumnStep1a - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
MultiTableConfig - ConfigBuilderInterfaces.MultiTableDataColumnStep2 - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
MultiTableConfig - ConfigBuilderInterfaces.MultiTableDataColumnStep3 - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
MultiTableConfig - ConfigBuilderInterfaces.MultiTableDataColumnStep4 - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
MultiTableConfig - ConfigBuilderInterfaces.MultiTableExit - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
MultiTableConfig - ConfigBuilderInterfaces.MultiTableStep1 - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
MultiTableConfig - ConfigBuilderInterfaces.MultiTableStep2 - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
MultiTableConfig - ConfigBuilderInterfaces.MultiTableStep3 - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
MultiTableConfig - ConfigBuilderInterfaces.SingleTableAddColumnOrExit - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
SingleTableConfig - ConfigBuilderInterfaces.SingleTableDataColumnStep1 - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
SingleTableConfig - ConfigBuilderInterfaces.SingleTableDataColumnStep2 - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
SingleTableConfig - ConfigBuilderInterfaces.SingleTableDataColumnStep3 - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
SingleTableConfig - ConfigBuilderInterfaces.SingleTableDataColumnStep4 - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
SingleTableConfig - ConfigBuilderInterfaces.SingleTableStep2 - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
SingleTableConfig - ConfigBuilderInterfaces.SingleTableStep3 - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
SingleTableConfig - ConfigBuilderInterfaces.SingleTableStep4 - Interface in de.calamanari.adl.sql.config
-
Fluent API to build a
SingleTableConfig - ConfigUtils - Class in de.calamanari.adl.sql.config
-
Set of utilities, mainly for validation to avoid duplication.
- consolidateAliasGroupExpressions(List) - Method in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
Consolidates the given members to prepare the expressions for the creation of a union or an ON-join-condition.
- contains(String) - Method in class de.calamanari.adl.sql.config.DummyDataTableConfig
- contains(String) - Method in record class de.calamanari.adl.sql.config.MultiTableConfig
- contains(String) - Method in record class de.calamanari.adl.sql.config.SingleTableConfig
- containsAllIds() - Method in enum class de.calamanari.adl.sql.config.TableNature
-
Tells the system that every record is listed in this table.
- containsAllIdsFlag - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
setting for the current table
- ConversionDirective - Enum Class in de.calamanari.adl.sql.cnv
-
ConversionDirectives areFlags that influence details of the query generation process. - ConversionHint - Enum Class in de.calamanari.adl.sql.cnv
-
Enumeration with findings that can influence SQL expression generation
- CoreExpressionSqlHelper - Class in de.calamanari.adl.sql.cnv
-
The
CoreExpressionSqlHelperprovides a couple of utilities to support the conversion of aCoreExpressioninto an SQL-expression (e.g. construction of IN-clauses) - CoreExpressionSqlHelper(CoreExpression, TimeOut, DataBinding, ProcessContext) - Constructor for class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
Analyzes the given expression, gathers statistics and creates a fresh helper instance.
- CoreExpressionSqlHelper.MinimalProcessContext - Record Class in de.calamanari.adl.sql.cnv
-
This avoids that the helper holds a reference to the context while the context knows the helper.
- CoreExpressionStats - Record Class in de.calamanari.adl.sql.cnv
-
CoreExpressionStatsis a report with meta information about an expression to be converted. - CoreExpressionStats(Set, Set, Set, Set, Set, Set, Set, Set, Set, boolean) - Constructor for record class de.calamanari.adl.sql.cnv.CoreExpressionStats
-
Creates an instance of a
CoreExpressionStatsrecord class. - COUNT - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"COUNT"
- createAliasHelper() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
This method allows sub-classes to replace the helper with a custom one
- createAliasName() - Method in class de.calamanari.adl.sql.cnv.AliasHelper
- createCoreExpressionSqlHelper(CoreExpression) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
This method allows sub-classes to replace the helper with a custom one
- createFilterColumnCondition(ColumnConditionType, FilterColumn, SqlConversionProcessContext) - Static method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
Creates a single filter column condition (column or table filter)
- createInClauseCondition(List) - Method in class de.calamanari.adl.sql.cnv.DefaultMatchConditionFactory
- createInClauseCondition(List) - Method in interface de.calamanari.adl.sql.cnv.MatchConditionFactory
- createInClauseCondition(List, SqlConversionProcessContext) - Static method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
Assumes a list of
MatchExpressions orNegationExpressions all dealing with the same argName, EQUALS-operator and plain values, so the result will be an IN-clause in case of OR vs. a NOT IN clause in case of AND. - createInstruction(String, String) - Method in enum class de.calamanari.adl.sql.config.DefaultSqlContainsPolicy
- createInstruction(String, String) - Method in interface de.calamanari.adl.sql.config.SqlContainsPolicy
-
Returns the SQL-instruction to compare a column against a pattern.
- createInstruction(String, String) - Method in class de.calamanari.adl.sql.config.SqlContainsPolicyDecorator
- createMatchCondition(CoreExpression) - Method in interface de.calamanari.adl.sql.cnv.MatchConditionFactory
-
Auto-detects the form of match-condition from the given expression which can either be a
MatchExpression, aNegationExpressionor aCombinedExpressionrepresenting an IN (OR or matches) resp. a NOT IN (AND of negations) - createMatchConditionFactory() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
This method allows sub-classes to replace the factory with a custom one
- createParameter(ArgMetaInfo, String, MatchOperator, AdlSqlType) - Method in class de.calamanari.adl.sql.DefaultQueryParameterCreator
- createParameter(ArgMetaInfo, String, MatchOperator, AdlSqlType) - Method in interface de.calamanari.adl.sql.QueryParameterCreator
-
Takes an argument from an expression with
AdlTypeinformation as its input to create aQueryParameterto be applied to aPreparedStatementat a later time. - createParameter(String, ArgMetaInfo, String, MatchOperator, AdlSqlType) - Method in class de.calamanari.adl.sql.DefaultQueryParameterCreator
-
This is the preferred method to create a valid parameter to ensure compatibility with the target column.
- createParameter(String, ArgMetaInfo, String, MatchOperator, AdlSqlType) - Method in interface de.calamanari.adl.sql.QueryParameterCreator
-
Takes an argument from an expression with
AdlTypeinformation as its input to create aQueryParameterto be applied to aPreparedStatementat a later time. - createPreparedStatement(Connection) - Method in record class de.calamanari.adl.sql.QueryTemplateWithParameters
-
Convenience method to create a
PreparedStatementand apply all parameters - createReference() - Method in interface de.calamanari.adl.sql.QueryParameter
- createSimpleCondition(SimpleExpression) - Method in class de.calamanari.adl.sql.cnv.DefaultMatchConditionFactory
- createSimpleCondition(SimpleExpression) - Method in interface de.calamanari.adl.sql.cnv.MatchConditionFactory
- createSimpleCondition(SimpleExpression, SqlConversionProcessContext) - Static method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
Creates a simple (negated) match condition (against value, or IS NULL) from the given expression
- createSqlQueryTemplate() - Method in class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
D
- dataBinding - Variable in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
Data binding (from context)
- dataBinding() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- DataBinding - Record Class in de.calamanari.adl.sql.config
-
The
DataBindingcontains all the meta information about the underlying store and the mapping to the logical argNames. - DataBinding(DataTableConfig, SqlContainsPolicy) - Constructor for record class de.calamanari.adl.sql.config.DataBinding
-
Creates an instance of a
DataBindingrecord class. - dataColumn(String, AdlSqlType) - Method in class de.calamanari.adl.sql.config.AbstractTableBuilder
- dataColumn(String, AdlSqlType) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.DataColumnStep1
-
Defines a data column of the given type.
- dataColumn(String, AdlSqlType) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.MultiTableDataColumnStep1
-
Adds a data column of the given type to the current table
- dataColumn(String, AdlSqlType) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.SingleTableAddColumnOrExit
-
Adds a data column of the given type to the current table
- DataColumn - Record Class in de.calamanari.adl.sql.config
-
A
DataColumndescribes the characteristics of a table colum in a database. - DataColumn(String, String, AdlSqlType, boolean, boolean, List) - Constructor for record class de.calamanari.adl.sql.config.DataColumn
-
Creates an instance of a
DataColumnrecord class. - dataColumnNameLeft(boolean) - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
Convenience method to obtain the effective data column name
- dataColumnNameRight(boolean) - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
Convenience method to obtain the effective data column name
- dataTableConfig() - Method in record class de.calamanari.adl.sql.config.DataBinding
-
Returns the value of the
dataTableConfigrecord component. - DataTableConfig - Interface in de.calamanari.adl.sql.config
-
A concrete
DataTableConfigmaps columns to argNames. - DATE_RANGE - Enum constant in enum class de.calamanari.adl.sql.cnv.ColumnConditionType
-
List contains two date values, first is the main date (the user-specified date), second is the aligned date after for creating a range query instead of an equals
- de.calamanari.adl.sql - package de.calamanari.adl.sql
- de.calamanari.adl.sql.cnv - package de.calamanari.adl.sql.cnv
- de.calamanari.adl.sql.config - package de.calamanari.adl.sql.config
- DEFAULT_BASE_QUERY_ALIAS - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
Default alias name for the query alias we are starting the query with
- DEFAULT_ID_COLUMN_NAME - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
Default name of the returned ID-column if nothing else is specified: "ID"
- DefaultAdlSqlType - Enum Class in de.calamanari.adl.sql
-
The
DefaultAdlSqlTypemaps a selection of the SQL-types defined inTypesand decorate them with the ability to act asAdlType. - DefaultAutoMappingPolicy - Class in de.calamanari.adl.sql.config
-
The
DefaultAutoMappingPolicymaps arguments to columns with a template-based approach and an extractor operator. - DefaultAutoMappingPolicy(DefaultAutoMappingPolicy.LocalArgNameExtractor, ArgColumnAssignment) - Constructor for class de.calamanari.adl.sql.config.DefaultAutoMappingPolicy
- DefaultAutoMappingPolicy.LocalArgNameExtractor - Interface in de.calamanari.adl.sql.config
-
Functional interface to ensure this part of the configuration remains serializable
- DefaultMatchConditionFactory - Class in de.calamanari.adl.sql.cnv
-
The
DefaultMatchConditionFactoryprovides integrated caching, so the exact same comparison or (NOT) IN-clause won't be prepared twice which also reduces the number of different parameters. - DefaultMatchConditionFactory(SqlConversionProcessContext) - Constructor for class de.calamanari.adl.sql.cnv.DefaultMatchConditionFactory
- DefaultQueryParameter - Record Class in de.calamanari.adl.sql
-
Default implementation of a
QueryParameterto pass a value to be set on a prepared statement - DefaultQueryParameter(String, AdlSqlType, Serializable, MatchOperator) - Constructor for record class de.calamanari.adl.sql.DefaultQueryParameter
-
Creates an instance of a
DefaultQueryParameterrecord class. - DefaultQueryParameterApplicator - Class in de.calamanari.adl.sql
-
The
DefaultQueryParameterApplicatorexclusively supports theDefaultAdlSqlTypeas base types, means the types themselves or any type that returns aDefaultAdlSqlTypeas its base type. - DefaultQueryParameterCreator - Class in de.calamanari.adl.sql
-
The
DefaultQueryParameterCreatortakes the base type (AdlType.getBaseType()) of an argument's type and tries to create aQueryParameterapplicable to the base type (AdlSqlType.getBaseType()) of the requested SQL-type. - DefaultSqlContainsPolicy - Enum Class in de.calamanari.adl.sql.config
-
The implementations in this enumerations cover the CONTAINS translation (typically SQL LIKE) for a couple of databases.
- DefaultSqlExpressionConverter - Class in de.calamanari.adl.sql.cnv
-
Standard implementation for transforming
CoreExpressions into SQL. - DefaultSqlExpressionConverter(DataBinding, Flag...) - Constructor for class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
- DefaultSqlExpressionConverter(DataBinding, Map, Flag...) - Constructor for class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
- DefaultSqlExpressionConverter(DataBinding, Map, Set) - Constructor for class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
- DefaultSqlExpressionConverter(DataBinding, Set) - Constructor for class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
- DefaultSqlExpressionConverter(Supplier, DataBinding, Map, Set) - Constructor for class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
- DefaultSqlFormatter - Enum Class in de.calamanari.adl.sql
-
The formatters in this enumeration define the default behavior when formatting values for sql.
- detectJoinType(String, List) - Method in class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
-
The decision whether a join will be created as INNER JOIN or LEFT OUTER JOIN works as follows: If possible it will be an INNER JOIN If the table is referenced in the where-clause If the table contains all IDs and the expression (condition of the join) does not incorrectly limit the result set. else: LEFT OUTER JOIN
- determineAdequateBaseQueryCombination(CoreExpressionSqlHelper, List) - Method in class de.calamanari.adl.sql.cnv.AliasHelper
-
At the begin of every SQL-query there must be a base selection to start with.
- determineAuxiliaryMainTable() - Method in class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
-
It can happen that we detect during the WITH-clause setup that there is neither a main table nor a primary alias, not even a combination (UNION) of aliases that can serve as base query.
- determineMainTable() - Method in class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
-
Determines and sets the main table to base the query on (if possible).
- determinePrimaryAlias(CoreExpressionSqlHelper, Set) - Method in class de.calamanari.adl.sql.cnv.AliasHelper
-
This method tests all available aliases if they have to be fulfilled to let the root expression to become true.
In case of success the methodAliasHelper.getPrimaryAlias()will return the identified alias. - determineReferenceMatchDataColumnOrAliasRight(MatchCondition, boolean) - Method in class de.calamanari.adl.sql.cnv.AliasHelper
-
Determines the effective name of the right side of a reference match.
- determineReferenceMatchIdColumnOrAliasRight(MatchCondition) - Method in class de.calamanari.adl.sql.cnv.AliasHelper
-
Determines the effective right ID column in a reference match
- determineReferenceMatchTableOrAliasRight(MatchCondition) - Method in class de.calamanari.adl.sql.cnv.AliasHelper
-
Determines the effective name of the right side table or alias of a reference match.
- determineReferenceMatchTableRight(MatchCondition) - Method in class de.calamanari.adl.sql.cnv.AliasHelper
-
Determines the effective name or alias of the right table in a reference match
- determineStartSelectionName() - Method in class de.calamanari.adl.sql.cnv.AliasHelper
-
Determines the identifier of the main query if not already present: either name of
AliasHelper.getPrimaryAlias()orAliasHelper.getBaseQueryAliasName() - determineTableNature() - Method in class de.calamanari.adl.sql.config.AbstractTableBuilder
- DISABLE_CONTAINS - Enum constant in enum class de.calamanari.adl.sql.cnv.ConversionDirective
-
This disallows any CONTAINS to SQL-translation, no matter how the data binding is configured.
- DISABLE_DATE_TIME_ALIGNMENT - Enum constant in enum class de.calamanari.adl.sql.cnv.ConversionDirective
-
By default the converter will align
DefaultAdlType.DATEto higher resolution typesDefaultAdlSqlType.SQL_TIMESTAMP,DefaultAdlSqlType.SQL_INTEGERorDefaultAdlSqlType.SQL_BIGINTby turning the query into a range query. - DISABLE_LESS_THAN_GREATER_THAN - Enum constant in enum class de.calamanari.adl.sql.cnv.ConversionDirective
-
This disallows any LESS THAN or GREATER THAN to be translated, no matter how the data binding is configured
- DISABLE_REFERENCE_MATCHING - Enum constant in enum class de.calamanari.adl.sql.cnv.ConversionDirective
-
This disallows any reference matching, no matter how the data binding is configured.
- DISABLE_UNION - Enum constant in enum class de.calamanari.adl.sql.cnv.ConversionDirective
-
This disallows the union of aliases as base query (always use any table with
TableNature.containsAllIds()instead - DISTINCT - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"DISTINCT"
- DUMMY_TYPE_CASTER - Static variable in enum class de.calamanari.adl.sql.DefaultAdlSqlType
-
There is no default type casting.
- DummyDataTableConfig - Class in de.calamanari.adl.sql.config
-
This implementation is for testing and debugging, it returns a dummy table name and the argName
E
- endsWithOpenBraceOrAllWhitespace(StringBuilder) - Static method in class de.calamanari.adl.sql.SqlFormatUtils
-
Tells whether ...
- ENFORCE_PRIMARY_TABLE - Enum constant in enum class de.calamanari.adl.sql.cnv.ConversionDirective
-
This directive enforces the usage of the primary table as start selection, no matter if the table is required in the current query or not.
- enterCombinedExpression(CombinedExpression) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- enterNegationExpression(NegationExpression) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- equals(Object) - Method in record class de.calamanari.adl.sql.cnv.ColumnCondition
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper.MinimalProcessContext
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionStats
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class de.calamanari.adl.sql.cnv.ExpressionAlias
- equals(Object) - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class de.calamanari.adl.sql.config.ArgColumnAssignment
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class de.calamanari.adl.sql.config.CompositeAutoMappingPolicy
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class de.calamanari.adl.sql.config.DataBinding
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class de.calamanari.adl.sql.config.DataColumn
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class de.calamanari.adl.sql.config.FilterColumn
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class de.calamanari.adl.sql.config.MultiTableConfig
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class de.calamanari.adl.sql.config.SingleTableConfig
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class de.calamanari.adl.sql.DefaultQueryParameter
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class de.calamanari.adl.sql.QueryTemplateWithParameters
-
Indicates whether some other object is "equal to" this one.
- exitCombinedExpression(CombinedExpression) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- ExpressionAlias - Class in de.calamanari.adl.sql.cnv
-
An
ExpressionAliasrepresents what we know (information gathered while building the query) about an alias query (WITH) for certain detail expression. - ExpressionAlias(String, CoreExpression) - Constructor for class de.calamanari.adl.sql.cnv.ExpressionAlias
- expressionHelper() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- extractorFunction - Variable in class de.calamanari.adl.sql.config.DefaultAutoMappingPolicy
-
The function that extracts the "${argName.local}" from the argName
F
- FALSE - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"FALSE"
- FILTER_LEFT - Enum constant in enum class de.calamanari.adl.sql.cnv.ColumnConditionType
-
A filter condition for the main column resp. the left side of a reference match, also used for table filter conditions
- FILTER_RIGHT - Enum constant in enum class de.calamanari.adl.sql.cnv.ColumnConditionType
-
A filter condition for the reference column resp. the right side of a reference match
- filterApplicableOnConditionExpressions(Set) - Method in class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
-
An ON-condition is a logical OR of all the conditions of the aliases' where clauses, which is not always plausible.
- FilterColumn - Record Class in de.calamanari.adl.sql.config
-
A
FilterColumndefines an extra filter condition to be applied to a query, so the scope of the original query will be narrowed. - FilterColumn(String, String, AdlSqlType, String) - Constructor for record class de.calamanari.adl.sql.config.FilterColumn
-
Creates an instance of a
FilterColumnrecord class. - filterColumns - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
optional filters for the current column
- filteredBy(String, AdlSqlType, String) - Method in class de.calamanari.adl.sql.config.AbstractTableBuilder
- filteredBy(String, AdlSqlType, String) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.DataColumnStep4
-
Defines an extra column filter on a column.
- filteredBy(String, AdlSqlType, String) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.MultiTableDataColumnStep4
-
Defines an extra column filter on a column.
- filteredBy(String, AdlSqlType, String) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.MultiTableStep3
-
Defines an extra column filter to be applied to each query on this table.
- filteredBy(String, AdlSqlType, String) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.SingleTableDataColumnStep4
-
Defines an extra column filter on a column.
- filteredBy(String, AdlSqlType, String) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.SingleTableStep4
-
Defines an extra column filter to be applied to each query on this table.
- filters() - Method in record class de.calamanari.adl.sql.config.DataColumn
-
Returns the value of the
filtersrecord component. - filterValue() - Method in record class de.calamanari.adl.sql.config.FilterColumn
-
Returns the value of the
filterValuerecord component. - findMinimumRequiredOrCombination(List, int) - Method in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
Tries to find the shortest OR-combination of candidates that guarantees the root expression to be true.
- findOnRestrictions(TableMetaInfo) - Method in class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
-
This method consolidates all available conditions related to a given table to construct a consolidated super-condition for the join (ON)
- finishResult() - Method in class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
- flags() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- format(String, String, MatchOperator) - Method in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- formatSqlBit(String, String, MatchOperator) - Static method in enum class de.calamanari.adl.sql.DefaultSqlFormatter
-
Formats the given string as a bit-value (0/1) if it is '0', '1', 'TRUE' or 'FALSE'
- formatSqlBoolean(String, String, MatchOperator) - Static method in enum class de.calamanari.adl.sql.DefaultSqlFormatter
-
Formats the given string as a boolean value (TRUE/FALSE) if it is '0', '1', 'TRUE' or 'FALSE'
- formatSqlDateDefaultStyle(String, String, MatchOperator) - Static method in enum class de.calamanari.adl.sql.DefaultSqlFormatter
-
Formats the given string if it matches the format
yyyy-MM-ddand represents a valid UTC-time. - formatSqlDateMySqlStyle(String, String, MatchOperator) - Static method in enum class de.calamanari.adl.sql.DefaultSqlFormatter
-
Formats the given string if it matches the format
yyyy-MM-ddand represents a valid UTC-time. - formatSqlDateOracleStyle(String, String, MatchOperator) - Static method in enum class de.calamanari.adl.sql.DefaultSqlFormatter
-
Formats the given string if it matches the format
yyyy-MM-ddand represents a valid UTC-time. - formatSqlDatePlain(String, String, MatchOperator) - Static method in enum class de.calamanari.adl.sql.DefaultSqlFormatter
-
Formats the given string if it matches the format
yyyy-MM-ddand represents a valid UTC-time. - formatSqlDateSqlServerStyle(String, String, MatchOperator) - Static method in enum class de.calamanari.adl.sql.DefaultSqlFormatter
-
Formats the given string if it matches the format
yyyy-MM-ddand represents a valid UTC-time. - formatSqlInteger(String, String, MatchOperator) - Static method in enum class de.calamanari.adl.sql.DefaultSqlFormatter
-
Formats the given string as integer if it is in 32-bit signed integer range
- formatSqlSmallInt(String, String, MatchOperator) - Static method in enum class de.calamanari.adl.sql.DefaultSqlFormatter
-
Formats the given string as integer if it is in 16-bit signed short range
- formatSqlTimestampDefaultStyle(String, String, MatchOperator) - Static method in enum class de.calamanari.adl.sql.DefaultSqlFormatter
-
Formats the given string if it either matches the format
yyyy-MM-ddoryyyy-MM-dd HH:mm:ssand represents a valid UTC-time. - formatSqlTimestampMySqlStyle(String, String, MatchOperator) - Static method in enum class de.calamanari.adl.sql.DefaultSqlFormatter
-
Formats the given string if it either matches the format
yyyy-MM-ddoryyyy-MM-dd HH:mm:ssand represents a valid UTC-time. - formatSqlTimestampOracleStyle(String, String, MatchOperator) - Static method in enum class de.calamanari.adl.sql.DefaultSqlFormatter
-
Formats the given string if it either matches the format
yyyy-MM-ddoryyyy-MM-dd HH:mm:ssand represents a valid UTC-time. - formatSqlTimestampPlain(String, String, MatchOperator) - Static method in enum class de.calamanari.adl.sql.DefaultSqlFormatter
-
Formats the given string if it either matches the format
yyyy-MM-ddoryyyy-MM-dd HH:mm:ssand represents a valid UTC-time. - formatSqlTimestampSqlServerStyle(String, String, MatchOperator) - Static method in enum class de.calamanari.adl.sql.DefaultSqlFormatter
-
Formats the given string if it either matches the format
yyyy-MM-ddoryyyy-MM-dd HH:mm:ssand represents a valid UTC-time. - formatSqlTinyInt(String, String, MatchOperator) - Static method in enum class de.calamanari.adl.sql.DefaultSqlFormatter
-
Formats the given string as integer if it is in 8-bit unsigned byte range
- forTable(String) - Static method in record class de.calamanari.adl.sql.config.DataColumn
-
Starts the fluent building process for a data column
- forTable(String) - Static method in record class de.calamanari.adl.sql.config.SingleTableConfig
-
Entry point for fluently setting up a table in the the physical data model and along with it the logical data model (mapped argNames)
- forTable(String, ArgMetaInfoLookup) - Static method in record class de.calamanari.adl.sql.config.SingleTableConfig
-
Entry point for setting up a table and for mapping it to existing argNames
- from(CoreExpression, DataBinding, ProcessContext) - Static method in record class de.calamanari.adl.sql.cnv.CoreExpressionStats
-
Analyzes the given root expression considering the configured data binding and returns statistics to be used during expression to SQL conversion.
- FROM - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"FROM"
G
- get() - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.DataColumnStep4
- get() - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.MultiTableExit
- get() - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.SingleTableAddColumnOrExit
- getAliasesInWhereClause() - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- getAliasesInWhereClause() - Method in interface de.calamanari.adl.sql.cnv.SqlConversionProcessContext
- getAliasHelper() - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- getAliasHelper() - Method in interface de.calamanari.adl.sql.cnv.SqlConversionProcessContext
- getAugmentationListener() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- getAugmentationListener() - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- getBaseQueryAliasName() - Method in class de.calamanari.adl.sql.cnv.AliasHelper
-
Returns the name to be used for the base query alias if required.
- getBaseType() - Method in interface de.calamanari.adl.sql.AdlSqlType
- getBaseType() - Method in class de.calamanari.adl.sql.AdlSqlTypeDecorator
- getCombiType() - Method in class de.calamanari.adl.sql.cnv.SqlConversionContext
- getConditionFactory() - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- getConditionFactory() - Method in interface de.calamanari.adl.sql.cnv.SqlConversionProcessContext
- getDataBinding() - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- getDataBinding() - Method in interface de.calamanari.adl.sql.cnv.SqlConversionProcessContext
- getExpression() - Method in class de.calamanari.adl.sql.cnv.ExpressionAlias
-
This returns the expression (resp. the positive form) behind this alias.
- getExpressionHelper() - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- getExpressionHelper() - Method in interface de.calamanari.adl.sql.cnv.SqlConversionProcessContext
- getFormatter() - Method in class de.calamanari.adl.sql.AdlSqlTypeDecorator
- getFormatter() - Method in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- getGlobalFlags() - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper.MinimalProcessContext
- getGlobalFlags() - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- getGlobalFlagsTemplate() - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- getGlobalVariables() - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper.MinimalProcessContext
- getGlobalVariables() - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- getGlobalVariablesTemplate() - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- getIdColumnName() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- getIdColumnName() - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- getIdColumnName() - Method in interface de.calamanari.adl.sql.cnv.SqlConversionProcessContext
- getInitialFlags() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
Returns the flag configuration passed to the constructor
- getInitialVariables() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
Returns the variable configuration passed to the constructor
- getInstance() - Static method in class de.calamanari.adl.sql.config.DummyDataTableConfig
- getInstance() - Static method in class de.calamanari.adl.sql.DefaultQueryParameterApplicator
- getInstance() - Static method in class de.calamanari.adl.sql.DefaultQueryParameterCreator
- getJavaSqlType() - Method in interface de.calamanari.adl.sql.AdlSqlType
- getJavaSqlType() - Method in class de.calamanari.adl.sql.AdlSqlTypeDecorator
- getJavaSqlType() - Method in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- getLeftFilterColumnConditions() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
- getMainIdColumnName() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
Resolves the main id-column for joining further tables.
- getMainIdColumnName() - Method in interface de.calamanari.adl.sql.cnv.SqlConversionProcessContext
-
Resolves the main id-column for joining further tables.
- getMainTable() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
The main table is the table to start the query with.
- getMainTable() - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- getMainTable() - Method in interface de.calamanari.adl.sql.cnv.SqlConversionProcessContext
-
The main table is the table to start the query with.
- getName() - Method in class de.calamanari.adl.sql.cnv.ExpressionAlias
- getNativeTypeCaster() - Method in class de.calamanari.adl.sql.AdlSqlTypeDecorator
- getNativeTypeCaster() - Method in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- getNegativeReferenceCount() - Method in class de.calamanari.adl.sql.cnv.ExpressionAlias
- getOrCreateAlias(CoreExpression) - Method in class de.calamanari.adl.sql.cnv.AliasHelper
-
Returns an alias for the given expression.
- getOrderedAliasList() - Method in class de.calamanari.adl.sql.cnv.AliasHelper
-
Returns all aliases (main aliases and supplementary aliases) ordered by name
- getPositiveReferenceCount() - Method in class de.calamanari.adl.sql.cnv.ExpressionAlias
- getPrimaryAlias() - Method in class de.calamanari.adl.sql.cnv.AliasHelper
-
Returns the primary alias if it is available.
- getPrimaryColumnCondition() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
- getProcessContext() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
Returns the converter's process context across the levels of a conversion.
- getProcessContext() - Method in class de.calamanari.adl.sql.cnv.SqlConversionContext
- getQueryParameterApplicator() - Method in interface de.calamanari.adl.sql.AdlSqlType
- getQueryParameterApplicator() - Method in class de.calamanari.adl.sql.AdlSqlTypeDecorator
- getQueryParameterApplicator() - Method in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- getQueryParameterCreator() - Method in interface de.calamanari.adl.sql.AdlSqlType
- getQueryParameterCreator() - Method in class de.calamanari.adl.sql.AdlSqlTypeDecorator
- getQueryParameterCreator() - Method in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- getQueryType() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- getQueryType() - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- getQueryType() - Method in interface de.calamanari.adl.sql.cnv.SqlConversionProcessContext
- getRegisteredParameters() - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- getRegisteredParameters() - Method in interface de.calamanari.adl.sql.cnv.SqlConversionProcessContext
- getRightFilterColumnConditions() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
- getSkippedChildExpressions() - Method in class de.calamanari.adl.sql.cnv.SqlConversionContext
- getStartSelectionName() - Method in class de.calamanari.adl.sql.cnv.AliasHelper
-
Returns the identifier of the main query in the statement
- getStats() - Method in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
Returns the initially gathered statistics about the root expression currently being converted.
- getStyle() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- getStyle() - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- getStyle() - Method in interface de.calamanari.adl.sql.cnv.SqlConversionProcessContext
- getTablesInWhereClause() - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- getTablesInWhereClause() - Method in interface de.calamanari.adl.sql.cnv.SqlConversionProcessContext
- getWhereClause() - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- getWhereClause() - Method in interface de.calamanari.adl.sql.cnv.SqlConversionProcessContext
- globalFlags() - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper.MinimalProcessContext
-
Returns the value of the
globalFlagsrecord component. - globalVariables() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- globalVariables() - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper.MinimalProcessContext
-
Returns the value of the
globalVariablesrecord component. - groupAliasesByTable(MatchConditionFactory, List) - Method in class de.calamanari.adl.sql.cnv.AliasHelper
-
Groups any aliases by table or table-duo (reference matches on two tables)
- groupInClauses(CombinedExpression, List, List) - Method in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
This method takes a
CombinedExpression(AND vs.
H
- handleAfterMainSelect(StringBuilder, SqlConversionProcessContext) - Method in interface de.calamanari.adl.sql.cnv.SqlAugmentationListener
-
Called right after appending
SqlFormatConstants.SELECTto the main selection part - handleAfterOnConditions(StringBuilder, SqlConversionProcessContext, String, String) - Method in interface de.calamanari.adl.sql.cnv.SqlAugmentationListener
-
Called after finishing the ON-part of a join
- handleAfterScript(StringBuilder, SqlConversionProcessContext) - Method in interface de.calamanari.adl.sql.cnv.SqlAugmentationListener
-
Called after the SQL-script is complete (after finishing the main WHERE-clause)
- handleAfterWithSelect(StringBuilder, SqlConversionProcessContext, String...) - Method in interface de.calamanari.adl.sql.cnv.SqlAugmentationListener
-
Called right after appending
SqlFormatConstants.SELECTto selection part of a WITH-element - handleAppendJoinType(StringBuilder, SqlConversionProcessContext, String, String, String) - Method in interface de.calamanari.adl.sql.cnv.SqlAugmentationListener
-
The default implementation just appends the suggested join type e.g.
- handleBeforeMainStatement(StringBuilder, SqlConversionProcessContext, boolean) - Method in interface de.calamanari.adl.sql.cnv.SqlAugmentationListener
-
Called before the main SELECT line
- handleBeforeOnClause(StringBuilder, SqlConversionProcessContext, String, String) - Method in interface de.calamanari.adl.sql.cnv.SqlAugmentationListener
-
Called right before printing the text "ON"
- handleBeforeOnConditions(StringBuilder, SqlConversionProcessContext, String, String) - Method in interface de.calamanari.adl.sql.cnv.SqlAugmentationListener
-
Called before printing an ON-condition, means right after the text "ON"
- handleBeforeScript(StringBuilder, SqlConversionProcessContext) - Method in interface de.calamanari.adl.sql.cnv.SqlAugmentationListener
-
Called before starting the SQL-script
- handleMatchExpression(MatchExpression) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- handleParameter(String, String, int, int) - Method in interface de.calamanari.adl.sql.QueryTemplateParser.ParameterListener
-
Informs the listener about a parameter reference found in the template.
- handleSpecialSetExpression(SpecialSetExpression) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- hasAnyFilterColumnConditions() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
- hasAnyMultiRowSensitiveArgs() - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionStats
- hashCode() - Method in record class de.calamanari.adl.sql.cnv.ColumnCondition
-
Returns a hash code value for this object.
- hashCode() - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper.MinimalProcessContext
-
Returns a hash code value for this object.
- hashCode() - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionStats
-
Returns a hash code value for this object.
- hashCode() - Method in class de.calamanari.adl.sql.cnv.ExpressionAlias
- hashCode() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
Returns a hash code value for this object.
- hashCode() - Method in record class de.calamanari.adl.sql.config.ArgColumnAssignment
-
Returns a hash code value for this object.
- hashCode() - Method in record class de.calamanari.adl.sql.config.CompositeAutoMappingPolicy
-
Returns a hash code value for this object.
- hashCode() - Method in record class de.calamanari.adl.sql.config.DataBinding
-
Returns a hash code value for this object.
- hashCode() - Method in record class de.calamanari.adl.sql.config.DataColumn
-
Returns a hash code value for this object.
- hashCode() - Method in record class de.calamanari.adl.sql.config.FilterColumn
-
Returns a hash code value for this object.
- hashCode() - Method in record class de.calamanari.adl.sql.config.MultiTableConfig
-
Returns a hash code value for this object.
- hashCode() - Method in record class de.calamanari.adl.sql.config.SingleTableConfig
-
Returns a hash code value for this object.
- hashCode() - Method in record class de.calamanari.adl.sql.DefaultQueryParameter
-
Returns a hash code value for this object.
- hashCode() - Method in record class de.calamanari.adl.sql.QueryTemplateWithParameters
-
Returns a hash code value for this object.
- haveDataColumns - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
Indicates that the column building has started, this is only to distinguish between the initial state (no pending column) and the working state
- hints() - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionStats
-
Returns the value of the
hintsrecord component.
I
- id() - Method in record class de.calamanari.adl.sql.DefaultQueryParameter
-
Returns the value of the
idrecord component. - id() - Method in interface de.calamanari.adl.sql.QueryParameter
- ID_SUBSET - Enum constant in enum class de.calamanari.adl.sql.config.TableNature
-
Table does usually not contain all IDs but only a subset (this is the default).
- ID_SUBSET_SPARSE - Enum constant in enum class de.calamanari.adl.sql.config.TableNature
-
Table does usually not contain all IDs but only a subset, and it contains sparse data (treat columns independently).
- ID_SUBSET_UNIQUE - Enum constant in enum class de.calamanari.adl.sql.config.TableNature
-
Table does usually not contain all IDs but only a subset, each ID appears only once (if at all).
- idColumn(String) - Method in class de.calamanari.adl.sql.config.AbstractTableBuilder
- idColumn(String) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.MultiTableStep3
-
Configures the id-column of the table for joining and result retrieval.
- idColumn(String) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.SingleTableStep4
-
Configures the id-column of the table for joining and result retrieval.
- idColumnName - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
ID-column name for the current table
- idColumnName() - Method in record class de.calamanari.adl.sql.config.SingleTableConfig
-
Returns the value of the
idColumnNamerecord component. - idColumnName() - Method in interface de.calamanari.adl.sql.config.TableMetaInfo
-
Returns the id-column name of the table for joining and result retrieval.
- idColumnNameLeft(boolean) - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
Convenience method to obtain the effective ID column name
- idColumnNameRight(boolean) - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
Convenience method to obtain the effective ID column name
- IN - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"IN"
- IN_CLAUSE - Enum constant in enum class de.calamanari.adl.sql.cnv.ColumnConditionType
-
Values for an IN-clause, list contains at least two elements
- init() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- init() - Method in class de.calamanari.adl.sql.cnv.DefaultSqlExpressionConverter
- init() - Method in interface de.calamanari.adl.sql.cnv.SqlAugmentationListener
-
This method is called to initialize/reset the listener to avoid mixing state related to different conversion runs.
- INNER_JOIN - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"INNER JOIN"
- IS_NOT_NULL - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"IS NOT NULL"
- IS_NULL - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"IS NULL"
- isAlwaysKnown() - Method in record class de.calamanari.adl.sql.config.DataColumn
-
Returns the value of the
isAlwaysKnownrecord component. - isApplicable(String) - Method in interface de.calamanari.adl.sql.config.AutoMappingPolicy
-
Returns whether this mapping policy can map the given argument to a column
- isApplicable(String) - Method in record class de.calamanari.adl.sql.config.CompositeAutoMappingPolicy
- isApplicable(String) - Method in class de.calamanari.adl.sql.config.DefaultAutoMappingPolicy
- isClosingBraceSuppressed() - Method in class de.calamanari.adl.sql.cnv.SqlConversionContext
- isCompatibleWith(AdlType) - Method in interface de.calamanari.adl.sql.AdlSqlType
-
Tells whether there is a chance that a value of the given argument type can be translated into an sql paramter of this type.
- isDualTableReferenceMatch() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
- isEligibleForBaseQuery(CoreExpression) - Method in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
The query related to an expression is eligible to serve as a base query if it is either a (negated) match against a non-null value (except for
CoreExpressionSqlHelper.isNullQueryingAllowed(String)) or a reference match or a (NOT) IN clause. - isExtraExistenceMatchRequired(MatchCondition) - Method in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
Tells whether we must add an extra "has any value check".
- isIdUnique() - Method in enum class de.calamanari.adl.sql.config.TableNature
-
Tells the system that in this table there cannot exist multiple rows for the same record (ID)
- isMultiRow() - Method in record class de.calamanari.adl.sql.config.DataColumn
-
Returns the value of the
isMultiRowrecord component. - isMultiRowSensitive(String) - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionStats
- isMultiRowSensitiveMatch(MatchCondition) - Method in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
This method checks if there are multi-row sensitive arguments involved in the given expression.
- isNegation() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
Returns the value of the
isNegationrecord component. - isNegation() - Method in class de.calamanari.adl.sql.cnv.SqlConversionContext
- isNullMatch() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
- isNullQueryingAllowed(String) - Method in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
Tells whether we can safely translate IS UNKNOWN into IS NULL for a given argName, and the result could serve as a base query.
- isPrimaryAliasRunnningOnPrimaryTable(CoreExpressionSqlHelper) - Method in class de.calamanari.adl.sql.cnv.AliasHelper
-
This method determines if there is a primary alias and this alias runs on the primary table.
- isPrimaryTable() - Method in enum class de.calamanari.adl.sql.config.TableNature
-
Tells that this table should be used as the primary table of a setup, means the table to start the base selection on before joining any other table.
- isPrimaryTableInvolved(SimpleExpression) - Method in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
Determines if the primary table is involved in the SQL that maps to the given expression.
- isReferenceMatch() - Method in class de.calamanari.adl.sql.cnv.ExpressionAlias
- isReferenceMatch() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
- isSeparateBaseTableRequired() - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionStats
-
Returns the value of the
isSeparateBaseTableRequiredrecord component. - isSimpleExpressionOnPrimaryTable(CoreExpression) - Method in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
Determines if the given expression is a
SimpleExpressionrelated to the primary table (either value match or by reference, left or right). - isSingleTableReferenceMatchInvolvingMultipleRows() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
- isSkipped(CoreExpression) - Method in class de.calamanari.adl.sql.cnv.SqlConversionContext
- isSparse() - Method in enum class de.calamanari.adl.sql.config.TableNature
- isSubNested(CoreExpression) - Static method in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
Shorthand for checking if the given expression is a
CombinedExpressionthat itself contains further levels ofCombinedExpressions - isSupersetOfRootExpression(CoreExpression) - Method in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
Performs a logical check if the given expression is required to be true by the root expression resp. if the ID-set covered by the given expression is the same as or a superset of the ID-set covered by the root expression.
- isTypeCombinationSupported(AdlType, AdlSqlType) - Method in class de.calamanari.adl.sql.DefaultQueryParameterCreator
- isTypeCombinationSupported(AdlType, AdlSqlType) - Method in interface de.calamanari.adl.sql.QueryParameterCreator
-
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. - isValidArgName(String) - Static method in class de.calamanari.adl.sql.config.ConfigUtils
- isValidColumnName(String) - Static method in class de.calamanari.adl.sql.config.ConfigUtils
-
Validates the given column name.
- isValidTableName(String) - Static method in class de.calamanari.adl.sql.config.ConfigUtils
-
Validates the given table name.
L
- LEFT_OUTER_JOIN - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"LEFT OUTER JOIN"
- LEFT_OUTER_JOINS_REQUIRED - Enum constant in enum class de.calamanari.adl.sql.cnv.ConversionHint
-
Derived hint: this query cannot be created with all inner joins in the main query
- lookup(String) - Method in interface de.calamanari.adl.sql.config.DataTableConfig
- lookupAssignment(String, ProcessContext) - Method in interface de.calamanari.adl.sql.config.DataTableConfig
-
Determines the column assignment for the given argName.
- lookupAssignment(String, ProcessContext) - Method in class de.calamanari.adl.sql.config.DummyDataTableConfig
- lookupAssignment(String, ProcessContext) - Method in record class de.calamanari.adl.sql.config.MultiTableConfig
- lookupAssignment(String, ProcessContext) - Method in record class de.calamanari.adl.sql.config.SingleTableConfig
- lookupColumn(String, ProcessContext) - Method in interface de.calamanari.adl.sql.config.DataTableConfig
-
Returns the data column mapped to the given argName.
- lookupTableMetaInfo(String, ProcessContext) - Method in interface de.calamanari.adl.sql.config.DataTableConfig
-
Returns the table meta infos for the column that is mapped to the given argName
- lookupTableMetaInfo(String, ProcessContext) - Method in class de.calamanari.adl.sql.config.DummyDataTableConfig
- lookupTableMetaInfo(String, ProcessContext) - Method in record class de.calamanari.adl.sql.config.MultiTableConfig
- lookupTableMetaInfo(String, ProcessContext) - Method in record class de.calamanari.adl.sql.config.SingleTableConfig
- lookupTableMetaInfoByTableName(String) - Method in interface de.calamanari.adl.sql.config.DataTableConfig
-
Shorthand for finding the meta info in
DataTableConfig.allTableMetaInfos()by table name
M
- map(String, ProcessContext) - Method in interface de.calamanari.adl.sql.config.AutoMappingPolicy
-
Returns the column assignment for the given argName
- map(String, ProcessContext) - Method in record class de.calamanari.adl.sql.config.CompositeAutoMappingPolicy
- map(String, ProcessContext) - Method in class de.calamanari.adl.sql.config.DefaultAutoMappingPolicy
- mappedArgName - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
argName mapped to the current column
- mappedArgType - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
type of the arg mapped to the current column
- mappedToArgName(String) - Method in class de.calamanari.adl.sql.config.AbstractTableBuilder
- mappedToArgName(String) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.MultiTableDataColumnStep1a
-
Maps the column to an attribute (argName) of the logical data model which has been configured in advance.
You can map the same column to multiple attributes but not vice-versa. - mappedToArgName(String) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.SingleTableDataColumnStep1
-
Maps the column to an attribute (argName) of the logical data model which has been configured in advance.
You can map the same column to multiple attributes but not vice-versa. - mappedToArgName(String, AdlType) - Method in class de.calamanari.adl.sql.config.AbstractTableBuilder
- mappedToArgName(String, AdlType) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.MultiTableDataColumnStep1a
-
Maps the column to an attribute (argName) of the logical data model.
You can map the same column to multiple attributes but not vice-versa. - mappedToArgName(String, AdlType) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.SingleTableDataColumnStep1
-
Maps the column to an attribute (argName) of the logical data model.
You can map the same column to multiple attributes but not vice-versa. - markNegation() - Method in class de.calamanari.adl.sql.cnv.SqlConversionContext
-
Marks this level to be a negated match
- MatchCondition - Record Class in de.calamanari.adl.sql.cnv
-
A
MatchConditionis an instruction to create an SQL term that either ... - MatchCondition(MatchOperator, boolean, String, TableMetaInfo, DataColumn, String, TableMetaInfo, DataColumn, List) - Constructor for record class de.calamanari.adl.sql.cnv.MatchCondition
-
Creates an instance of a
MatchConditionrecord class. - MatchConditionFactory - Interface in de.calamanari.adl.sql.cnv
-
A
MatchConditionFactoryabstracts the preparation step of aMatchCondition. - members() - Method in record class de.calamanari.adl.sql.config.CompositeAutoMappingPolicy
-
Returns the value of the
membersrecord component. - MinimalProcessContext(Map, Set) - Constructor for record class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper.MinimalProcessContext
-
Creates an instance of a
MinimalProcessContextrecord class. - multiRow() - Method in class de.calamanari.adl.sql.config.AbstractTableBuilder
- multiRow() - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.DataColumnStep3
-
Defines that the data for a single record can be spread across multiple rows.
- multiRow() - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.MultiTableDataColumnStep3
-
Defines that the data for a single record can be spread across multiple rows.
- multiRow() - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.SingleTableDataColumnStep3
-
Defines that the data for a single record can be spread across multiple rows.
- multiRowFlag - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
setting for the current column
- MultiTableConfig - Record Class in de.calamanari.adl.sql.config
-
A
MultiTableConfigis composed ofSingleTableConfigs to map argNames uniquely to columns of multiple tables. - MultiTableConfig(List) - Constructor for record class de.calamanari.adl.sql.config.MultiTableConfig
-
Creates an instance of a
MultiTableConfigrecord class. - MYSQL - Enum constant in enum class de.calamanari.adl.sql.config.DefaultSqlContainsPolicy
-
Creates a standard like with pattern concatenation using CONCAT.
N
- name() - Method in class de.calamanari.adl.sql.AdlSqlTypeDecorator
- name() - Method in interface de.calamanari.adl.sql.config.SqlContainsPolicy
- name() - Method in class de.calamanari.adl.sql.config.SqlContainsPolicyDecorator
- nativeCondition() - Method in record class de.calamanari.adl.sql.config.FilterColumn
- negate(MatchCondition) - Static method in record class de.calamanari.adl.sql.cnv.MatchCondition
- NO_AND - Enum constant in enum class de.calamanari.adl.sql.cnv.ConversionHint
-
The expression to be converted is either an atom (e.g.,
color=red) or an OR of atoms (e.g.,color=red OR shape=circle OR size=XXL) - NO_IS_UNKNOWN - Enum constant in enum class de.calamanari.adl.sql.cnv.ConversionHint
-
The expression to be converted does not contain any (negated)
MatchOperator.IS_UNKNOWN - NO_JOINS_REQUIRED - Enum constant in enum class de.calamanari.adl.sql.cnv.ConversionHint
-
Derived hint: this query does not require any joins, all conditions can be applied as-is
- NO_MULTI_ROW_REFERENCE_MATCH - Enum constant in enum class de.calamanari.adl.sql.cnv.ConversionHint
-
There is no reference match with or against a multi-row argument
- NO_MULTI_ROW_SENSITIVITY - Enum constant in enum class de.calamanari.adl.sql.cnv.ConversionHint
-
None of the involved args is sensitive to multi-row
- NO_OR - Enum constant in enum class de.calamanari.adl.sql.cnv.ConversionHint
-
The expression to be converted is either an atom (e.g.,
color=red) or an AND of atoms (e.g.,color=red AND shape=circle AND size=XXL) - NO_REFERENCE_MATCH - Enum constant in enum class de.calamanari.adl.sql.cnv.ConversionHint
-
The expression to be converted does not compare any arguments to other arguments
- none() - Static method in interface de.calamanari.adl.sql.cnv.SqlAugmentationListener
-
Returns a dummy instance
- none() - Static method in interface de.calamanari.adl.sql.config.SqlContainsPolicy.PreparatorFunction
-
This function does not change the text snippet at all.
- NONE - Static variable in class de.calamanari.adl.sql.config.DefaultAutoMappingPolicy
-
Configuration element if no policy is defined to avoid null
- NOT - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"NOT"
- numberOfTables() - Method in interface de.calamanari.adl.sql.config.DataTableConfig
-
Returns the total number of tables in this configuration
- numberOfTables() - Method in class de.calamanari.adl.sql.config.DummyDataTableConfig
- numberOfTables() - Method in record class de.calamanari.adl.sql.config.MultiTableConfig
- numberOfTables() - Method in record class de.calamanari.adl.sql.config.SingleTableConfig
- numberOfTablesInvolved(List, ProcessContext) - Method in interface de.calamanari.adl.sql.config.DataTableConfig
-
Performs a lookup for each of the given argNames and counts the related tables (distinct count).
O
- of(String, List) - Static method in record class de.calamanari.adl.sql.QueryTemplateWithParameters
-
Takes a template with named parameters (
${id}references) and a list of parameters to produce a query template with positional parameters to be executed later as aPreparedStatementafter callingQueryTemplateWithParameters.apply(PreparedStatement)to set the parameters safely. - ON - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"ON"
- operator() - Method in record class de.calamanari.adl.sql.cnv.ColumnCondition
-
Returns the value of the
operatorrecord component. - operator() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
Returns the value of the
operatorrecord component. - operator() - Method in record class de.calamanari.adl.sql.DefaultQueryParameter
-
Returns the value of the
operatorrecord component. - operator() - Method in interface de.calamanari.adl.sql.QueryParameter
-
Returns the operator currently being translated.
- OR - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"OR"
- ORDER_BY - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"ORDER BY"
- orderedParameters() - Method in record class de.calamanari.adl.sql.QueryTemplateWithParameters
-
Returns the value of the
orderedParametersrecord component.
P
- parameters() - Method in record class de.calamanari.adl.sql.cnv.ColumnCondition
-
Returns the value of the
parametersrecord component. - parseSqlTemplate(String) - Method in class de.calamanari.adl.sql.QueryTemplateParser
-
Parses the given template and informs the listener about any parameter occurrence.
- prepareRootExpression() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- prepareSearchSnippet(String) - Method in enum class de.calamanari.adl.sql.config.DefaultSqlContainsPolicy
- prepareSearchSnippet(String) - Method in interface de.calamanari.adl.sql.config.SqlContainsPolicy
-
This method allows to modify the snippet to conform to a specific database.
- prepareSearchSnippet(String) - Method in class de.calamanari.adl.sql.config.SqlContainsPolicyDecorator
- prepareVariables(String, ProcessContext) - Method in class de.calamanari.adl.sql.config.DefaultAutoMappingPolicy
-
This TEMPLATE METHOD allows sub-classes to compute and set further global variables which can then be referenced inside the mapping process.
- PRIMARY - Enum constant in enum class de.calamanari.adl.sql.config.TableNature
-
Table contains all IDs and is marked as primary table (to start selections)
- PRIMARY_SPARSE - Enum constant in enum class de.calamanari.adl.sql.config.TableNature
-
Table contains all IDs, and it contains sparse data (treat columns independently), and it is marked as primary table (to start selections)
- PRIMARY_UNIQUE - Enum constant in enum class de.calamanari.adl.sql.config.TableNature
-
Table contains all IDs, each ID appears once and once-only.
- primaryTable() - Method in interface de.calamanari.adl.sql.config.DataTableConfig
-
Returns the primary table of this configuration.
- primaryTableFlag - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
setting for the current table
- processContext - Variable in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
Reference to variables and flags
Q
- qmPositions() - Method in record class de.calamanari.adl.sql.QueryTemplateWithParameters
-
Returns the value of the
qmPositionsrecord component. - qmTemplate() - Method in record class de.calamanari.adl.sql.QueryTemplateWithParameters
-
Returns the value of the
qmTemplaterecord component. - QueryParameter - Interface in de.calamanari.adl.sql
-
A
QueryParameterencapsulates the action to correctly set a parameter on a prepared statement. - QueryParameterApplicator - Interface in de.calamanari.adl.sql
-
Instances encapsulate the knowledge how to apply a parameter to a statement.
- QueryParameterCreator - Interface in de.calamanari.adl.sql
-
A
QueryParameterCreatorcreates aQueryParameterfrom an argument value of an expression. - QueryPreparationException - Exception Class in de.calamanari.adl.sql
-
Exception to be thrown on unexpected problems when setting up an sql-query.
- QueryPreparationException(String) - Constructor for exception class de.calamanari.adl.sql.QueryPreparationException
- QueryPreparationException(String, Throwable) - Constructor for exception class de.calamanari.adl.sql.QueryPreparationException
- QueryPreparationException(Throwable) - Constructor for exception class de.calamanari.adl.sql.QueryPreparationException
- QueryTemplateParser - Class in de.calamanari.adl.sql
-
A
QueryParameterparses a template with named parameters (${id}) to trigger the registered listener on any occurrence with the name and the exact position. - QueryTemplateParser(QueryTemplateParser.ParameterListener) - Constructor for class de.calamanari.adl.sql.QueryTemplateParser
-
Creates a new instance with the given
QueryTemplateParser.ParameterListenerto be triggered - QueryTemplateParser.ParameterListener - Interface in de.calamanari.adl.sql
-
When parsing a template a listener can replace the parameter references, typically with question marks and collect the parameters in correct order.
- QueryTemplateWithParameters - Record Class in de.calamanari.adl.sql
-
An
QueryTemplateWithParameterscombines an SQL-script with positional parameters (question marks) with the parameters to be set once the relatedPreparedStatementhas been created. - QueryTemplateWithParameters(String, List, List) - Constructor for record class de.calamanari.adl.sql.QueryTemplateWithParameters
-
In general you should use
QueryTemplateWithParameters.of(String, List)instead of directly calling this constructor - QueryType - Enum Class in de.calamanari.adl.sql
-
Identifies the kind of query
R
- REFERENCE - Enum constant in enum class de.calamanari.adl.sql.cnv.ColumnConditionType
-
Identifies a match of two columns against each other
- registerNegativeReference() - Method in class de.calamanari.adl.sql.cnv.ExpressionAlias
-
Increments the number of negative references to this alias (counts a negation)
- registerParameter(QueryParameter) - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- registerParameter(QueryParameter) - Method in interface de.calamanari.adl.sql.cnv.SqlConversionProcessContext
-
Registers a query parameter of the current query.
- registerPositiveReference() - Method in class de.calamanari.adl.sql.cnv.ExpressionAlias
-
Increments the number of positive references to this alias
- requiredTables() - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionStats
-
Returns the value of the
requiredTablesrecord component. - requiresAllRowsOfTableQueryInUnion() - Method in class de.calamanari.adl.sql.cnv.ExpressionAlias
-
This method determines if a query required the positive result set and its inversion within the same query.
- reset() - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
-
Initializes this context, so its state has the initially configured flags and variables again
- resetIdSequence() - Static method in class de.calamanari.adl.sql.DefaultQueryParameterCreator
-
Resets the ID-sequence (for parameters) to its initial value (for testing purposes to get reproducible results)
- ResettableScpContext - Class in de.calamanari.adl.sql.cnv
-
Implementation of a resettable
SqlConversionProcessContext. - ResettableScpContext(DataBinding, Map, Set) - Constructor for class de.calamanari.adl.sql.cnv.ResettableScpContext
- rootExpression - Variable in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
reference to the expression currently being converted, required for logic checks
- rootNode - Variable in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
binary root node for quick access
S
- SELECT - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"SELECT"
- SELECT_DISTINCT_COUNT - Enum constant in enum class de.calamanari.adl.sql.QueryType
-
A query that returns the number of unique matching rows
- SELECT_DISTINCT_ID - Enum constant in enum class de.calamanari.adl.sql.QueryType
-
Returns the matching unique IDs without special sorting
- SELECT_DISTINCT_ID_ORDERED - Enum constant in enum class de.calamanari.adl.sql.QueryType
-
Returns the matching unique IDs in ascending order
- SELF_JOIN_ALIAS - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
Alias name for joining a table with itself, "sq__self"
- setAliasHelper(AliasHelper) - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- setAugmentationListener(SqlAugmentationListener) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- setAugmentationListener(SqlAugmentationListener) - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
-
Sets the augmentation listener for this instance, default is
SqlAugmentationListener.none() - setCombiType(CombinedExpressionType) - Method in class de.calamanari.adl.sql.cnv.SqlConversionContext
- setConditionFactory(MatchConditionFactory) - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- setExpressionHelper(CoreExpressionSqlHelper) - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- setIdColumnName(String) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- setIdColumnName(String) - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- setMainTable(TableMetaInfo) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
-
The main table is the table to start the query with.
- setMainTable(TableMetaInfo) - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
-
The main table is the table to start the query with.
- setPrimaryAlias(ExpressionAlias) - Method in class de.calamanari.adl.sql.cnv.AliasHelper
-
Sets the primary alias
- setProcessContext(SqlConversionProcessContext) - Method in class de.calamanari.adl.sql.cnv.SqlConversionContext
-
Method to be called initially by the converter to ensure all level contexts created during a conversion share the same global process context.
- setQueryType(QueryType) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- setQueryType(QueryType) - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- setStartSelectionName(String) - Method in class de.calamanari.adl.sql.cnv.AliasHelper
-
Sets the identifier of the main query in the statement
- setStyle(FormatStyle) - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- setStyle(FormatStyle) - Method in class de.calamanari.adl.sql.cnv.ResettableScpContext
- shouldAlignDate(AdlType, AdlSqlType, ProcessContext) - Static method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
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.
- SIMPLE_CONDITION - Enum constant in enum class de.calamanari.adl.sql.cnv.ConversionHint
-
The expression to be converted does not require any joins.
- SINGLE - Enum constant in enum class de.calamanari.adl.sql.cnv.ColumnConditionType
-
A single value comparison, parameter list contains one element
- SINGLE_ATTRIBUTE - Enum constant in enum class de.calamanari.adl.sql.cnv.ConversionHint
-
The expression to be converted only deals with a single argName (attribute).
- SINGLE_TABLE - Enum constant in enum class de.calamanari.adl.sql.cnv.ConversionHint
-
All attributes involved in the query to be converted are mapped to the same table.
- SINGLE_TABLE_CONTAINING_ALL_ROWS - Enum constant in enum class de.calamanari.adl.sql.cnv.ConversionHint
-
All attributes involved in the query to be converted are mapped to the same table, and this table has all rows.
- SingleTableConfig - Record Class in de.calamanari.adl.sql.config
-
A
SingleTableConfigdescribes the mappings of argNames to columns of one particular table. - SingleTableConfig(String, String, TableNature, List, Map, AutoMappingPolicy) - Constructor for record class de.calamanari.adl.sql.config.SingleTableConfig
-
Creates an instance of a
SingleTableConfigrecord class. - skipChildExpression(CoreExpression) - Method in class de.calamanari.adl.sql.cnv.SqlConversionContext
-
Sets the given expression on the skip-list to prevent duplicate processing, if a child has been processed implicitly by the parent
- sortByComplexityDescending(List) - Method in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
Sorts the given list by complexity descending, so the most complex expression is at the top.
- sparseFlag - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
setting for the current table
- SQL_BIGINT - Enum constant in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- SQL_BIGINT - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_BIT - Enum constant in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- SQL_BIT - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_BOOLEAN - Enum constant in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- SQL_BOOLEAN - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_CHAR - Enum constant in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- SQL_CHAR - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_DATE - Enum constant in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- SQL_DATE_DEFAULT - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_DATE_MYSQL - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_DATE_ORACLE - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_DATE_PLAIN - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_DATE_SQL_SERVER - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_DECIMAL - Enum constant in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- SQL_DECIMAL - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_DOUBLE - Enum constant in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- SQL_DOUBLE - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_FLOAT - Enum constant in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- SQL_FLOAT - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_INTEGER - Enum constant in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- SQL_INTEGER - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_LONGNVARCHAR - Enum constant in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- SQL_LONGNVARCHAR - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_LONGVARCHAR - Enum constant in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- SQL_LONGVARCHAR - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_NCHAR - Enum constant in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- SQL_NCHAR - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_NUMERIC - Enum constant in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- SQL_NUMERIC - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_NVARCHAR - Enum constant in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- SQL_NVARCHAR - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_REAL - Enum constant in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- SQL_REAL - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_SERVER - Enum constant in enum class de.calamanari.adl.sql.config.DefaultSqlContainsPolicy
-
Creates a standard LIKE with pattern concatenation using '+', e.g., Microsoft SQL-Server, also removes any '['-bracket from the search snippet.
- SQL_SERVER2 - Enum constant in enum class de.calamanari.adl.sql.config.DefaultSqlContainsPolicy
-
Creates a CHARINDEX-based CONTAINS, only Microsoft SQL-Server, accepts any snippet as there is no wildcard removal.
- SQL_SMALLINT - Enum constant in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- SQL_SMALLINT - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_TIMESTAMP - Enum constant in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- SQL_TIMESTAMP_DEFAULT - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_TIMESTAMP_MYSQL - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_TIMESTAMP_ORACLE - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_TIMESTAMP_PLAIN - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_TIMESTAMP_SQL_SERVER - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_TINYINT - Enum constant in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- SQL_TINYINT - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL_VARCHAR - Enum constant in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- SQL_VARCHAR - Enum constant in enum class de.calamanari.adl.sql.DefaultSqlFormatter
- SQL92 - Enum constant in enum class de.calamanari.adl.sql.config.DefaultSqlContainsPolicy
-
Creates a standard LIKE with pattern concatenation using ANSI-'||', should work for many databases such as Oracle, SQLite, PostgreSQL
- SqlAugmentationListener - Interface in de.calamanari.adl.sql.cnv
-
A concrete
SqlAugmentationListenerobserves the creation of an SQL-script with the opportunity to apply changes/extensions. - sqlContainsPolicy() - Method in record class de.calamanari.adl.sql.config.DataBinding
-
Returns the value of the
sqlContainsPolicyrecord component. - SqlContainsPolicy - Interface in de.calamanari.adl.sql.config
-
A concrete
SqlContainsPolicyformats an SQL LIKE instruction (or anything similar) to realize a CONTAINS condition. - SqlContainsPolicy.CreatorFunction - Interface in de.calamanari.adl.sql.config
-
Tagging interface to ensure functions are serializable
- SqlContainsPolicy.PreparatorFunction - Interface in de.calamanari.adl.sql.config
-
Tagging interface to ensure functions are serializable
- SqlContainsPolicyDecorator - Class in de.calamanari.adl.sql.config
-
An
SqlContainsPolicyDecoratorallows to quickly create a new policy by decorating a given one with a different behavioral aspect. - SqlConversionContext - Class in de.calamanari.adl.sql.cnv
-
The
SqlConversionContextis a container holding the information for a particular level of the expression to be converted while visiting theCoreExpression's DAG. - SqlConversionContext() - Constructor for class de.calamanari.adl.sql.cnv.SqlConversionContext
- SqlConversionProcessContext - Interface in de.calamanari.adl.sql.cnv
-
This interface provides access to the variables, flags and the binding in the context of the current conversion.
It also allows the registration of new parameters created during a conversion run. - SqlFormatConstants - Class in de.calamanari.adl.sql
-
A list of SQL-generation related words and phrases etc.
- SqlFormatUtils - Class in de.calamanari.adl.sql
-
Some additional utilities for formatting SQL
- stats - Variable in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
Statistics about the current expression
- stats() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- style() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- supportsContains() - Method in class de.calamanari.adl.sql.AdlSqlTypeDecorator
- supportsContains() - Method in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- supportsLessThanGreaterThan() - Method in class de.calamanari.adl.sql.AdlSqlTypeDecorator
- supportsLessThanGreaterThan() - Method in enum class de.calamanari.adl.sql.DefaultAdlSqlType
- suppressClosingBrace() - Method in class de.calamanari.adl.sql.cnv.SqlConversionContext
-
Sets a flag that we don't need a closing brace because a formerly combined expression (OR/AND)
has turned into a simple IN or NOT IN SQL condition.
T
- tableConfigs() - Method in record class de.calamanari.adl.sql.config.MultiTableConfig
-
Returns the value of the
tableConfigsrecord component. - tableFilterColumns - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
optional filters for all the columns of the current table.
- tableFilters() - Method in record class de.calamanari.adl.sql.config.SingleTableConfig
-
Returns the value of the
tableFiltersrecord component. - tableFilters() - Method in interface de.calamanari.adl.sql.config.TableMetaInfo
-
List of filter columns defined on the table, these filters will be applied whenever a query selects data from the table.
- tableLeft() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
Returns the value of the
tableLeftrecord component. - TableMetaInfo - Interface in de.calamanari.adl.sql.config
-
This interface defines a few methods that returns extra infos (hints) about a table.
- tableMetaInfosInvolved(List, ProcessContext) - Method in interface de.calamanari.adl.sql.config.DataTableConfig
-
Returns a list of the meta infos of all table any of the given argNames is mapped to.
- tableName - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
Name of the current table
- tableName() - Method in interface de.calamanari.adl.sql.config.AdlSqlColumn
- tableName() - Method in record class de.calamanari.adl.sql.config.DataColumn
-
Returns the value of the
tableNamerecord component. - tableName() - Method in record class de.calamanari.adl.sql.config.FilterColumn
-
Returns the value of the
tableNamerecord component. - tableName() - Method in record class de.calamanari.adl.sql.config.SingleTableConfig
-
Returns the value of the
tableNamerecord component. - tableName() - Method in interface de.calamanari.adl.sql.config.TableMetaInfo
- tableNature() - Method in record class de.calamanari.adl.sql.config.SingleTableConfig
-
Returns the value of the
tableNaturerecord component. - tableNature() - Method in interface de.calamanari.adl.sql.config.TableMetaInfo
- TableNature - Enum Class in de.calamanari.adl.sql.config
-
The
TableNatureis a crucial information for the query building process. - tableRight() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
Returns the value of the
tableRightrecord component. - tablesInvolved(List, ProcessContext) - Method in interface de.calamanari.adl.sql.config.DataTableConfig
-
Returns a list of the names of all table any of the given argNames is mapped to.
- tablesInWhereClause() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- tablesThatContainAllIds() - Method in interface de.calamanari.adl.sql.config.DataTableConfig
-
Returns all tables from the config that contain all IDs.
- thatContainsAllIds() - Method in class de.calamanari.adl.sql.config.AbstractTableBuilder
- thatContainsAllIds() - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.MultiTableStep1
-
Tells the system that every record is listed in this table.
- thatContainsAllIds() - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.SingleTableStep2
-
Tells the system that every record is listed in this table.
- timeout - Variable in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
Safety: avoid combinatoric explosion and runaway
- toDebugString() - Method in record class de.calamanari.adl.sql.QueryTemplateWithParameters
-
This method is fail-safe and falls back to the regular toString()-method if anything goes wrong.
In this case the returned String starts with an error indicator. - toString() - Method in class de.calamanari.adl.sql.AdlSqlTypeDecorator
- toString() - Method in record class de.calamanari.adl.sql.cnv.ColumnCondition
-
Returns a string representation of this record class.
- toString() - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper.MinimalProcessContext
-
Returns a string representation of this record class.
- toString() - Method in record class de.calamanari.adl.sql.cnv.CoreExpressionStats
-
Returns a string representation of this record class.
- toString() - Method in class de.calamanari.adl.sql.cnv.ExpressionAlias
- toString() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
-
Returns a string representation of this record class.
- toString() - Method in record class de.calamanari.adl.sql.config.ArgColumnAssignment
-
Returns a string representation of this record class.
- toString() - Method in record class de.calamanari.adl.sql.config.CompositeAutoMappingPolicy
-
Returns a string representation of this record class.
- toString() - Method in record class de.calamanari.adl.sql.config.DataBinding
-
Returns a string representation of this record class.
- toString() - Method in record class de.calamanari.adl.sql.config.DataColumn
-
Returns a string representation of this record class.
- toString() - Method in record class de.calamanari.adl.sql.config.FilterColumn
-
Returns a string representation of this record class.
- toString() - Method in record class de.calamanari.adl.sql.config.MultiTableConfig
-
Returns a string representation of this record class.
- toString() - Method in record class de.calamanari.adl.sql.config.SingleTableConfig
-
Returns a string representation of this record class.
- toString() - Method in class de.calamanari.adl.sql.config.SqlContainsPolicyDecorator
- toString() - Method in record class de.calamanari.adl.sql.DefaultQueryParameter
-
Returns a string representation of this record class.
- toString() - Method in record class de.calamanari.adl.sql.QueryTemplateWithParameters
-
Returns a string representation of this record class.
- tree - Variable in class de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper
-
Tree from the root expression, not meant to be modified but for comparison
- TRUE - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"TRUE"
- type() - Method in record class de.calamanari.adl.sql.cnv.ColumnCondition
-
Returns the value of the
typerecord component. - type() - Method in record class de.calamanari.adl.sql.cnv.MatchCondition
U
- UNION - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"UNION"
- uniqueIdsFlag - Variable in class de.calamanari.adl.sql.config.AbstractTableBuilder
-
setting for the current table
- UNSUPPORTED - Enum constant in enum class de.calamanari.adl.sql.config.DefaultSqlContainsPolicy
-
Special case policy: will reject any attempt to translate a CONTAINS and throw
ContainsNotSupportedException
V
- value() - Method in record class de.calamanari.adl.sql.DefaultQueryParameter
-
Returns the value of the
valuerecord component. - value() - Method in interface de.calamanari.adl.sql.QueryParameter
- valueOf(String) - Static method in enum class de.calamanari.adl.sql.cnv.ColumnConditionType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class de.calamanari.adl.sql.cnv.ConversionDirective
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class de.calamanari.adl.sql.cnv.ConversionHint
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class de.calamanari.adl.sql.config.DefaultSqlContainsPolicy
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class de.calamanari.adl.sql.config.TableNature
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class de.calamanari.adl.sql.DefaultAdlSqlType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class de.calamanari.adl.sql.DefaultSqlFormatter
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class de.calamanari.adl.sql.QueryType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class de.calamanari.adl.sql.cnv.ColumnConditionType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class de.calamanari.adl.sql.cnv.ConversionDirective
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class de.calamanari.adl.sql.cnv.ConversionHint
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class de.calamanari.adl.sql.config.DefaultSqlContainsPolicy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class de.calamanari.adl.sql.config.TableNature
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class de.calamanari.adl.sql.DefaultAdlSqlType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class de.calamanari.adl.sql.DefaultSqlFormatter
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class de.calamanari.adl.sql.QueryType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VAR_ARG_NAME - Static variable in record class de.calamanari.adl.sql.config.FilterColumn
-
Fixed value that can be specified as a filterValue to tell the system to replace it at runtime with the current argName from the expression.
- VAR_ARG_NAME_LOCAL - Static variable in class de.calamanari.adl.sql.config.DefaultAutoMappingPolicy
-
Dynamic variable that can be specified as a filterValue to tell the system to replace it at runtime with the value of the global variable
argName.local(if present).
W
- WHERE - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"WHERE"
- whereClause() - Method in class de.calamanari.adl.sql.cnv.AbstractSqlExpressionConverter
- WITH - Static variable in class de.calamanari.adl.sql.SqlFormatConstants
-
"WITH"
- withCreatorFunction(SqlContainsPolicy.CreatorFunction) - Method in interface de.calamanari.adl.sql.config.SqlContainsPolicy
-
This method derives a new policy from the given one by replacing the creation strategy with a new one with an auto-generated name.
- withCreatorFunction(String, SqlContainsPolicy.CreatorFunction) - Method in interface de.calamanari.adl.sql.config.SqlContainsPolicy
-
This method derives a new policy from the given one by replacing the creation strategy with a new one.
- withFormatter(ArgValueFormatter) - Method in interface de.calamanari.adl.sql.AdlSqlType
- withFormatter(String, ArgValueFormatter) - Method in interface de.calamanari.adl.sql.AdlSqlType
- withNativeTypeCaster(NativeTypeCaster) - Method in interface de.calamanari.adl.sql.AdlSqlType
- withNativeTypeCaster(String, NativeTypeCaster) - Method in interface de.calamanari.adl.sql.AdlSqlType
- withPreparatorFunction(SqlContainsPolicy.PreparatorFunction) - Method in interface de.calamanari.adl.sql.config.SqlContainsPolicy
-
This method derives a new policy from the given one by replacing the preparation strategy with a new one with an auto-generated name.
- withPreparatorFunction(String, SqlContainsPolicy.PreparatorFunction) - Method in interface de.calamanari.adl.sql.config.SqlContainsPolicy
-
This method derives a new policy from the given one by replacing the preparation strategy with a new one.
- withQueryParameterApplicator(QueryParameterApplicator) - Method in interface de.calamanari.adl.sql.AdlSqlType
-
Allows adding a new
QueryParameterApplicatorto an existing type to refine the behavior of the composedAdlSqlType - withQueryParameterApplicator(String, QueryParameterApplicator) - Method in interface de.calamanari.adl.sql.AdlSqlType
-
Allows adding a new
QueryParameterApplicatorto an existing type to refine the behavior of the composedAdlSqlType - withQueryParameterCreator(QueryParameterCreator) - Method in interface de.calamanari.adl.sql.AdlSqlType
-
Allows adding a new
QueryParameterCreatorto an existing type to refine the behavior of the composedAdlSqlType - withQueryParameterCreator(String, QueryParameterCreator) - Method in interface de.calamanari.adl.sql.AdlSqlType
-
Allows adding a new
QueryParameterCreatorto an existing type to refine the behavior of the composedAdlSqlType - withSparseData() - Method in class de.calamanari.adl.sql.config.AbstractTableBuilder
- withSparseData() - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.MultiTableStep2
-
Tells the query builder that the data in this table may be sparse, so data from a single row may not tell the full picture.
- withSparseData() - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.SingleTableStep3
-
Tells the query builder that the data in this table may be sparse, so data from a single row may not tell the full picture.
- withTable(SingleTableConfig) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.MultiTableAddTable
-
Adds another readily configured table
- withTable(SingleTableConfig) - Static method in record class de.calamanari.adl.sql.config.MultiTableConfig
-
Entry point to start with the given table and fluently set up tables in the the physical data model and along with it the logical data model (mapped argNames)
- withTable(SingleTableConfig, ArgMetaInfoLookup) - Static method in record class de.calamanari.adl.sql.config.MultiTableConfig
-
Entry point to start with the given table and fluently set up tables mapped to existing argNames
- withTable(String) - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.MultiTableAddTable
-
Adds another table to the setup step-by-step
- withTable(String) - Static method in record class de.calamanari.adl.sql.config.MultiTableConfig
-
Entry point for fluently setting up a table in the the physical data model and along with it the logical data model (mapped argNames)
- withTable(String, ArgMetaInfoLookup) - Static method in record class de.calamanari.adl.sql.config.MultiTableConfig
-
Entry point for setting up a table and for mapping it to existing argNames
- withUniqueIds() - Method in class de.calamanari.adl.sql.config.AbstractTableBuilder
- withUniqueIds() - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.MultiTableStep2
-
Tells the query builder that for the same record (ID) there is either exactly one row or no row.
- withUniqueIds() - Method in interface de.calamanari.adl.sql.config.ConfigBuilderInterfaces.SingleTableStep3
-
Tells the query builder that for the same record (ID) there is either exactly one row or no row.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form