javax.persistence.PersistenceUtil implementation to determine
the load status of an entity or entity attribute.
| Modifier and Type | Method and Description |
|---|---|
| public LoadState | Returns: load status of the entitywhose loaded status is to be determined entity)If the provider determines that the entity has been provided
by itself and that the state of all attributes for which
|
| public LoadState | Returns: load status of the attributeentity instance entity, String name of attribute whose load status is
to be determined attributeName)If the provider determines that the entity has been provided
by itself and that the state of the specified attribute has
been loaded, this method returns |
| public LoadState | Returns: load status of the attributeentity instance entity, String name of attribute whose load status is
to be determined attributeName)If the provider determines that the entity has been provided
by itself and that the state of the specified attribute has
been loaded, this method returns |
| isLoaded | back to summary |
|---|---|
| public LoadState isLoaded(Object entity) If the provider determines that the entity has been provided
by itself and that the state of all attributes for which
If the provider determines that the entity has been provided
by itself and that not all attributes with If the provider cannot determine if the entity has been
provided by itself, this method returns The provider's implementation of this method must not obtain a reference to any attribute value, as this could trigger the loading of entity state if the entity has been provided by a different provider. | |
| isLoadedWithoutReference | back to summary |
|---|---|
| public LoadState isLoadedWithoutReference(Object entity, String attributeName) If the provider determines that the entity has been provided
by itself and that the state of the specified attribute has
been loaded, this method returns If the provider determines that the entity has been provided
by itself and that either entity attributes with If a provider cannot determine the load state, this method
returns The provider's implementation of this method must not obtain a reference to an attribute value, as this could trigger the loading of entity state if the entity has been provided by a different provider. | |
| isLoadedWithReference | back to summary |
|---|---|
| public LoadState isLoadedWithReference(Object entity, String attributeName) If the provider determines that the entity has been provided
by itself and that the state of the specified attribute has
been loaded, this method returns If a provider determines that the entity has been provided
by itself and that either the entity attributes with If the provider cannot determine the load state, this method
returns The provider's implementation of this method is permitted to
obtain a reference to the attribute value. (This access is
safe because providers which might trigger the loading of the
attribute state will have already been determined by
| |