Session (plus an optional Transaction).
HibernateTransactionManager binds instances of this class to the thread,
for a given org.hibernate.SessionFactory . Extends EntityManagerHolder
as of 5.1, automatically exposing an EntityManager handle on Hibernate 5.2+.Note
This is an SPI class, not intended to be used by applications.
HibernateTransactionManager, SessionFactoryUtils
| Modifier and Type | Field and Description |
|---|---|
| private FlushMode | |
| private Transaction |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Overrides org. |
| public FlushMode | |
| public Session | |
| public Transaction | |
| public void | |
| public void |
| previousFlushMode | back to summary |
|---|---|
| private FlushMode previousFlushMode
| |
| transaction | back to summary |
|---|---|
| private Transaction transaction
| |
| SessionHolder | back to summary |
|---|---|
| public SessionHolder(Session session)
Deprecated as a consequence of | |
| clear | back to summary |
|---|---|
| public void clear() Overrides org. Doc from org. Clear the transactional state of this resource holder.
| |
| getPreviousFlushMode | back to summary |
|---|---|
public FlushMode getPreviousFlushMode()
| |
| getSession | back to summary |
|---|---|
| public Session getSession()
Deprecated as a consequence of | |
| getTransaction | back to summary |
|---|---|
public Transaction getTransaction()
| |
| setPreviousFlushMode | back to summary |
|---|---|
| public void setPreviousFlushMode(FlushMode previousFlushMode) | |
| setTransaction | back to summary |
|---|---|
| public void setTransaction(Transaction transaction) | |