public interface PersistenceUnitUtil extends PersistenceUtil
| Modifier and Type | Method and Description |
|---|---|
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.
|
Object getIdentifier(Object entity)
entity - entity instanceIllegalArgumentException - if the object is found not to be an entityboolean isLoaded(Object entity)
isLoaded in interface PersistenceUtilentity - entity whose load state is to be determinedboolean isLoaded(Object entity, String attributeName)
isLoaded in interface PersistenceUtilentity - entity instance containing the attributeattributeName - name of attribute whose load state is to be determinedCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.