public interface MappingContext<E extends PersistentEntity<?,P>,P extends PersistentProperty<P>>
| Modifier and Type | Method and Description | 
|---|---|
| Collection<TypeInformation<?>> | getManagedTypes() | 
| Collection<E> | getPersistentEntities()Returns all  PersistentEntitys held in the context. | 
| E | getPersistentEntity(Class<?> type)Returns a  PersistentEntityfor the givenClass. | 
| E | getPersistentEntity(P persistentProperty)Returns the  PersistentEntitymapped by the givenPersistentProperty. | 
| E | getPersistentEntity(TypeInformation<?> type)Returns a  PersistentEntityfor the givenTypeInformation. | 
| PersistentPropertyPath<P> | getPersistentPropertyPath(PropertyPath propertyPath)Returns all  PersistentPropertys for the given path expression based on the givenPropertyPath. | 
| PersistentPropertyPath<P> | getPersistentPropertyPath(String propertyPath,
                         Class<?> type)Returns all  PersistentPropertys for the given dot path notation based on the given type. | 
| boolean | hasPersistentEntityFor(Class<?> type)Returns whether the  MappingContextcurrently contains aPersistentEntityfor the type. | 
Collection<E> getPersistentEntities()
PersistentEntitys held in the context.E getPersistentEntity(Class<?> type)
PersistentEntity for the given Class. Will return null for types that are
 considered simple ones.type - must not be null.SimpleTypeHolder.isSimpleType(Class)boolean hasPersistentEntityFor(Class<?> type)
MappingContext currently contains a PersistentEntity for the type.type - can be null.E getPersistentEntity(TypeInformation<?> type)
PersistentEntity for the given TypeInformation. Will return null for types
 that are considered simple ones.type - must not be null.SimpleTypeHolder.isSimpleType(Class)E getPersistentEntity(P persistentProperty)
PersistentEntity mapped by the given PersistentProperty.persistentProperty - PersistentEntity mapped by the given PersistentProperty or null if no
         PersistentEntity exists for it or the PersistentProperty does not refer to an entity (the
         type of the property is considered simple see
         SimpleTypeHolder.isSimpleType(Class)).PersistentPropertyPath<P> getPersistentPropertyPath(PropertyPath propertyPath)
PersistentPropertys for the given path expression based on the given PropertyPath.propertyPath - must not be null.PersistentPropertyPath representing the given PropertyPath.PersistentPropertyPath<P> getPersistentPropertyPath(String propertyPath, Class<?> type)
PersistentPropertys for the given dot path notation based on the given type.propertyPath - must not be null.type - must not be null.PersistentPropertyPath representing the given property path on the given type.Collection<TypeInformation<?>> getManagedTypes()
TypeInformations for the PersistentEntitys in the MappingContext.Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.