public interface EntityContext
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Remove all stored entities.
|
<T> void |
clear(Class<T> entity)
Remove all stored entities of the given class.
|
<T> boolean |
contains(Class<T> entity,
Object id)
Determines if this context contains the given entity.
|
<T> T |
get(Class<T> entity,
Object id)
Gets the given entity by its id.
|
<T> void |
put(Object id,
T entity)
Adds the given entity to the context.
|
<T> void |
remove(Class<T> entity,
Object id)
Remove the given entity.
|
<T> boolean contains(Class<T> entity, Object id)
T - The type of the entity.entity - The class of the entity to look for.id - The id of the entity to look for.<T> T get(Class<T> entity, Object id)
T - The type of the entity.entity - The class of the entity to look for.id - The id of the entity to look for.<T> void put(Object id, T entity)
T - The type of the entity.entity - The class of the entity to look for.id - The id of the entity to look for.<T> void remove(Class<T> entity, Object id)
T - The type of the entity.entity - The class of the entity to look for.id - The id of the entity to look for.<T> void clear(Class<T> entity)
T - The type of the entity.entity - The class of the entity to look for.void clear()
Copyright © 2015–2018 Bridje Framework. All rights reserved.