Package com.cmobilecom.af.session
Interface JPAEntityManagerAccessor
-
- All Known Implementing Classes:
ResourceLocalEntityManagerAccessor
public interface JPAEntityManagerAccessor
JPAEntityManagerAccessor for getting JPA entity managers.- Since:
- 5.17
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearEntityManagers(QueryDescriptor queryDescriptor)
Clear entity mangers for the queryDescriptor, including detaching entities and clearing cached EntityManagers if appropriate.javax.persistence.EntityManager
getEntityManager(QueryDescriptor queryDescriptor)
Get the JPA entity manager for the queryDescriptor.
-
-
-
Method Detail
-
getEntityManager
javax.persistence.EntityManager getEntityManager(QueryDescriptor queryDescriptor)
Get the JPA entity manager for the queryDescriptor.- Parameters:
queryDescriptor
- query descriptor- Returns:
- EntityManager instance
-
clearEntityManagers
void clearEntityManagers(QueryDescriptor queryDescriptor)
Clear entity mangers for the queryDescriptor, including detaching entities and clearing cached EntityManagers if appropriate.- Parameters:
queryDescriptor
- queryDescriptor, null for all persistence units
-
-