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="5.5",
             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  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.