Package lumis.portal.dao.hibernate
Interface ITransactionHibernate
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
,ITransaction
,ITransaction
,ITransactionJdbc
,ITransactionJPA
- All Known Implementing Classes:
TransactionHibernate
@StableMinor(version="16.0", sinceVersion="4.0") public interface ITransactionHibernate extends ITransactionJdbc, ITransactionJPA
The transaction interface for when the transaction is backed up by hibernate.- Since:
- 4.0.0
- Version:
- $Revision: 25808 $ $Date: 2023-07-04 15:20:55 -0300 (Tue, 04 Jul 2023) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.hibernate.Session
getSession()
Returns the default hibernate session for this transaction.org.hibernate.Session
getSession(java.lang.String databaseId)
Returns the hibernate session associated with the specified database.-
Methods inherited from interface lumis.portal.transaction.ITransaction
getByConnectionId
-
Methods inherited from interface lumis.util.ITransaction
addObserver, begin, close, commit, dispose, getAttribute, isActive, removeAttribute, removeObserver, rollback, setAttribute
-
Methods inherited from interface lumis.portal.dao.jdbc.ITransactionJdbc
getConnection, getConnection
-
Methods inherited from interface lumis.portal.dao.jpa.ITransactionJPA
getEntityManager, getEntityManager
-
-
-
-
Method Detail
-
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(java.lang.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
-
-