public interface ManagerComponent
ManagerComponent provides the mapping between entities and their
corresponding managers. Custom managers may be plugged into the Speedment
framework.| Modifier and Type | Method and Description |
|---|---|
<E> Manager<E> |
managerOf(Class<E> entityClass)
Obtains and returns the currently associated
Manager
implementation for the given Entity interface Class. |
<E> void |
put(Manager<E> manager)
Puts (associates) a
Manager implementation into the
ManagerComponent. |
Stream<Manager<?>> |
stream()
|
<E> void put(Manager<E> manager)
Manager implementation into the
ManagerComponent. If a previous Manager was associated
with an Entity class, table or interface, that association(s) is/are
replaced.E - the entity interface typemanager - to associate<E> Manager<E> managerOf(Class<E> entityClass) throws SpeedmentException
Manager
implementation for the given Entity interface Class. If no Manager exists
for the given entityClass, a SpeedmentException will be thrown.E - the entity interface typeentityClass - the entity interface ClassManager
implementation for the given Entity interface ClassSpeedmentException - if no Manager exists for the given entityClassCopyright © 2019 Speedment, Inc.. All rights reserved.