Class AbstractSqlAstTranslator<T extends JdbcOperation>

java.lang.Object
org.hibernate.dialect.sql.ast.spi.AbstractSqlAstTranslator<T>
All Implemented Interfaces:
Appendable, SqlAstWalker, SqlAstTranslator<T>, SqlAppender
Direct Known Subclasses:
SqlAstTranslatorWithMerge, SqlAstTranslatorWithOnDuplicateKeyUpdate, SqlAstTranslatorWithUpsert, StandardSqlAstTranslator

@SPI({USE,IMPLEMENT}) public abstract class AbstractSqlAstTranslator<T extends JdbcOperation> extends Object implements SqlAstTranslator<T>, SqlAppender

Supported generic base for translating query and model-mutation SQL ASTs.

This class owns the single-use translation lifecycle, SQL buffer, parameter bindings, traversal stacks, and other mutable rendering context. A custom Dialect which renders SQL should extend this class, or a supported database-family subclass. A JDBC driver with a fundamentally different command language may instead implement SqlAstTranslator directly, normally on top of AbstractSqlAstWalker.

Prefer the focused get...Support() composition hooks when a difference can be expressed as selection of an immutable rendering plan. Override a protected rendering callback only when the database grammar cannot be represented by an existing support strategy. In either case, preserve the base class's stack and clause-management lifecycle; methods documented as owning that lifecycle should be entered through their visit... form.

Each instance translates exactly the SqlAstTranslationRequest supplied to its constructor and must not be cached or reused.

Since:
8.0