Package org.hibernate.sql.ast.spi
Class StandardSqlAstTranslatorFactory
java.lang.Object
org.hibernate.sql.ast.spi.StandardSqlAstTranslatorFactory
- All Implemented Interfaces:
SqlAstTranslatorFactory
Standard implementation of SqlAstTranslatorFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildDeleteTranslator
(SessionFactoryImplementor sessionFactory, DeleteStatement statement) Builds a single-use delete translatorbuildInsertTranslator
(SessionFactoryImplementor sessionFactory, InsertStatement statement) Builds a single-use insert-select translator<O extends JdbcMutationOperation>
SqlAstTranslator<O>buildModelMutationTranslator
(TableMutation<O> mutation, SessionFactoryImplementor sessionFactory) Builds a single-use translator for dealing with model mutationsSqlAstTranslator<? extends JdbcOperationQueryMutation>
buildMutationTranslator
(SessionFactoryImplementor sessionFactory, MutationStatement statement) Builds a single-use mutation translatorbuildSelectTranslator
(SessionFactoryImplementor sessionFactory, SelectStatement statement) Builds a single-use select translatorprotected <T extends JdbcOperation>
SqlAstTranslator<T>buildTranslator
(SessionFactoryImplementor sessionFactory, Statement statement) Consolidated building of a translator for all Query casesbuildUpdateTranslator
(SessionFactoryImplementor sessionFactory, UpdateStatement statement) Builds a single-use update translator
-
Constructor Details
-
StandardSqlAstTranslatorFactory
public StandardSqlAstTranslatorFactory()
-
-
Method Details
-
buildSelectTranslator
public SqlAstTranslator<JdbcOperationQuerySelect> buildSelectTranslator(SessionFactoryImplementor sessionFactory, SelectStatement statement) Description copied from interface:SqlAstTranslatorFactory
Builds a single-use select translator- Specified by:
buildSelectTranslator
in interfaceSqlAstTranslatorFactory
-
buildMutationTranslator
public SqlAstTranslator<? extends JdbcOperationQueryMutation> buildMutationTranslator(SessionFactoryImplementor sessionFactory, MutationStatement statement) Description copied from interface:SqlAstTranslatorFactory
Builds a single-use mutation translator- Specified by:
buildMutationTranslator
in interfaceSqlAstTranslatorFactory
-
buildDeleteTranslator
public SqlAstTranslator<JdbcOperationQueryDelete> buildDeleteTranslator(SessionFactoryImplementor sessionFactory, DeleteStatement statement) Description copied from interface:SqlAstTranslatorFactory
Builds a single-use delete translator- Specified by:
buildDeleteTranslator
in interfaceSqlAstTranslatorFactory
-
buildInsertTranslator
public SqlAstTranslator<JdbcOperationQueryInsert> buildInsertTranslator(SessionFactoryImplementor sessionFactory, InsertStatement statement) Description copied from interface:SqlAstTranslatorFactory
Builds a single-use insert-select translator- Specified by:
buildInsertTranslator
in interfaceSqlAstTranslatorFactory
-
buildUpdateTranslator
public SqlAstTranslator<JdbcOperationQueryUpdate> buildUpdateTranslator(SessionFactoryImplementor sessionFactory, UpdateStatement statement) Description copied from interface:SqlAstTranslatorFactory
Builds a single-use update translator- Specified by:
buildUpdateTranslator
in interfaceSqlAstTranslatorFactory
-
buildModelMutationTranslator
public <O extends JdbcMutationOperation> SqlAstTranslator<O> buildModelMutationTranslator(TableMutation<O> mutation, SessionFactoryImplementor sessionFactory) Description copied from interface:SqlAstTranslatorFactory
Builds a single-use translator for dealing with model mutations- Specified by:
buildModelMutationTranslator
in interfaceSqlAstTranslatorFactory
-
buildTranslator
protected <T extends JdbcOperation> SqlAstTranslator<T> buildTranslator(SessionFactoryImplementor sessionFactory, Statement statement) Consolidated building of a translator for all Query cases
-