|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JpaProvider
Encapsulates functionality that is specific for a particular JPA implementation.
| Method Summary | |
|---|---|
List<EntityMetadata> |
getMetadata(MetadataFactory factory,
Set<Operation> defaultOperations,
boolean manageAllEntities)
Creates metadata for all persistent entities managed by Pimento. |
Class<?> |
getPersistentClass(Object entity)
Returns the persistent class for the specified entity. |
boolean |
isUninitializedProxy(Object entity)
Checks whether the specified entity is an uninitialized proxy. |
| Method Detail |
|---|
List<EntityMetadata> getMetadata(MetadataFactory factory,
Set<Operation> defaultOperations,
boolean manageAllEntities)
Implementations must inspect all entities configured for JPA.
If the @Managed annotation is present the entity
must be included in the returned metadata collection.
Furthermore properties annotated with @Hidden
must be excluded from the managed properties.
factory - the factory to use for creating EntityMetadataBuilder instancesdefaultOperations - the operations permitted for the EntityManager remote servicemanageAllEntities - whether all entities should be managed by Pimento, even if no Managed annotation is present
boolean isUninitializedProxy(Object entity)
entity - the entity to check
Class<?> getPersistentClass(Object entity)
entity - the entity to return the persistent class for
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||