|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersistenceUtil
Utility interface between the application and the persistence provider(s).
The PersistenceUtil
interface instance obtained from the
Persistence
class is used to determine the load state of an
entity or entity attribute regardless of which persistence
provider in the environment created the entity.
Method Summary | |
---|---|
boolean |
isLoaded(java.lang.Object entity)
Determine the load state of an entity. |
boolean |
isLoaded(java.lang.Object entity,
java.lang.String attributeName)
Determine the load state of a given persistent attribute. |
Method Detail |
---|
boolean isLoaded(java.lang.Object entity, java.lang.String attributeName)
entity
- entity containing the attributeattributeName
- name of attribute whose load state is
to be determined
boolean 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.
entity
- whose load state is to be determined
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 10-February-2011 12:41