Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTransactionManager Members

HibernateTransactionManager overview

Public Instance Constructors

HibernateTransactionManager Overloaded. Initializes a new instance of the HibernateTransactionManager class.

Public Instance Properties

AdoExceptionTranslator Gets or sets the ADO.NET exception translator for this transaction manager.
AutodetectDbProvider Set whether to autodetect a ADO.NET connection used by the Hibernate SessionFactory, if set via LocalSessionFactoryObject's
. Default is "true".
DbProvider Gets or sets the db provider.
DefaultAdoExceptionTranslator Gets the default IAdoException translator, lazily creating it if nece
DefaultTimeout (inherited from AbstractPlatformTransactionManager) Gets or sets the default timeout that this transaction manager should apply if there is no timeout specified at the transaction level, in seconds.
EntityInterceptor Gets or sets a Hibernate entity interceptor that allows to inspect and change property values before writing to and reading from the database. When getting, return the current Hibernate entity interceptor, or
if none.
EntityInterceptorObjectName Sets the object name of a Hibernate entity interceptor that allows to inspect and change property values before writing to and reading from the database.
FailEarlyOnGlobalRollbackOnly (inherited from AbstractPlatformTransactionManager) Gets or sets a value indicating whether to fail early in case of the transaction being globally marked as rollback-only.
NestedTransactionsAllowed (inherited from AbstractPlatformTransactionManager) Sets and gets whether nested transactions are allowed. Default is false.
ObjectFactory The object factory just needs to be known for resolving entity interceptor It does not need to be set for any other mode of operation.
ResourceFactory Gets the resource factory that this transaction manager operates on, For the HibenratePlatformTransactionManager this the SessionFactory
RollbackOnCommitFailure (inherited from AbstractPlatformTransactionManager) Sets and gets a flag that determines whether or not the DoRollback method must be invoked if a call to the DoCommit method fails. Default is false.
SessionFactory Gets or sets the SessionFactory that this instance should manage transactions for.
TransactionSynchronization (inherited from AbstractPlatformTransactionManager) Sets and gets when this transaction manager should activate the thread-bound transaction synchronization support. Default is "always".

Public Instance Methods

AfterPropertiesSet Invoked by an IObjectFactory after it has injected all of an object's dependencies.
Commit (inherited from AbstractPlatformTransactionManager) This implementation of commit handles participating in existing transactions and programmatic rollback requests.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetTransaction (inherited from AbstractPlatformTransactionManager) Return a currently active transaction or create a new one.
GetType (inherited from Object)Gets the Type of the current instance.
Rollback (inherited from AbstractPlatformTransactionManager) Roll back the given transaction, with regard to its status.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Fields

log (inherited from AbstractPlatformTransactionManager)Missing <summary> documentation for F:Spring.Transaction.Support.AbstractPlatformTransactionManager.log

Protected Instance Properties

ShouldCommitOnGlobalRollbackOnly (inherited from AbstractPlatformTransactionManager)Missing <summary> documentation for P:Spring.Transaction.Support.AbstractPlatformTransactionManager.ShouldCommitOnGlobalRollbackOnly

Protected Instance Methods

ConvertAdoAccessException Convert the given ADOException to an appropriate exception from the the Spring.Dao hierarchy. Can be overridden in subclasses.
ConvertHibernateAccessException Convert the given HibernateException to an appropriate exception from the Spring.Dao hierarchy. Can be overridden in subclasses.
DetermineTimeout (inherited from AbstractPlatformTransactionManager) Determines the timeout to use for the given definition. Will fall back to this manager's default timeout if the transaction definition doesn't specify a non-default value.
DoBegin Begin a new transaction with the given transaction definition.
DoCleanupAfterCompletion Cleanup resources after transaction completion.
DoCommit Perform an actual commit on the given transaction.
DoGetTransaction Return the current transaction object.
DoResume Resume the resources of the current transaction.
DoRollback Perform an actual rollback on the given transaction.
DoSetRollbackOnly Set the given transaction rollback-only. Only called on rollback if the current transaction takes part in an existing one.
DoSuspend Suspend the resources of the current transaction.
Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetIDbTransaction Gets the ADO.NET IDbTransaction object from the NHibernate ITransaction object.
IsExistingTransaction Check if the given transaction object indicates an existing, i.e. already begun, transaction.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
RegisterAfterCompletionWithExistingTransaction (inherited from AbstractPlatformTransactionManager) Register the given list of transaction synchronizations with the existing transaction.
UseSavepointForNestedTransaction (inherited from AbstractPlatformTransactionManager) Return whether to use a savepoint for a nested transaction. Default is true, which causes delegation to DefaultTransactionStatus for holding a savepoint.

See Also

HibernateTransactionManager Class | Spring.Data.NHibernate Namespace