public class SessionFactoryScope extends Object implements SessionFactoryAccess
NAMESPACE| Constructor and Description |
|---|
SessionFactoryScope(SessionFactoryProducer producer) |
| Modifier and Type | Method and Description |
|---|---|
org.hibernate.engine.spi.SessionFactoryImplementor |
getSessionFactory() |
void |
inSession(Consumer<org.hibernate.engine.spi.SessionImplementor> action) |
protected <R> R |
inSession(Function<org.hibernate.engine.spi.SessionImplementor,R> action) |
void |
inTransaction(Consumer<org.hibernate.engine.spi.SessionImplementor> action) |
<R> R |
inTransaction(Function<org.hibernate.engine.spi.SessionImplementor,R> action) |
void |
rebuild() |
void |
releaseSessionFactory() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDialectpublic SessionFactoryScope(SessionFactoryProducer producer)
public void rebuild()
public void releaseSessionFactory()
public org.hibernate.engine.spi.SessionFactoryImplementor getSessionFactory()
getSessionFactory in interface SessionFactoryAccesspublic void inSession(Consumer<org.hibernate.engine.spi.SessionImplementor> action)
public void inTransaction(Consumer<org.hibernate.engine.spi.SessionImplementor> action)
protected <R> R inSession(Function<org.hibernate.engine.spi.SessionImplementor,R> action)
public <R> R inTransaction(Function<org.hibernate.engine.spi.SessionImplementor,R> action)
Copyright © 2001-2019 Red Hat, Inc. All Rights Reserved.