|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MappingContext<E extends PersistentEntity<?,P>,P extends PersistentProperty<P>>
This interface defines the overall context including all known PersistentEntity instances and methods to obtain instances on demand
This interface is used internally to establish associations between entities and also at runtime to obtain entities by name
The generic type parameters T & R are used to specify the mapped form of a class (example Table) and property (example Column) respectively.
Method Summary | |
---|---|
List<Validator> |
getEntityValidators(E entity)
Obtains a validator for the given entity TODO: Why do we need validators at the MappingContext ? |
Collection<E> |
getPersistentEntities()
Obtains a list of PersistentEntity instances |
E |
getPersistentEntity(Class<?> type)
|
E |
getPersistentEntity(TypeInformation<?> type)
|
Method Detail |
---|
Collection<E> getPersistentEntities()
E getPersistentEntity(Class<?> type)
E getPersistentEntity(TypeInformation<?> type)
List<Validator> getEntityValidators(E entity)
MappingContext
?
entity
- The entity
|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |