lumis.portal.dao.hibernate
Interface ITransactionHibernate
- All Superinterfaces:
- ITransaction, ITransactionJdbc
- All Known Implementing Classes:
- TransactionHibernate
@StableMinor(version="4.1",
sinceVersion="4.0")
public interface ITransactionHibernate
- extends ITransactionJdbc
The transaction interface for when the transaction is backed up by hibernate.
- Since:
- 4.0.0
Method Summary |
org.hibernate.Session |
getSession()
Returns the default hibernate session for this transaction. |
org.hibernate.Session |
getSession(String databaseId)
Returns the hibernate session associated with the specified database. |
Methods inherited from interface lumis.util.ITransaction |
addObserver, begin, commit, dispose, getAttribute, getByConnectionId, isActive, removeAttribute, removeObserver, rollback, setAttribute |
getSession
org.hibernate.Session getSession()
throws DaoException
- Returns the default hibernate session for this transaction.
- Returns:
- the default hibernate session for this transaction.
- Throws:
DaoException
getSession
org.hibernate.Session getSession(String databaseId)
throws DaoException
- Returns the hibernate session associated with the specified database.
- Parameters:
databaseId
- the database id.
- Returns:
- the hibernate session.
- Throws:
DaoException
- Since:
- 4.0.4
Lumisportal 4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.