|
Oracle® Fusion Middleware Java API Reference for EclipseLink 11g Release 1 (11.1.1) E26376-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersistenceUnitUtil
Utility interface between the application and the persistence provider managing the persistence unit.
The methods of this interface should only be invoked on entity instances obtained from or managed by entity managers for this persistence unit or on new entity instances.
Method Summary | |
---|---|
java.lang.Object |
getIdentifier(java.lang.Object entity) Return the id of the entity. |
boolean |
isLoaded(java.lang.Object entity) Determine the load state of an entity belonging to the persistence unit. |
boolean |
isLoaded(java.lang.Object entity, java.lang.String attributeName) Determine the load state of a given persistent attribute of an entity belonging to the persistence unit. |
Method Detail |
---|
boolean isLoaded(java.lang.Object entity, java.lang.String attributeName)
isLoaded
in interface PersistenceUtil
entity
- entity instance containing the attributeattributeName
- name of attribute whose load state is to be determinedboolean isLoaded(java.lang.Object entity)
FetchType.EAGER
has been specified have been loaded.
The isLoaded(Object, String)
method should be used to determine the load state of an attribute. Not doing so might lead to unintended loading of state.
isLoaded
in interface PersistenceUtil
entity
- entity instance whose load state is to be determinedjava.lang.Object getIdentifier(java.lang.Object entity)
entity
- entity instancejava.lang.IllegalArgumentException
- if the object is found not to be an entity
|
Oracle® Fusion Middleware Java API Reference for EclipseLink 11g Release 1 (11.1.1) E26376-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |