public interface PersistenceUtil
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.Modifier and Type | Method and Description |
---|---|
boolean |
isLoaded(Object entity)
Determine the load state of an entity.
|
boolean |
isLoaded(Object entity,
String attributeName)
Determine the load state of a given persistent attribute.
|
boolean isLoaded(Object entity, String attributeName)
entity
- entity containing the attributeattributeName
- name of attribute whose load state is
to be determinedboolean isLoaded(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 determinedCopyright © 2017 JBoss by Red Hat. All rights reserved.