public class OpenJPAPersistenceUtil extends Object
Constructor and Description |
---|
OpenJPAPersistenceUtil() |
Modifier and Type | Method and Description |
---|---|
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 javax.persistence.spi.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.
|
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
- StateManagerpublic static javax.persistence.spi.LoadState isLoaded(Object obj, String attr)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.