class ChildTopicsFetcher extends Object
Modifier and Type | Field and Description |
---|---|
private Logger |
logger |
private PersistenceLayer |
pl |
Constructor and Description |
---|
ChildTopicsFetcher(PersistenceLayer pl) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
fetch(DMXObjectModel object,
AssociationDefinitionModel assocDef,
boolean deep)
Fetches the child topic models (recursively) of the given object model and updates it in-place.
|
private RelatedTopicModelImpl |
fetchChildTopic(long objectId,
AssociationDefinitionModel assocDef)
Fetches and returns a child topic or
null if no such topic extists. |
private void |
fetchChildTopics(DMXObjectModelImpl object,
boolean deep)
Fetches the child topic models (recursively) of the given object model and updates it in-place.
|
private List<RelatedTopicModelImpl> |
fetchChildTopics(long objectId,
AssociationDefinitionModel assocDef) |
private PersistenceLayer pl
ChildTopicsFetcher(PersistenceLayer pl)
void fetch(DMXObjectModel object, AssociationDefinitionModel assocDef, boolean deep)
Works for both, "one" and "many" association definitions.
assocDef
- The child topic models according to this association definition are fetched.private void fetchChildTopics(DMXObjectModelImpl object, boolean deep)
private RelatedTopicModelImpl fetchChildTopic(long objectId, AssociationDefinitionModel assocDef)
null
if no such topic extists.private List<RelatedTopicModelImpl> fetchChildTopics(long objectId, AssociationDefinitionModel assocDef)
Copyright © 2018. All Rights Reserved.