private class HibernateTransactionManager.HibernateTransactionObject extends JdbcTransactionObjectSupport
Modifier and Type | Field and Description |
---|---|
private boolean |
newSession |
private boolean |
newSessionHolder |
private SessionHolder |
sessionHolder |
Modifier | Constructor and Description |
---|---|
private |
HibernateTransactionManager.HibernateTransactionObject() |
Modifier and Type | Method and Description |
---|---|
void |
flush()
Flush the underlying sessions to the datastore, if applicable:
for example, all affected Hibernate/JPA sessions.
|
SessionHolder |
getSessionHolder() |
boolean |
hasHibernateManagedTransaction() |
boolean |
hasSpringManagedTransaction() |
boolean |
isNewSession() |
boolean |
isNewSessionHolder() |
boolean |
isRollbackOnly()
Return whether the transaction is internally marked as rollback-only.
|
void |
setExistingSession(Session session) |
void |
setRollbackOnly() |
void |
setSession(Session session) |
void |
setSessionHolder(SessionHolder sessionHolder) |
createSavepoint, getConnectionHolder, getConnectionHolderForSavepoint, getPreviousIsolationLevel, hasConnectionHolder, isSavepointAllowed, releaseSavepoint, rollbackToSavepoint, setConnectionHolder, setPreviousIsolationLevel, setSavepointAllowed
private SessionHolder sessionHolder
private boolean newSessionHolder
private boolean newSession
private HibernateTransactionManager.HibernateTransactionObject()
public void setSession(Session session)
public void setExistingSession(Session session)
public void setSessionHolder(SessionHolder sessionHolder)
public SessionHolder getSessionHolder()
public boolean isNewSessionHolder()
public boolean isNewSession()
public boolean hasSpringManagedTransaction()
public boolean hasHibernateManagedTransaction()
public void setRollbackOnly()
public boolean isRollbackOnly()
SmartTransactionObject
javax.transaction.UserTransaction#getStatus
,
javax.transaction.Status#STATUS_MARKED_ROLLBACK
public void flush()
SmartTransactionObject
flush
in interface SmartTransactionObject
flush
in class JdbcTransactionObjectSupport