Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
EclipseLink/Development/JPA 2.0/persistence utils
< EclipseLink | Development | JPA 2.0
Revision as of 11:16, 22 September 2009 by Unnamed Poltroon (Talk)
JPA 2.0: PersistenceUtil
Date | Committer(s) | Description |
---|---|---|
June 29, 2009 | gyorke | Initial feature template |
Summary
The JPA 2.0 specification provides two ways of inquiring about the load-state of classes. PersistenceUnitUtil provides a way of querying a single EntityManagerFactory and ProviderUtil provides a way of querying a whole persistence provider. These interfaces to provide a validation mechanism where a requester can inquire about the state of indirection.
Work Estimate
- PersistenceUnitUtil - 2 days
- ProviderUtil - 3 days
Functional Requirements
The functional requirements are defined by the specification.
PersistenceUnitUtil has the following methods:
- isLoaded(entity) - return whether all the eager fields of an entity are loaded
- isLoaded(entity, attribute) - returh whether the named attribute is loaded on the given entity
- getIdentifier - get the primary key of the object
ProviderUtil has the following methods
- isLoadedWithReference(entity, attribute) - return whether the entity has all its eager fields loaded and the given attribute is loaded
- isLoadedWithoutReference(entity, attribute) - return whether the entity has all its eager fields loaded and the given attribute is loaded do not trigger indirection
- isLoaded(entity) - return whether the entity has all its eager fields loaded, do not trigger indirection
Existing Feature Impact
Feature | Supported | Notes |
---|