|
||||||||||
| 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 | |
|---|---|
Object |
getIdentifier(Object entity)
Returns 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 - containing the attributeattributeName - name of attribute whose load state is
to be determined
boolean isLoaded(Object entity)
isLoaded in interface PersistenceUtilentity - whose load state is to be determined
Object getIdentifier(Object entity)
entity -
IllegalStateException - if the entity is found not to be
an entity.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||