class AttachedTopic extends AttachedDeepaMehtaObject implements Topic
DeepaMehtaService
.Modifier and Type | Field and Description |
---|---|
private Logger |
logger |
dms
Constructor and Description |
---|
AttachedTopic(TopicModel model,
EmbeddedService dms) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
_update(TopicModel model)
Low-level update method which does not fire the POST_UPDATE_TOPIC_REQUEST event.
|
(package private) String |
className() |
void |
delete()
Deletes 1) this DeepaMehta object's child topics (recursively) which have an underlying association definition of
type "Composition Definition" and 2) deletes all the remaining direct associations of this DeepaMehta object.
|
private Association |
fetchInstantiation() |
(package private) RelatedTopicModel |
fetchRelatedTopic(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri) |
(package private) ResultList<RelatedTopicModel> |
fetchRelatedTopics(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri,
int maxResultSize) |
Association |
getAssociation(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
long othersTopicId) |
List<Association> |
getAssociations() |
TopicModel |
getModel() |
RelatedAssociation |
getRelatedAssociation(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri) |
ResultList<RelatedAssociation> |
getRelatedAssociations(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri) |
ResultList<RelatedTopic> |
getRelatedTopics(List assocTypeUris,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri,
int maxResultSize) |
(package private) TopicType |
getType() |
(package private) Directive |
getUpdateDirective() |
Topic |
loadChildTopics() |
Topic |
loadChildTopics(String childTypeUri) |
private void |
reassignInstantiation() |
void |
removeProperty(String propUri)
Removes this object's property associated with the given property URI.
|
void |
setProperty(String propUri,
Object propValue,
boolean addToIndex) |
(package private) void |
storeTypeUri() |
(package private) void |
storeUri() |
void |
update(TopicModel model) |
(package private) void |
updateChildTopics(ChildTopicsModel childTopics) |
equals, getChildTopics, getDatabaseVendorObject, getId, getProperty, getRelatedTopic, getRelatedTopics, getRelatedTopics, getSimpleValue, getTypeUri, getUri, hashCode, hasProperty, setChildTopics, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, toJSON, toString, update, updateChildTopic, updateChildTopics
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChildTopics, getDatabaseVendorObject, getId, getProperty, getRelatedTopic, getRelatedTopics, getRelatedTopics, getSimpleValue, getTypeUri, getUri, hasProperty, setChildTopics, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, update, updateChildTopic, updateChildTopics
toJSON
AttachedTopic(TopicModel model, EmbeddedService dms)
public void update(TopicModel model)
public void delete()
AttachedDeepaMehtaObject
Note: deletion of the object itself is up to the subclasses.
delete
in interface DeepaMehtaObject
delete
in class AttachedDeepaMehtaObject
public Topic loadChildTopics()
loadChildTopics
in interface DeepaMehtaObject
loadChildTopics
in interface Topic
loadChildTopics
in class AttachedDeepaMehtaObject
public Topic loadChildTopics(String childTypeUri)
loadChildTopics
in interface DeepaMehtaObject
loadChildTopics
in interface Topic
loadChildTopics
in class AttachedDeepaMehtaObject
public TopicModel getModel()
getModel
in interface DeepaMehtaObject
getModel
in interface Topic
getModel
in class AttachedDeepaMehtaObject
public ResultList<RelatedTopic> getRelatedTopics(List assocTypeUris, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri, int maxResultSize)
getRelatedTopics
in interface DeepaMehtaObject
assocTypeUris
- may *not* be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullpublic RelatedAssociation getRelatedAssociation(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersAssocTypeUri)
getRelatedAssociation
in interface DeepaMehtaObject
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersAssocTypeUri
- may be nullpublic ResultList<RelatedAssociation> getRelatedAssociations(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersAssocTypeUri)
getRelatedAssociations
in interface DeepaMehtaObject
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersAssocTypeUri
- may be nullpublic Association getAssociation(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, long othersTopicId)
getAssociation
in interface DeepaMehtaObject
public List<Association> getAssociations()
getAssociations
in interface DeepaMehtaObject
public void setProperty(String propUri, Object propValue, boolean addToIndex)
setProperty
in interface DeepaMehtaObject
public void removeProperty(String propUri)
DeepaMehtaObject
removeProperty
in interface DeepaMehtaObject
void _update(TopicModel model)
Called multiple times while updating the child topics (see AttachedChildTopics). POST_UPDATE_TOPIC_REQUEST on the other hand must be fired only once (per update request).
String className()
className
in class AttachedDeepaMehtaObject
void updateChildTopics(ChildTopicsModel childTopics)
updateChildTopics
in class AttachedDeepaMehtaObject
Directive getUpdateDirective()
getUpdateDirective
in class AttachedDeepaMehtaObject
final void storeUri()
storeUri
in class AttachedDeepaMehtaObject
final void storeTypeUri()
storeTypeUri
in class AttachedDeepaMehtaObject
final RelatedTopicModel fetchRelatedTopic(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
fetchRelatedTopic
in class AttachedDeepaMehtaObject
final ResultList<RelatedTopicModel> fetchRelatedTopics(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri, int maxResultSize)
fetchRelatedTopics
in class AttachedDeepaMehtaObject
TopicType getType()
getType
in class AttachedDeepaMehtaObject
private void reassignInstantiation()
private Association fetchInstantiation()
Copyright © 2015. All Rights Reserved.