lumis.portal.dao.jpa
Interface ITransactionJPA

Package class diagram package ITransactionJPA
All Superinterfaces:
ITransaction
All Known Subinterfaces:
ITransactionHibernate
All Known Implementing Classes:
TransactionHibernate

@StableMinor(version="6.2",
             sinceVersion="4.2")
public interface ITransactionJPA
extends ITransaction

The transaction interface for when the transaction is backed up by JPA.

Since:
4.2.0

Method Summary
 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, 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


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.