Method | Description | |
---|---|---|
AfterPropertiesSet ( ) : void |
Invoked by an Spring.Objects.Factory.IObjectFactory after it has injected all of an object's dependencies. This method allows the object instance to perform the kind of initialization only possible when all of it's dependencies have been injected (set), and to throw an appropriate exception in the event of misconfiguration. Please do consult the class level documentation for the Spring.Objects.Factory.IObjectFactory interface for a description of exactly when this method is invoked. In particular, it is worth noting that the Spring.Objects.Factory.IObjectFactoryAware and Spring.Context.IApplicationContextAware callbacks will have been invoked prior to this method being called. |
|
HibernateTransactionManager ( ) : System |
Initializes a new instance of the HibernateTransactionManager class.
|
|
HibernateTransactionManager ( ISessionFactory sessionFactory ) : System |
Initializes a new instance of the HibernateTransactionManager class.
|
Method | Description | |
---|---|---|
ConvertAdoAccessException ( |
Convert the given ADOException to an appropriate exception from the the Spring.Dao hierarchy. Can be overridden in subclasses.
|
|
ConvertHibernateAccessException ( NHibernate.HibernateException ex ) : Spring.Dao.DataAccessException |
Convert the given HibernateException to an appropriate exception from the Spring.Dao hierarchy. Can be overridden in subclasses.
|
|
DoBegin ( object transaction, ITransactionDefinition definition ) : void |
Begin a new transaction with the given transaction definition. Does not have to care about applying the propagation behavior, as this has already been handled by this abstract manager. |
|
DoCleanupAfterCompletion ( object transaction ) : void |
Cleanup resources after transaction completion. Called after M:Spring.Transaction.Support.AbstractPlatformTransactionManager.DoCommit(Spring.Transaction.Support.DefaultTransactionStatus) and M:Spring.Transaction.Support.AbstractPlatformTransactionManager.DoRollback(Spring.Transaction.Support.DefaultTransactionStatus) execution on any outcome. Should not throw any exceptions but just issue warnings on errors. |
|
DoCommit ( Spring.Transaction.Support.DefaultTransactionStatus status ) : void |
Perform an actual commit on the given transaction. An implementation does not need to check the rollback-only flag. |
|
DoGetTransaction ( ) : object |
Return the current transaction object.
|
|
DoResume ( object transaction, object suspendedResources ) : void |
Resume the resources of the current transaction. Transaction synchronization will be resumed afterwards. |
|
DoRollback ( Spring.Transaction.Support.DefaultTransactionStatus status ) : void |
Perform an actual rollback on the given transaction. An implementation does not need to check the new transaction flag. |
|
DoSetRollbackOnly ( Spring.Transaction.Support.DefaultTransactionStatus status ) : void |
Set the given transaction rollback-only. Only called on rollback if the current transaction takes part in an existing one.
|
|
DoSuspend ( object transaction ) : object |
Suspend the resources of the current transaction. Transaction synchronization will already have been suspended. |
|
GetIDbTransaction ( ITransaction hibernateTx ) : IDbTransaction |
Gets the ADO.NET IDbTransaction object from the NHibernate ITransaction object.
|
|
IsExistingTransaction ( object transaction ) : bool |
Check if the given transaction object indicates an existing, i.e. already begun, transaction.
|
protected ConvertAdoAccessException ( |
||
ex | The ADOException that occured, wrapping the underlying /// ADO.NET thrown exception. | |
translator | IAdoExceptionTranslator | The translator to convert hibernate ADOExceptions. |
return | Spring.Dao.DataAccessException |
protected ConvertHibernateAccessException ( NHibernate.HibernateException ex ) : Spring.Dao.DataAccessException | ||
ex | NHibernate.HibernateException | The HibernateException that occured. |
return | Spring.Dao.DataAccessException |
protected DoBegin ( object transaction, ITransactionDefinition definition ) : void | ||
transaction | object |
/// Transaction object returned by
/// |
definition | ITransactionDefinition |
/// |
return | void |
protected DoCleanupAfterCompletion ( object transaction ) : void | ||
transaction | object | Transaction object returned by
/// |
return | void |
protected DoCommit ( Spring.Transaction.Support.DefaultTransactionStatus status ) : void | ||
status | Spring.Transaction.Support.DefaultTransactionStatus | The status representation of the transaction. |
return | void |
protected DoResume ( object transaction, object suspendedResources ) : void | ||
transaction | object |
/// Transaction object returned by
/// |
suspendedResources | object |
/// The object that holds suspended resources as returned by
/// |
return | void |
protected DoRollback ( Spring.Transaction.Support.DefaultTransactionStatus status ) : void | ||
status | Spring.Transaction.Support.DefaultTransactionStatus | The status representation of the transaction. |
return | void |
protected DoSetRollbackOnly ( Spring.Transaction.Support.DefaultTransactionStatus status ) : void | ||
status | Spring.Transaction.Support.DefaultTransactionStatus | The status representation of the transaction. |
return | void |
protected DoSuspend ( object transaction ) : object | ||
transaction | object |
/// Transaction object returned by
/// |
return | object |
protected GetIDbTransaction ( ITransaction hibernateTx ) : IDbTransaction | ||
hibernateTx | ITransaction | The hibernate transaction. |
return | IDbTransaction |
public HibernateTransactionManager ( ) : System | ||
return | System |
public HibernateTransactionManager ( ISessionFactory sessionFactory ) : System | ||
sessionFactory | ISessionFactory | The session factory. |
return | System |
protected IsExistingTransaction ( object transaction ) : bool | ||
transaction | object |
/// Transaction object returned by
/// |
return | bool |