public interface DeepaMehtaObject extends Identifiable, JSONEnabled
Modifier and Type | Method and Description |
---|---|
void |
delete()
Deletes the DeepaMehta object in its entirety, that is
- the object itself (the parent)
- all child topics associated via "dm4.core.composition", recusively
- all the remaining direct associations, e.g.
|
Association |
getAssociation(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
long othersTopicId) |
List<Association> |
getAssociations() |
ChildTopics |
getChildTopics() |
Object |
getDatabaseVendorObject() |
long |
getId() |
DeepaMehtaObjectModel |
getModel() |
Object |
getProperty(String propUri)
Returns this object's property value associated with the given property URI.
|
RelatedAssociation |
getRelatedAssociation(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri) |
List<RelatedAssociation> |
getRelatedAssociations(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersAssocTypeUri) |
RelatedTopic |
getRelatedTopic(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri)
Fetches and returns a related topic or
null if no such topic extists. |
List<RelatedTopic> |
getRelatedTopics(List assocTypeUris,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri) |
List<RelatedTopic> |
getRelatedTopics(String assocTypeUri) |
List<RelatedTopic> |
getRelatedTopics(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri) |
SimpleValue |
getSimpleValue() |
DeepaMehtaType |
getType() |
String |
getTypeUri() |
String |
getUri() |
boolean |
hasProperty(String propUri)
Checks whether for this object a property value is associated with a given property URI.
|
DeepaMehtaObject |
loadChildTopics() |
DeepaMehtaObject |
loadChildTopics(String assocDefUri) |
void |
removeProperty(String propUri)
Removes this object's property associated with the given property URI.
|
void |
setChildTopics(ChildTopicsModel childTopics) |
void |
setProperty(String propUri,
Object propValue,
boolean addToIndex) |
void |
setSimpleValue(boolean value) |
void |
setSimpleValue(int value) |
void |
setSimpleValue(long value) |
void |
setSimpleValue(SimpleValue value) |
void |
setSimpleValue(String value) |
void |
setTypeUri(String typeUri) |
void |
setUri(String uri) |
void |
update(DeepaMehtaObjectModel model) |
void |
updateChildTopic(RelatedTopicModel newChildTopic,
AssociationDefinition assocDef) |
void |
updateChildTopics(List<? extends RelatedTopicModel> newChildTopics,
AssociationDefinition assocDef) |
toJSON
long getId()
getId
in interface Identifiable
String getTypeUri()
void setTypeUri(String typeUri)
SimpleValue getSimpleValue()
void setSimpleValue(String value)
void setSimpleValue(int value)
void setSimpleValue(long value)
void setSimpleValue(boolean value)
void setSimpleValue(SimpleValue value)
ChildTopics getChildTopics()
void setChildTopics(ChildTopicsModel childTopics)
DeepaMehtaObject loadChildTopics()
DeepaMehtaObject loadChildTopics(String assocDefUri)
DeepaMehtaType getType()
DeepaMehtaObjectModel getModel()
void update(DeepaMehtaObjectModel model)
void updateChildTopic(RelatedTopicModel newChildTopic, AssociationDefinition assocDef)
void updateChildTopics(List<? extends RelatedTopicModel> newChildTopics, AssociationDefinition assocDef)
void delete()
RelatedTopic getRelatedTopic(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
null
if no such topic extists.assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullList<RelatedTopic> getRelatedTopics(String assocTypeUri)
List<RelatedTopic> getRelatedTopics(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullList<RelatedTopic> getRelatedTopics(List assocTypeUris, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
assocTypeUris
- may *not* be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullRelatedAssociation getRelatedAssociation(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersAssocTypeUri)
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersAssocTypeUri
- may be nullList<RelatedAssociation> getRelatedAssociations(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersAssocTypeUri)
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersAssocTypeUri
- may be nullAssociation getAssociation(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, long othersTopicId)
List<Association> getAssociations()
Object getProperty(String propUri)
boolean hasProperty(String propUri)
void setProperty(String propUri, Object propValue, boolean addToIndex)
void removeProperty(String propUri)
Object getDatabaseVendorObject()
Copyright © 2017. All Rights Reserved.