extractor. Should be used with code/frameworks that
wrap the actual EntityManagerFactory.
- Author:
- kimchy
|
Method Summary |
javax.persistence.EntityManager |
extractNative(javax.persistence.EntityManager entityManager)
Extracts the native EntityManager based on the given EntityManager. |
javax.persistence.EntityManagerFactory |
extractNative(javax.persistence.EntityManagerFactory entityManagerFactory)
Returns the actual EntityManagerFactory based on the given EntityManagerFactory. |
extractNative
javax.persistence.EntityManagerFactory extractNative(javax.persistence.EntityManagerFactory entityManagerFactory)
throws JpaGpsDeviceException
- Returns the actual
EntityManagerFactory based on the given EntityManagerFactory.
Should return the same EntityManagerFactory if not wrapping has been done.
- Parameters:
entityManagerFactory - The (possibly) wrapped EntityManagerFactory.
- Returns:
- The actual
EntityManagerFactory implementation.
- Throws:
JpaGpsDeviceException
extractNative
javax.persistence.EntityManager extractNative(javax.persistence.EntityManager entityManager)
throws JpaGpsDeviceException
- Extracts the native
EntityManager based on the given EntityManager.
Should return the same EntityManager if no wrapper has been done.
- Parameters:
entityManager - The (possibly) wrapper EntityManager.
- Returns:
- The actual
EntityManager.
- Throws:
JpaGpsDeviceException
Copyright (c) 2004-2008 The Compass Project.