nl.gx.webmanager.services.entitymanager
Interface PersistenceContext

All Known Subinterfaces:
JcrPersistenceContext

public interface PersistenceContext

Container interface to encapsulate and pass context information through the EntityManager, EntityFactory and PersistenceManager chain. It also holds the local cache used by PersistenceManager to avoid loops, when resolving references.

Author:
bramk

Method Summary
 PersistenceContextEntityManager getEntityManager()
          Provide easy acces to the EntityManager.
 java.util.Map<WmId,java.lang.Object> getLocalCache()
          Get local cache for the entities instantiated in this chain of invocation.
 

Method Detail

getEntityManager

PersistenceContextEntityManager getEntityManager()
Provide easy acces to the EntityManager.

Returns:
the entityManager

getLocalCache

java.util.Map<WmId,java.lang.Object> getLocalCache()
Get local cache for the entities instantiated in this chain of invocation.

Returns:
hash map holding instantiated entities


Copyright © 2007-2011 GX Software BV. All Rights Reserved.