Interface PersistenceContext
-
- All Known Subinterfaces:
JcrPersistenceContext
public interface PersistenceContext
Container interface to encapsulate and pass context information through theEntityManager
,EntityFactory
andPersistenceManager
chain. It also holds the local cache used byPersistenceManager
to avoid loops, when resolving references.- Author:
- bramk
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PersistenceContextEntityManager
getEntityManager()
Provide easy acces to theEntityManager
.Map<WmId,Object>
getLocalCache()
Get local cache for the entities instantiated in this chain of invocation.
-
-
-
Method Detail
-
getEntityManager
PersistenceContextEntityManager getEntityManager()
Provide easy acces to theEntityManager
.- Returns:
- the entityManager
-
-