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="17.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$ $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.persistence.EntityManager
getEntityManager()
Returns the default entity manager for this transaction.javax.persistence.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
javax.persistence.EntityManager getEntityManager()
Returns the default entity manager for this transaction.- Returns:
- the default entity manager for this transaction.
- Since:
- 4.2.0
-
getEntityManager
javax.persistence.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
-
-