Class DialectTestContext
java.lang.Object
org.hibernate.dialect.testing.DialectTestContext
- All Implemented Interfaces:
AutoCloseable
@Incubating(since="8.0",
group="dialect-testkit")
@SPI(USE)
public final class DialectTestContext
extends Object
implements AutoCloseable
A thread-confined, database-free context for inspecting SQL generated by one Dialect profile.
Close the context when the provider test is complete. Operations after
close() fail with IllegalStateException.
- Since:
- 8.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Generate create and drop commands for the fixed mapping model.The fresh Dialect owned by this context.Translate simple HQL using default request options.translate(SqlGenerationRequest request) Translate HQL through Hibernate's SQM and SQL AST pipelines.
-
Method Details
-
getDialect
The fresh Dialect owned by this context. -
translate
Translate simple HQL using default request options. -
translate
Translate HQL through Hibernate's SQM and SQL AST pipelines. -
generateSchema
Generate create and drop commands for the fixed mapping model. -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-