|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.persistence.OpenJPAPersistenceUtil
public class OpenJPAPersistenceUtil
Constructor Summary | |
---|---|
OpenJPAPersistenceUtil()
|
Method Summary | |
---|---|
static Object |
getIdentifier(Object entity)
Returns the identifier of the persistent entity. |
static Object |
getIdentifier(OpenJPAEntityManagerFactory emf,
Object entity)
Get the object identifier for a persistent entity managed by one of the entity managers of the specified entity manager factory. |
static LoadState |
isLoaded(Object obj,
String attr)
Determines whether the attribute on the specified object is loaded and is managed by one of the entity managers. |
static boolean |
isManagedBy(OpenJPAEntityManagerFactory emf,
Object entity)
Determines whether the specified state manager is managed by an open broker within the persistence unit of the provided EMF instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OpenJPAPersistenceUtil()
Method Detail |
---|
public static Object getIdentifier(Object entity)
entity
-
public static Object getIdentifier(OpenJPAEntityManagerFactory emf, Object entity)
public static boolean isManagedBy(OpenJPAEntityManagerFactory emf, Object entity)
emf
- OpenJPAEntityManagerFactorysm
- StateManager
public static LoadState isLoaded(Object obj, String attr)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |