| Modifier and Type | Class and Description |
|---|---|
| protected static class | |
| private static class | AbstractSqlAstTranslator.LazySessionWrapperOptions
A lazy session implementation that is needed for rendering literals. |
| private static class | |
| private static enum | |
| protected static enum | |
| private static class | |
| private static class | |
| protected static interface |
| Modifier and Type | Field and Description |
|---|---|
| private Predicate | |
| private final Set | |
| private Map | |
| private transient BasicType | |
| private transient AbstractSqmSelfRenderingFunctionDescriptor | castFunction
Deprecated
as a consequence of
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| private final Stack | |
| private List | |
| private CteStatement | |
| private static final int | |
| private final Dialect | |
| private AbstractSqlAstTranslator. | |
| private transient BasicType | |
| private JdbcParameterBindings | |
| private final JdbcParametersImpl | |
| private transient AbstractSqlAstTranslator. | |
| private Limit | |
| private JdbcParameter | |
| private LockOptions | |
| private static final int | MAX_RECURSION_DEPTH_ESTIMATE
When emulating the recursive WITH clause subclauses SEARCH and CYCLE, we need to build a string path and some database like MySQL require that we cast the expression to a char with certain size. |
| private boolean | |
| private static final int | |
| private JdbcParameter | |
| private final List | |
| private final ParameterMarkerStrategy | |
| private SqlAstNodeRenderingMode | |
| private int | |
| private QueryPart | |
| private int | |
| private int | |
| private final Stack | |
| private final SessionFactoryImplementor | sessionFactory
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| private final StringBuilder | |
| private final Stack | |
| private transient BasicType | |
| private static final int | |
| private static final int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| protected | AbstractSqlAstTranslator(SessionFactoryImplementor sessionFactory, Statement statement)
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| private Expression | |
| protected void | |
| protected void | |
| private static int | |
| public Appendable | append(CharSequence
The character sequence to append. If csq)csq is
null, then the four characters "null" are
appended to this Appendable.Overrides default org. Appendable.
|
| public Appendable | append(CharSequence
The character sequence from which a subsequence will be
appended. If csq, int csq is null, then characters
will be appended as if csq contained the four
characters "null".The index of the first character in the subsequence start, int The index of the character following the last character in the
subsequence end)Overrides default org. Appendable.
|
| public Appendable | append(char
The character to append c)Overrides default org. Appendable.
|
| protected void | |
| private void | |
| public void | appendSql(String fragment)
Implements org. |
| public void | |
| public void | |
| public void | |
| public void | |
| protected void | |
| private void | |
| protected boolean | |
| protected boolean | |
| protected void | |
| private JdbcValuesMappingProducer | |
| protected AbstractSqmSelfRenderingFunctionDescriptor | castFunction()
Deprecated
as a consequence of
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| protected Expression | castNumberToString(Expression expression, int precision, int scale)
Casts a number expression to a string with the given precision and scale. |
| private Expression | |
| protected void | |
| private Expression | |
| protected String | |
| private String | |
| protected Predicate | |
| protected AbstractSqlAstTranslator. | determineLockingStrategy(QuerySpec querySpec, AbstractSqlAstTranslator.
|
| protected Predicate | |
| protected void | |
| private void | emulateCycleClauseWithString(SelectClause selectClause)
The following emulation is not 100% perfect, because it will serialize cycle clause attributes to a string, which might have a different equality rules than the attributes in the original data types, but we try our best to avoid issues with that by formatting data in a certain format. |
| protected void | |
| protected void | emulateFetchOffsetWithWindowFunctions(QueryPart queryPart, Expression offsetExpression, Expression fetchExpression, FetchClauseType fetchClauseType, boolean emulateFetchClause)
|
| protected void | |
| private void | emulateNullnessPredicateWithExistsSubquery(NullnessPredicate nullnessPredicate, TableGroup tableGroup, TableGroupJoin tableGroupJoin)
|
| protected void | emulateQuantifiedTupleSubQueryPredicate(Predicate predicate, SelectStatement selectStatement, SqlTuple lhsTuple, ComparisonOperator tupleComparisonOperator)
An optimized emulation for relational tuple sub-query comparisons. |
| protected void | |
| protected void | |
| private void | emulateSearchClauseOrderWithString(SelectClause selectClause)
The following emulation is not 100% perfect, because it will serialize search clause attributes to a string, which might have a different sort order than the attributes in their original data types, but we try our best to avoid issues with that by formatting data in a certain format. |
| protected void | emulateSelectTupleComparison(List<SqlSelection> lhsSelections, List<? extends SqlAstNode> rhsExpressions, ComparisonOperator operator, boolean indexOptimized)
|
| protected void | |
| protected <X extends Expression> void | emulateSubQueryRelationalRestrictionPredicate(Predicate predicate, boolean negated, SelectStatement selectStatement, X lhsTuple, AbstractSqlAstTranslator.
|
| protected void | emulateTupleComparison(final List<? extends SqlAstNode> lhsExpressions, final List<? extends SqlAstNode> rhsExpressions, ComparisonOperator operator, boolean indexOptimized)
A tuple comparison like |
| private void | emulateTupleComparisonSimple(final List<? extends SqlAstNode> lhsExpressions, final List<? extends SqlAstNode> rhsExpressions, final String operatorText, final String finalOperatorText, final boolean optimized)
|
| protected void | |
| private void | emulateWhereClauseRestrictionJoins(AbstractUpdateOrDeleteStatement statement, QuerySpec querySpec, Consumer<TableGroupJoin> joinConsumer)
|
| private AbstractSqmSelfRenderingFunctionDescriptor | findSelfRenderingFunction(String functionName, int argumentCount)
Deprecated
as a consequence of
AbstractSqmSelfRenderingFunctionDescriptor being deprecated.
|
| private TableGroupJoin | |
| private TableReference | |
| public Set | getAffectedTableNames()
Implements org. |
| protected Map | |
| protected String | getArrayContainsFunction()
Returns the name of the |
| public BasicType | |
| public static String | getCastTypeName(SqlTypedMapping castTarget, SessionFactoryImplementor factory)
Deprecated
for removal. Use
getCastTypeName(SqlTypedMapping, TypeConfiguration) instead
|
| public static String | |
| protected Stack | |
| protected CteStatement | |
| public Stack | |
| protected CteStatement | |
| public MutationStatement | |
| private AbstractUpdateOrDeleteStatement | |
| public QueryPart | getCurrentQueryPart()
Implements org. |
| public Dialect | |
| protected String | |
| protected LockMode | |
| protected LockMode | |
| protected int | |
| protected FetchClauseType | |
| protected String | |
| protected String | |
| protected String | |
| protected String | Returns: the SQL equivalent to Oracle'sfrom dual.Some databases require a bit of syntactic noise when there are no tables in the from clause. |
| protected String | |
| public BasicType | |
| protected JdbcLockStrategy | |
| protected JdbcParameterBindings | |
| protected JdbcServices | |
| protected Expression | |
| protected Limit | |
| protected JdbcParameter | |
| protected LockOptions | |
| protected int | getMaxRows(SelectStatement sqlAstSelect, JdbcParameterBindings jdbcParameterBindings, int rowsToSkip)
|
| protected String | |
| protected JdbcParameter | |
| public List | |
| protected Object | |
| protected SqlAstNodeRenderingMode | |
| protected QueryPart | |
| protected Stack | |
| protected int | |
| protected final SqlSelectionExpression | |
| private BitSet | |
| public SessionFactoryImplementor | getSessionFactory()
Implements org.
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| protected String | |
| private int | |
| protected List | |
| public String | |
| protected SqlAppender | |
| public StringBuilder | |
| public static String | getSqlTypeName(SqlTypedMapping castTarget, SessionFactoryImplementor factory)
Deprecated
for removal. Use
getSqlTypeName(SqlTypedMapping, TypeConfiguration) instead
|
| public static String | |
| protected Statement | |
| public BasicType | |
| protected WrapperOptions | |
| protected boolean | |
| private boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| private boolean | |
| protected void | |
| protected boolean | |
| protected <R> R | |
| protected boolean | |
| private boolean | |
| protected boolean | |
| private boolean | |
| protected final boolean | |
| private boolean | |
| protected final boolean | |
| private boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| private Expression | |
| private static CteContainer | |
| private static CteStatement | |
| private static MutationStatement | |
| private static Boolean | |
| private static Clause | |
| protected boolean | |
| private boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | needsRecursiveKeywordInWithClause()
Whether the SQL with clause requires the "recursive" keyword for recursive CTEs. |
| protected boolean | |
| private boolean | |
| protected void | |
| private int | processFilterParameter(FilterPredicate.
|
| private void | |
| protected void | |
| private void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public void | render(SqlAstNode sqlAstNode, SqlAstNodeRenderingMode renderingMode)
Implements org. |
| protected void | |
| protected void | renderBackslashEscapedLikePattern(Expression pattern, Expression escapeCharacter, boolean noBackslashEscapes)
|
| protected void | renderCaseInsensitiveLikeEmulation(Expression lhs, Expression rhs, Expression escapeCharacter, boolean negated)
|
| protected void | |
| protected void | |
| protected void | |
| protected final void | |
| protected final void | |
| protected final void | renderCommaSeparatedSelectExpression(Iterable<? extends SqlAstNode> expressions, Iterable<String> aliases)
|
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | renderComparisonEmulateDecode(Expression lhs, ComparisonOperator operator, Expression rhs, SqlAstNodeRenderingMode firstArgRenderingMode)
|
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | renderFetch(Expression fetchExpression, Expression offsetExpressionToAdd, FetchClauseType fetchClauseType)
|
| protected void | |
| protected void | renderFetchPlusOffsetExpression(Expression fetchClauseExpression, Expression offsetClauseExpression, int offset)
|
| protected void | renderFetchPlusOffsetExpressionAsLiteral(Expression fetchClauseExpression, Expression offsetClauseExpression, int offset)
|
| protected void | renderFetchPlusOffsetExpressionAsSingleParameter(Expression fetchClauseExpression, Expression offsetClauseExpression, int offset)
|
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | renderForUpdateClause(QuerySpec querySpec, AbstractSqlAstTranslator.
|
| private void | |
| private String | |
| private void | |
| private void | |
| protected void | renderInsertIntoNoColumns(TableInsertStandard tableInsert)
Handle rendering an insert with no columns |
| protected void | renderIntoIntoAndTable(TableInsertStandard tableInsert)
Renders the |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected boolean | |
| private void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | renderOffsetFetchClause(Expression offsetExpression, Expression fetchExpression, FetchClauseType fetchClauseType, boolean renderOffsetRowsKeyword)
|
| protected void | |
| protected final void | |
| protected void | renderParameterAsParameter(int position, JdbcParameter jdbcParameter)
Renders a parameter marker for the given position |
| protected void | |
| protected boolean | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | renderSelectSimpleComparison(final List<SqlSelection> lhsExpressions, Expression expression, ComparisonOperator operator)
|
| protected void | renderSelectTupleComparison(final List<SqlSelection> lhsExpressions, SqlTuple tuple, ComparisonOperator operator)
|
| protected void | |
| protected void | |
| protected void | |
| protected boolean | |
| protected void | |
| protected void | |
| protected void | |
| protected void | renderTableGroup(TableGroup tableGroup, Predicate predicate, List<TableGroupJoin> tableGroupJoinCollector)
|
| protected void | |
| protected final void | |
| protected void | |
| protected void | |
| protected void | renderTopClause(Expression offsetExpression, Expression fetchExpression, FetchClauseType fetchClauseType, boolean addOffset, boolean needsParenthesis)
|
| protected void | |
| protected void | renderTopStartAtClause(Expression offsetExpression, Expression fetchExpression, FetchClauseType fetchClauseType)
|
| protected void | renderTupleComparisonStandard(final List<SqlSelection> lhsExpressions, SqlTuple tuple, ComparisonOperator operator)
|
| protected void | |
| protected Expression | |
| protected Expression | |
| protected Expression | |
| protected void | |
| protected void | |
| protected boolean | |
| protected boolean | |
| protected void | |
| private SelectStatement | |
| private QueryPart | |
| private QueryGroup | |
| private QuerySpec | |
| protected boolean | |
| protected boolean | Returns: True if this SQL dialect is known to support some kind of distinct from predicate; false otherwiseIs this SQL dialect known to support some kind of distinct from predicate. |
| protected boolean | |
| public boolean | supportsFilterClause()
Implements org. |
| protected boolean | |
| protected boolean | supportsJoinInMutationStatementSubquery()
If the dialect supports using joins in mutation statement subquery that could also use columns from the mutation target table |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | Returns: True if this SQL dialect is known to support quantified predicates; false otherwise.Is this dialect known to support quantified predicates. |
| protected boolean | supportsRecursiveClauseArrayAndRowEmulation()
Whether the recursive search and cycle clause emulations based on the array and row constructor is supported. |
| protected boolean | supportsRecursiveCycleClause()
Whether the SQL cycle clause is supported, which can be used for recursive CTEs. |
| protected boolean | |
| protected boolean | supportsRecursiveSearchClause()
Whether the SQL search clause is supported, which can be used for recursive CTEs. |
| protected boolean | |
| protected boolean | Returns: True if this SQL dialect is known to support "row value constructor" syntax with distinct from comparison operators; false otherwise.Is this dialect known to support what ANSI-SQL terms "row value
constructor" syntax; sometimes called tuple syntax with |
| protected boolean | Returns: True if this SQL dialect is known to support "row value constructor" syntax with relational comparison operators; false otherwise.Is this dialect known to support what ANSI-SQL terms "row value
constructor" syntax; sometimes called tuple syntax with |
| protected boolean | Returns: True if this SQL dialect is known to support "row value constructor" syntax; false otherwise.Is this dialect known to support what ANSI-SQL terms "row value constructor" syntax; sometimes called tuple syntax. |
| protected boolean | Returns: True if this SQL dialect is known to support "row value constructor" syntax in the IN list; false otherwise.If the dialect supports |
| protected boolean | Returns: True if this SQL dialect is known to support "row value constructor" syntax in the IN subqueries; false otherwise.If the dialect supports |
| protected boolean | Returns: True if this SQL dialect is known to support "row value constructor" syntax with quantified predicates; false otherwise.Is this dialect known to support what ANSI-SQL terms "row value constructor" syntax; sometimes called tuple syntax with quantified predicates. |
| protected boolean | Returns: True if this SQL dialect is known to support "row value constructor" syntax in the SET clause; false otherwise.Is this dialect known to support what ANSI-SQL terms "row value constructor" syntax, sometimes called tuple syntax, in the SET clause;
Basically, does it support syntax like
|
| protected boolean | |
| protected boolean | |
| protected boolean | |
| public T | translate(JdbcParameterBindings jdbcParameterBindings, QueryOptions queryOptions)
Implements org. |
| protected JdbcOperationQueryDelete | |
| protected JdbcOperationQueryInsert | |
| protected JdbcOperationQuerySelect | |
| private T | |
| protected JdbcOperationQueryUpdate | |
| protected boolean | |
| public void | visitAggregateColumnWriteExpression(AggregateColumnWriteExpression aggregateColumnWriteExpression)
Implements org. |
| protected void | visitAnsiCaseSearchedExpression(CaseSearchedExpression caseSearchedExpression, Consumer<Expression> resultRenderer)
|
| protected void | visitAnsiCaseSimpleExpression(CaseSimpleExpression caseSimpleExpression, Consumer<Expression> resultRenderer)
|
| public void | |
| public void | visitAssignment(Assignment assignment)
Implements org. |
| public void | visitBetweenPredicate(BetweenPredicate betweenPredicate)
Implements org. |
| public void | visitBinaryArithmeticExpression(BinaryArithmeticExpression arithmeticExpression)
Implements org. |
| public void | visitBooleanExpressionPredicate(BooleanExpressionPredicate booleanExpressionPredicate)
Implements org. |
| public final void | visitCaseSearchedExpression(CaseSearchedExpression caseSearchedExpression)
Implements org. |
| protected void | |
| public final void | visitCaseSimpleExpression(CaseSimpleExpression caseSimpleExpression)
Implements org. |
| protected void | |
| public void | visitCastTarget(CastTarget castTarget)
Implements org. |
| public void | |
| public void | visitColumnReference(ColumnReference columnReference)
Implements org. |
| public void | visitColumnWriteFragment(ColumnWriteFragment columnWriteFragment)
Implements org. |
| public void | visitConversion(Conversion conversion)
Implements org. |
| public void | |
| protected void | |
| protected void | |
| private void | |
| public void | visitCustomTableDelete(TableDeleteCustomSql tableDelete)
Implements org. |
| public void | visitCustomTableInsert(TableInsertCustomSql tableInsert)
Implements org. |
| public void | visitCustomTableUpdate(TableUpdateCustomSql tableUpdate)
Implements org. |
| protected void | |
| public void | visitDeleteStatement(DeleteStatement statement)
Implements org. |
| protected void | |
| public void | |
| public void | |
| public void | |
| public void | visitEntityTypeLiteral(EntityTypeLiteral expression)
Implements org. |
| public void | |
| public void | visitExistsPredicate(ExistsPredicate existsPredicate)
Implements org. |
| public void | visitExtractUnit(ExtractUnit extractUnit)
Implements org. |
| public void | |
| public void | visitFilterPredicate(FilterPredicate filterPredicate)
Implements org. |
| public void | |
| protected void | |
| public void | visitFromClause(FromClause fromClause)
Implements org. |
| public void | visitFunctionTableReference(FunctionTableReference tableReference)
Implements org. |
| protected final void | |
| public void | visitGroupedPredicate(GroupedPredicate groupedPredicate)
Implements org. |
| protected final void | |
| public void | visitInArrayPredicate(InArrayPredicate inArrayPredicate)
Implements org. |
| public void | visitInListPredicate(InListPredicate inListPredicate)
Implements org. |
| public void | visitInsertStatement(InsertSelectStatement statement)
Implements org. |
| protected void | |
| public void | visitInSubQueryPredicate(InSubQueryPredicate inSubQueryPredicate)
Implements org. |
| public void | visitJdbcLiteral(JdbcLiteral<?> jdbcLiteral)
Implements org. |
| public void | |
| private void | |
| public void | visitLikePredicate(LikePredicate likePredicate)
Implements org. |
| private void | |
| public void | |
| public void | visitNamedTableReference(NamedTableReference tableReference)
Implements org. |
| public void | visitNegatedPredicate(NegatedPredicate negatedPredicate)
Implements org. |
| public void | visitNullnessPredicate(NullnessPredicate nullnessPredicate)
Implements org. |
| public void | visitOffsetFetchClause(QueryPart queryPart)
Implements org. |
| public void | visitOptionalTableUpdate(OptionalTableUpdate tableUpdate)
Implements org. |
| protected void | |
| public void | |
| protected final void | |
| protected void | visitOverClause(List<Expression> partitionExpressions, List<SortSpecification> sortSpecifications, FrameMode mode, FrameKind startKind, Expression startExpression, FrameKind endKind, Expression endExpression, FrameExclusion exclusion, boolean orderedSetAggregate)
|
| public void | |
| public void | visitParameter(JdbcParameter jdbcParameter)
Implements org. |
| protected void | |
| protected final void | |
| protected final void | visitPartitionExpressions(List<Expression> partitionExpressions, SelectItemReferenceStrategy referenceStrategy)
|
| protected final void | visitPartitionExpressions(List<Expression> partitionExpressions, Function<Expression, Expression> resolveAliasExpression, boolean inlineParametersOfAliasedExpressions)
|
| public void | visitQueryGroup(QueryGroup queryGroup)
Implements org. |
| public void | visitQueryLiteral(QueryLiteral<?> queryLiteral)
Implements org. |
| public void | visitQueryPartTableReference(QueryPartTableReference tableReference)
Implements org. |
| public void | |
| protected void | visitRecursivePath(Expression recursivePath, int sizeEstimate)
Renders the recursive path, possibly wrapping a cast expression around it, to make sure a type with proper size is chosen. |
| public void | visitRelationalPredicate(ComparisonPredicate comparisonPredicate)
Implements org. |
| protected void | |
| protected void | |
| public void | visitSelectClause(SelectClause selectClause)
Implements org. |
| public void | visitSelectStatement(SelectStatement statement)
Implements org. |
| public void | |
| public void | visitSelfRenderingPredicate(SelfRenderingPredicate selfRenderingPredicate)
Implements org. |
| protected void | |
| public void | visitSortSpecification(SortSpecification sortSpecification)
Implements org. |
| protected void | visitSortSpecification(Expression sortExpression, SortDirection sortOrder, NullPrecedence nullPrecedence)
|
| public void | |
| protected void | |
| public void | visitSqlSelection(SqlSelection sqlSelection)
Implements org. |
| public void | |
| protected void | |
| public void | visitStandardTableDelete(TableDeleteStandard tableDelete)
Implements org. |
| public void | visitStandardTableInsert(TableInsertStandard tableInsert)
Implements org. |
| public void | visitStandardTableUpdate(TableUpdateStandard tableUpdate)
Implements org. |
| public void | |
| public void | |
| public void | visitTableGroup(TableGroup tableGroup)
Implements org. |
| public void | visitTableGroupJoin(TableGroupJoin tableGroupJoin)
Implements org. |
| public void | visitTableReferenceJoin(TableReferenceJoin tableReferenceJoin)
Implements org. |
| private void | |
| public void | visitThruthnessPredicate(ThruthnessPredicate thruthnessPredicate)
Implements org. |
| public void | visitTrimSpecification(TrimSpecification trimSpecification)
Implements org. |
| public void | |
| public void | visitUnaryOperationExpression(UnaryOperation unaryOperationExpression)
Implements org. |
| public <N extends Number> void | |
| public void | visitUpdateStatement(UpdateStatement statement)
Implements org. |
| protected void | |
| protected void | |
| protected void | |
| protected final void | |
| public void | visitValuesTableReference(ValuesTableReference tableReference)
Implements org. |
| protected final void | |
| protected void | |
| protected final void | |
| private SqlAstNode | wrapRowComponentAsEqualityPreservingConcatArgument(Expression expression)
Wraps the given expression so that it produces a string, but preserves equality with respect to what the original value was. |
| private int | |
| private SqlAstNode | wrapRowComponentAsOrderPreservingConcatArgument(Expression expression)
Wraps the given expression so that it produces a string, which should have the same ordering as the original value. |
| private int |