|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.entityfs.cap.entityattrs.impl.metadata.DatabaseChildEntityAttributeManager<T>
T - The type of EntityAttributes managed by this object.public class DatabaseChildEntityAttributeManager<T extends EntityAttributes>
The ChildEntityAttributeManager is used by an
EntityAttributes-enabling DirectoryDelegate
to keep track of all entity attributes for its child entities. The attributes
file is fetched from a AttributeFileRepository. A HeliDB database is
used for reading and writing to the file.
| Constructor Summary | |
|---|---|
DatabaseChildEntityAttributeManager(AttributeFileRepository fr,
Serializer<T> attrSerializer,
Map<EntityType,ObjectFactory<T>> af,
int bufferSize,
LogAdapterHolder lah)
|
|
| Method Summary | |
|---|---|
void |
add(String name,
T attr)
Set the attribute record for the entity |
boolean |
containsKey(String name)
Does this object contain attributes for the named entity. |
void |
delete(String name)
Delete the attribute record for the supplied entity. |
T |
get(String name,
EntityType et)
Get the attributes for the entity. |
void |
update(String name,
T attr)
Update the attribute record for the entity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseChildEntityAttributeManager(AttributeFileRepository fr,
Serializer<T> attrSerializer,
Map<EntityType,ObjectFactory<T>> af,
int bufferSize,
LogAdapterHolder lah)
| Method Detail |
|---|
public boolean containsKey(String name)
containsKey in interface ChildEntityAttributeManager<T extends EntityAttributes>name - The name of the entity.
true if there is an attribute record for the entity.
public T get(String name,
EntityType et)
get in interface ChildEntityAttributeManager<T extends EntityAttributes>name - The entity name,et - The type of entity. This is used to create default attributes
if no attribute record is saved for the entity.
public void add(String name,
T attr)
add in interface ChildEntityAttributeManager<T extends EntityAttributes>name - The name of the entity.attr - The attributes.
public void update(String name,
T attr)
update in interface ChildEntityAttributeManager<T extends EntityAttributes>name - The name of the entity.attr - The new attributes for the entity.public void delete(String name)
delete in interface ChildEntityAttributeManager<T extends EntityAttributes>name - The name of the entity whose record should be deleted.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||