public interface MappingContext<E extends PersistentEntity<?,P>,P extends PersistentProperty<P>>
Modifier and Type | Method and Description |
---|---|
Collection<E> |
getPersistentEntities()
Returns all
PersistentEntity s held in the context. |
E |
getPersistentEntity(Class<?> type)
Returns a
PersistentEntity for the given Class . |
E |
getPersistentEntity(P persistentProperty)
Returns the
PersistentEntity mapped by the given PersistentProperty . |
E |
getPersistentEntity(TypeInformation<?> type)
Returns a
PersistentEntity for the given TypeInformation . |
PersistentPropertyPath<P> |
getPersistentPropertyPath(PropertyPath propertyPath)
Returns all
PersistentProperty s for the given path expression based on the given PropertyPath . |
Collection<E> getPersistentEntities()
PersistentEntity
s 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)
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)
PersistentProperty
s for the given path expression based on the given PropertyPath
.T
- type
- path
- Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.