Interface SqlAstTranslationRequest<S extends Statement, O extends JdbcOperation>
- Type Parameters:
S- the SQL AST statement typeO- the resulting JDBC operation type
- All Known Implementing Classes:
SqlAstTranslationRequest.ModelMutation, SqlAstTranslationRequest.QueryMutation, SqlAstTranslationRequest.Select
public sealed interface SqlAstTranslationRequest<S extends Statement, O extends JdbcOperation>
permits SqlAstTranslationRequest.Select, SqlAstTranslationRequest.QueryMutation, SqlAstTranslationRequest.ModelMutation<O>
The complete, typed input supplied by Hibernate to create one SQL AST translator.
A SqlAstTranslatorFactory uses the request subtype to select a supported
translator or translator family. The resulting translator is single-use and
must translate statement() using services from sessionFactory(). A factory
or translator must not retain this request beyond that translation.
- Since:
- 8.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordRequest to translate a mapping-model table mutation into its matching JDBC mutation operation.static final recordRequest to translate a query-language update or delete into aJdbcOperationQueryMutation.static final recordRequest to translate a query select into aJdbcSelect. -
Method Summary
Modifier and TypeMethodDescriptionThe SessionFactory whose services are used during translation.The statement to translate.
-
Method Details
-
sessionFactory
SessionFactoryImplementor sessionFactory()The SessionFactory whose services are used during translation. -
statement
S statement()The statement to translate.
-