public class PersistentEntities extends Object implements Iterable<PersistentEntity<?,?>>
PersistentEntity instances managed by MappingContexts.| Constructor and Description |
|---|
PersistentEntities(Iterable<? extends MappingContext<?,?>> contexts)
Creates a new
PersistentEntities for the given MappingContexts. |
| Modifier and Type | Method and Description |
|---|---|
Iterable<TypeInformation<?>> |
getManagedTypes()
Returns all
TypeInformation exposed by the registered MappingContexts. |
PersistentEntity<?,?> |
getPersistentEntity(Class<?> type)
Returns the
PersistentEntity for the given type. |
Iterator<PersistentEntity<?,?>> |
iterator() |
public PersistentEntities(Iterable<? extends MappingContext<?,?>> contexts)
PersistentEntities for the given MappingContexts.contexts - public PersistentEntity<?,?> getPersistentEntity(Class<?> type)
PersistentEntity for the given type. Will consider all MappingContexts registered but
return null in case none of the registered ones already have a PersistentEntity registered for
the given type.type - can be null.public Iterable<TypeInformation<?>> getManagedTypes()
TypeInformation exposed by the registered MappingContexts.public Iterator<PersistentEntity<?,?>> iterator()
iterator in interface Iterable<PersistentEntity<?,?>>Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.