HibernateTransactionManager

org.beangle.data.orm.hibernate.spring.HibernateTransactionManager
class HibernateTransactionManager(val sessionFactory: SessionFactory) extends AbstractPlatformTransactionManager with ResourceTransactionManager

Simplify HibernateTransactionManager in spring-orm bundle. Just add SessionUtils.isEnableThreadBinding() support in doGetTranscation

  • disable hibernateManagedSession.

  • enable connectionPrepared

  • disable holdabilityNeeded

Attributes

Graph
Supertypes
trait ResourceTransactionManager
class AbstractPlatformTransactionManager
trait Serializable
trait PlatformTransactionManager
trait TransactionManager
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override protected def doBegin(transaction: AnyRef, definition: TransactionDefinition): Unit

Attributes

Definition Classes
AbstractPlatformTransactionManager
override protected def doCleanupAfterCompletion(transaction: Object): Unit

Attributes

Definition Classes
AbstractPlatformTransactionManager
override protected def doCommit(status: DefaultTransactionStatus): Unit

Attributes

Definition Classes
AbstractPlatformTransactionManager
override protected def doGetTransaction(): AnyRef

Attributes

Definition Classes
AbstractPlatformTransactionManager
override protected def doResume(transaction: AnyRef, suspendedResources: AnyRef): Unit

Attributes

Definition Classes
AbstractPlatformTransactionManager
override protected def doRollback(status: DefaultTransactionStatus): Unit

Attributes

Definition Classes
AbstractPlatformTransactionManager
override protected def doSetRollbackOnly(status: DefaultTransactionStatus): Unit

Attributes

Definition Classes
AbstractPlatformTransactionManager
override protected def doSuspend(transaction: AnyRef): AnyRef

Attributes

Definition Classes
AbstractPlatformTransactionManager
def getResourceFactory: AnyRef
override protected def isExistingTransaction(transaction: AnyRef): Boolean

Attributes

Definition Classes
AbstractPlatformTransactionManager
protected def isSameConnectionForEntireSession(session: Session): Boolean

Inherited methods

final def commit(status: TransactionStatus): Unit

Attributes

Inherited from:
AbstractPlatformTransactionManager
final def getDefaultTimeout(): Int

Attributes

Inherited from:
AbstractPlatformTransactionManager
final def getTransaction(definition: TransactionDefinition): TransactionStatus

Attributes

Inherited from:
AbstractPlatformTransactionManager

Attributes

Inherited from:
AbstractPlatformTransactionManager
final def isFailEarlyOnGlobalRollbackOnly(): Boolean

Attributes

Inherited from:
AbstractPlatformTransactionManager

Attributes

Inherited from:
AbstractPlatformTransactionManager
final def isNestedTransactionAllowed(): Boolean

Attributes

Inherited from:
AbstractPlatformTransactionManager
final def isRollbackOnCommitFailure(): Boolean

Attributes

Inherited from:
AbstractPlatformTransactionManager
final def isValidateExistingTransaction(): Boolean

Attributes

Inherited from:
AbstractPlatformTransactionManager
final def rollback(status: TransactionStatus): Unit

Attributes

Inherited from:
AbstractPlatformTransactionManager
final def setDefaultTimeout(defaultTimeout: Int): Unit

Attributes

Inherited from:
AbstractPlatformTransactionManager
final def setFailEarlyOnGlobalRollbackOnly(failEarlyOnGlobalRollbackOnly: Boolean): Unit

Attributes

Inherited from:
AbstractPlatformTransactionManager
final def setGlobalRollbackOnParticipationFailure(globalRollbackOnParticipationFailure: Boolean): Unit

Attributes

Inherited from:
AbstractPlatformTransactionManager
final def setNestedTransactionAllowed(nestedTransactionAllowed: Boolean): Unit

Attributes

Inherited from:
AbstractPlatformTransactionManager
final def setRollbackOnCommitFailure(rollbackOnCommitFailure: Boolean): Unit

Attributes

Inherited from:
AbstractPlatformTransactionManager
final def setTransactionSynchronization(transactionSynchronization: Int): Unit

Attributes

Inherited from:
AbstractPlatformTransactionManager
final def setTransactionSynchronizationName(constantName: String): Unit

Attributes

Inherited from:
AbstractPlatformTransactionManager
final def setValidateExistingTransaction(validateExistingTransaction: Boolean): Unit

Attributes

Inherited from:
AbstractPlatformTransactionManager

Concrete fields

val dataSource: DataSource
var entityInterceptor: Option[Interceptor]
val sessionFactory: SessionFactory
var sessionInitializer: Option[Consumer[Session]]