public class TypeRegister extends Object
| Constructor and Description |
|---|
TypeRegister() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(MetaData metaData,
Class type,
Object entity,
Object id)
Finds the map associated with an entity's class and adds the id and entity to the map
|
void |
clear()
Removes all entries from the TypeRegister
|
void |
delete(Class<?> type)
Removes the type from the register's keyset
|
Map<Object,Object> |
get(Class<?> type)
Returns an immutable map of the objects associated with the given type
|
void |
remove(MetaData metaData,
Class type,
Object id)
Finds the map associated with an entity's class and removes the entity's id from the map (if found)
|
public void remove(MetaData metaData, Class type, Object id)
metaData - the domain model metadatatype - the class of the entity to be removedid - the id of the entity to be removedpublic Map<Object,Object> get(Class<?> type)
type - the class whose map entries we want to returnpublic void clear()
public void add(MetaData metaData, Class type, Object entity, Object id)
metaData - the domain model metadatatype - the class of the entity to be addedentity - the entity to be addedid - the id of the entity to be addedpublic void delete(Class<?> type)
type - the type to be removedCopyright © 2016 Neo Technology, Inc.. All rights reserved.