org.springframework.orm.hibernate
Class HibernateTransactionObject
java.lang.Object
org.springframework.jdbc.datasource.JdbcTransactionObjectSupport
org.springframework.orm.hibernate.HibernateTransactionObject
- All Implemented Interfaces:
- SavepointManager, SmartTransactionObject
- public class HibernateTransactionObject
- extends JdbcTransactionObjectSupport
Hibernate transaction object, representing a SessionHolder.
Used as transaction object by HibernateTransactionManager.
Derives from JdbcTransactionObjectSupport to inherit the capability
to manage JDBC 3.0 Savepoints for underlying JDBC Connections.
Note: This is an SPI class, not intended to be used by applications.
- Since:
- 02.05.2003
- Author:
- Juergen Hoeller
- See Also:
HibernateTransactionManager
,
SessionHolder
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateTransactionObject
public HibernateTransactionObject()
setSessionHolder
protected void setSessionHolder(SessionHolder sessionHolder,
boolean newSessionHolder)
getSessionHolder
public SessionHolder getSessionHolder()
isNewSessionHolder
public boolean isNewSessionHolder()
hasTransaction
public boolean hasTransaction()
setPreviousFlushMode
protected void setPreviousFlushMode(net.sf.hibernate.FlushMode previousFlushMode)
getPreviousFlushMode
public net.sf.hibernate.FlushMode getPreviousFlushMode()
isRollbackOnly
public boolean isRollbackOnly()
- Description copied from interface:
SmartTransactionObject
- Return whether the transaction is internally marked as rollback-only.
Can, for example, check the JTA UserTransaction.
- See Also:
UserTransaction.getStatus()
,
Status.STATUS_MARKED_ROLLBACK
Copyright (C) 2003-2004 The Spring Framework Project.