Package lumis.portal.dao.jpa
Interface ITransactionJPA
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
,ITransaction
- All Known Subinterfaces:
ITransactionHibernate
- All Known Implementing Classes:
TransactionHibernate
@StableMinor(version="16.1", 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: 26156 $ $Date: 2024-01-13 10:26:46 -0300 (Sat, 13 Jan 2024) $
-
-
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(java.lang.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(java.lang.String databaseId)
Returns the entity manager associated with the specified database.- Parameters:
databaseId
- the database id.- Returns:
- the entity manager.
- Since:
- 4.2.0
-
-