public interface PersistenceUnitUtil extends PersistenceUtil
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.
|Modifier and Type||Method and Description|
Return the id of the entity.
Determine the load state of an entity belonging to the persistence unit.
Determine the load state of a given persistent attribute of an entity belonging to the persistence unit.
boolean isLoaded(Object entity)
FetchType.EAGERhas been specified have been loaded.
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.
entity- entity instance
IllegalArgumentException- if the object is found not to be an entity
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.