Package lumis.portal.dao.jpa
Interface ITransactionJPA
-
- All Superinterfaces:
AutoCloseable
,Closeable
,ITransaction
- All Known Subinterfaces:
ITransactionHibernate
- All Known Implementing Classes:
TransactionHibernate
@StableMinor(version="14.0", sinceVersion="4.2") public interface ITransactionJPA extends ITransaction
The transaction interface for when the transaction is backed up by JPA.- Since:
- 4.2.0
- Version:
- $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EntityManager
getEntityManager()
Returns the default entity manager for this transaction.EntityManager
getEntityManager(String databaseId)
Returns the entity manager associated with the specified database.-
Methods inherited from interface lumis.util.ITransaction
addObserver, begin, close, commit, dispose, getAttribute, getByConnectionId, isActive, removeAttribute, removeObserver, rollback, setAttribute
-
-
-
-
Method Detail
-
getEntityManager
EntityManager getEntityManager()
Returns the default entity manager for this transaction.- Returns:
- the default entity manager for this transaction.
- Since:
- 4.2.0
-
getEntityManager
EntityManager getEntityManager(String databaseId)
Returns the entity manager associated with the specified database.- Parameters:
databaseId
- the database id.- Returns:
- the entity manager.
- Since:
- 4.2.0
-
-