public class PersistentEntities extends Object implements Iterable<PersistentEntity<?,?>>
PersistentEntity
instances managed by MappingContext
s.Constructor and Description |
---|
PersistentEntities(Iterable<? extends MappingContext<?,?>> contexts)
Creates a new
PersistentEntities for the given MappingContext s. |
Modifier and Type | Method and Description |
---|---|
Iterable<TypeInformation<?>> |
getManagedTypes()
Returns all
TypeInformation exposed by the registered MappingContext s. |
PersistentEntity<?,?> |
getPersistentEntity(Class<?> type)
Returns the
PersistentEntity for the given type. |
Iterator<PersistentEntity<?,?>> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public PersistentEntities(Iterable<? extends MappingContext<?,?>> contexts)
PersistentEntities
for the given MappingContext
s.contexts
- public PersistentEntity<?,?> getPersistentEntity(Class<?> type)
PersistentEntity
for the given type. Will consider all MappingContext
s 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 MappingContext
s.public Iterator<PersistentEntity<?,?>> iterator()
iterator
in interface Iterable<PersistentEntity<?,?>>
Copyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.