|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PersistenceUnitUtil
The PersistenceUnitUtil interface provides access to utility methods that can be invoked on entities associated with the persistence unit. The behavior is undefined if these methods are invoked on an entity instance that is not associated with the persistence unit from whose entity manager factory this interface has been obtained.
| Method Summary | |
|---|---|
Object |
getIdentifier(Object entity)
Return the id of the entity. |
boolean |
isLoaded(Object entity)
Determine the load state of an entity belonging to the persistence unit. |
boolean |
isLoaded(Object entity,
String attributeName)
Determine the load state of a given persistent attribute of an entity belonging to the persistence unit. |
| Method Detail |
|---|
boolean isLoaded(Object entity,
String attributeName)
isLoaded in interface PersistenceUtilentity - entity instance containing the attributeattributeName - name of attribute whose load state is to be determined
boolean isLoaded(Object entity)
isLoaded in interface PersistenceUtilentity - entity whose load state is to be determined
Object getIdentifier(Object entity)
entity - entity instance
IllegalArgumentException - if the object is found not to be an entity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||