Uses of Class
de.calamanari.adl.sql.cnv.ExpressionAlias
Packages that use ExpressionAlias
-
Uses of ExpressionAlias in de.calamanari.adl.sql.cnv
Classes in de.calamanari.adl.sql.cnv that implement interfaces with type arguments of type ExpressionAliasModifier and TypeClassDescriptionclassAnExpressionAliasrepresents what we know (information gathered while building the query) about an alias query (WITH) for certain detail expression.Fields in de.calamanari.adl.sql.cnv with type parameters of type ExpressionAliasModifier and TypeFieldDescriptionprotected final Map<de.calamanari.adl.irl.CoreExpression, ExpressionAlias> AliasHelper.aliasMapLookup 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.Methods in de.calamanari.adl.sql.cnv that return ExpressionAliasModifier and TypeMethodDescriptionAliasHelper.getOrCreateAlias(de.calamanari.adl.irl.CoreExpression expression) Returns an alias for the given expression.AliasHelper.getPrimaryAlias()Returns the primary alias if it is available.Methods in de.calamanari.adl.sql.cnv that return types with arguments of type ExpressionAliasModifier and TypeMethodDescriptionprotected final Set<ExpressionAlias> AbstractSqlExpressionConverter.aliasesInWhereClause()protected List<ExpressionAlias> DefaultSqlExpressionConverter.collectFurtherRequiredAliases()Collects further aliases.AliasHelper.determineAdequateBaseQueryCombination(CoreExpressionSqlHelper expressionHelper, List<ExpressionAlias> aliases) At the begin of every SQL-query there must be a base selection to start with.ResettableScpContext.getAliasesInWhereClause()SqlConversionProcessContext.getAliasesInWhereClause()AliasHelper.getOrderedAliasList()Returns all aliases (main aliases and supplementary aliases) ordered by nameAliasHelper.groupAliasesByTable(MatchConditionFactory conditionFactory, List<ExpressionAlias> aliases) Groups any aliases by table or table-duo (reference matches on two tables)Methods in de.calamanari.adl.sql.cnv with parameters of type ExpressionAliasModifier and TypeMethodDescriptionprotected voidDefaultSqlExpressionConverter.addOnRestrictionIfApplicable(TableMetaInfo table, ExpressionAlias alias, Set<de.calamanari.adl.irl.CoreExpression> expressionCandidates) 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.protected voidAbstractSqlExpressionConverter.appendAliasExistenceCheckWithExtraNullCheckIfRequired(StringBuilder sb, MatchCondition condition, ExpressionAlias alias) 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).protected voidAbstractSqlExpressionConverter.appendAliasQuery(StringBuilder sb, ExpressionAlias alias) Append an alias query (part of the SQL WITH-section)protected voidAbstractSqlExpressionConverter.appendToGlobalWhereClause(StringBuilder sb, MatchCondition condition, ExpressionAlias currentAlias) Appends the condition to the global WHERE-clause.intExpressionAlias.compareTo(ExpressionAlias o) voidAliasHelper.setPrimaryAlias(ExpressionAlias primaryAlias) Sets the primary aliasMethod parameters in de.calamanari.adl.sql.cnv with type arguments of type ExpressionAliasModifier and TypeMethodDescriptionprotected voidAbstractSqlExpressionConverter.appendAliasGroupToBaseQuery(StringBuilder sb, List<ExpressionAlias> aliasGroup) 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.protected voidAbstractSqlExpressionConverter.appendAliasUnionBaseQuery(StringBuilder sb, List<ExpressionAlias> aliases) Appends a UNION of the given aliases to compose a super set as base query (part if with)AliasHelper.determineAdequateBaseQueryCombination(CoreExpressionSqlHelper expressionHelper, List<ExpressionAlias> aliases) At the begin of every SQL-query there must be a base selection to start with.voidAliasHelper.determinePrimaryAlias(CoreExpressionSqlHelper expressionHelper, Set<ExpressionAlias> aliasesInWhereClause) 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.AliasHelper.groupAliasesByTable(MatchConditionFactory conditionFactory, List<ExpressionAlias> aliases) Groups any aliases by table or table-duo (reference matches on two tables)