public abstract class SessionFactoryBasedFunctionalTest extends BaseUnitTest implements SessionFactoryProducer, SessionFactoryScopeContainer
| Modifier and Type | Field and Description |
|---|---|
protected static org.jboss.logging.Logger |
log |
protected static Class[] |
NO_CLASSES |
protected static String[] |
NO_MAPPINGS |
| Constructor and Description |
|---|
SessionFactoryBasedFunctionalTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterTest() |
protected void |
applyCacheSettings(org.hibernate.boot.registry.StandardServiceRegistryBuilder builer) |
protected void |
applyMetadataSources(org.hibernate.boot.MetadataSources metadataSources) |
protected void |
applySettings(org.hibernate.boot.registry.StandardServiceRegistryBuilder builer) |
protected void |
cleanupTestData() |
protected void |
configure(org.hibernate.boot.SessionFactoryBuilder builder) |
protected void |
configureMetadataBuilder(org.hibernate.boot.MetadataBuilder metadataBuilder) |
protected boolean |
exportSchema() |
protected Class[] |
getAnnotatedClasses() |
protected String |
getBaseForMappings() |
protected String |
getCacheConcurrencyStrategy() |
protected org.hibernate.dialect.Dialect |
getDialect() |
protected String[] |
getHmbMappingFiles() |
protected org.hibernate.boot.Metadata |
getMetadata() |
SessionFactoryProducer |
getSessionFactoryProducer()
Obtain the
SessionFactoryProducer. |
void |
injectSessionFactoryScope(SessionFactoryScope scope)
Callback to inject the SessionFactoryScope into the container
|
protected void |
inSession(Consumer<org.hibernate.engine.spi.SessionImplementor> action) |
protected <R> R |
inSession(Function<org.hibernate.engine.spi.SessionImplementor,R> action) |
protected void |
inTransaction(Consumer<org.hibernate.engine.spi.SessionImplementor> action) |
protected <R> R |
inTransaction(Function<org.hibernate.engine.spi.SessionImplementor,R> action) |
protected boolean |
isCleanupTestDataRequired() |
org.hibernate.engine.spi.SessionFactoryImplementor |
produceSessionFactory() |
protected org.hibernate.engine.spi.SessionFactoryImplementor |
sessionFactory() |
protected void |
sessionFactoryBuilt(org.hibernate.engine.spi.SessionFactoryImplementor factory) |
protected SessionFactoryScope |
sessionFactoryScope() |
protected boolean |
strictJpaCompliance() |
castprotected static final Class[] NO_CLASSES
protected static final String[] NO_MAPPINGS
protected static final org.jboss.logging.Logger log
protected SessionFactoryScope sessionFactoryScope()
protected org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory()
public org.hibernate.engine.spi.SessionFactoryImplementor produceSessionFactory()
produceSessionFactory in interface SessionFactoryProducerprotected void configureMetadataBuilder(org.hibernate.boot.MetadataBuilder metadataBuilder)
protected void applySettings(org.hibernate.boot.registry.StandardServiceRegistryBuilder builer)
protected void configure(org.hibernate.boot.SessionFactoryBuilder builder)
protected void sessionFactoryBuilt(org.hibernate.engine.spi.SessionFactoryImplementor factory)
protected boolean strictJpaCompliance()
protected boolean exportSchema()
protected void applyMetadataSources(org.hibernate.boot.MetadataSources metadataSources)
protected Class[] getAnnotatedClasses()
protected String[] getHmbMappingFiles()
protected String getBaseForMappings()
public void injectSessionFactoryScope(SessionFactoryScope scope)
SessionFactoryScopeContainerinjectSessionFactoryScope in interface SessionFactoryScopeContainerpublic SessionFactoryProducer getSessionFactoryProducer()
SessionFactoryScopeContainerSessionFactoryProducer. Quite often this
is als implemented by the container itself.getSessionFactoryProducer in interface SessionFactoryScopeContainerprotected org.hibernate.boot.Metadata getMetadata()
protected String getCacheConcurrencyStrategy()
protected void applyCacheSettings(org.hibernate.boot.registry.StandardServiceRegistryBuilder builer)
@AfterEach public final void afterTest()
protected boolean isCleanupTestDataRequired()
protected void cleanupTestData()
protected void inTransaction(Consumer<org.hibernate.engine.spi.SessionImplementor> action)
protected <R> R inTransaction(Function<org.hibernate.engine.spi.SessionImplementor,R> action)
protected <R> R inSession(Function<org.hibernate.engine.spi.SessionImplementor,R> action)
protected void inSession(Consumer<org.hibernate.engine.spi.SessionImplementor> action)
protected org.hibernate.dialect.Dialect getDialect()
Copyright © 2001-2019 Red Hat, Inc. All Rights Reserved.