|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MappingContext
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 | ||
---|---|---|
|
addPersistentEntity(Class<T> type)
Adds a PersistentEntity instance |
|
List<Validator> |
getEntityValidators(PersistentEntity<?> entity)
Obtains a validator for the given entity |
|
Collection<? extends PersistentEntity<?>> |
getPersistentEntities()
Obtains a list of PersistentEntity instances |
|
|
getPersistentEntity(Class<T> type)
|
|
|
getPersistentEntity(TypeInformation type)
|
|
boolean |
isPersistentEntity(Object value)
Returns whether the specified value is a persistent entity |
Methods inherited from interface org.springframework.beans.factory.InitializingBean |
---|
afterPropertiesSet |
Method Detail |
---|
<T> PersistentEntity<T> addPersistentEntity(Class<T> type)
type
- The Java class representing the entity
Collection<? extends PersistentEntity<?>> getPersistentEntities()
<T> PersistentEntity<T> getPersistentEntity(Class<T> type)
<T> PersistentEntity<T> getPersistentEntity(TypeInformation type)
List<Validator> getEntityValidators(PersistentEntity<?> entity)
entity
- The entity
boolean isPersistentEntity(Object value)
value
- The value to check
|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |