|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DeepaMehtaObject
Method Summary | |
---|---|
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)
|
ResultList<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. |
ResultList<RelatedTopic> |
getRelatedTopics(List assocTypeUris,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri,
int maxResultSize)
|
ResultList<RelatedTopic> |
getRelatedTopics(String assocTypeUri,
int maxResultSize)
|
ResultList<RelatedTopic> |
getRelatedTopics(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri,
int maxResultSize)
|
SimpleValue |
getSimpleValue()
|
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 childTypeUri)
|
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<RelatedTopicModel> newChildTopics,
AssociationDefinition assocDef)
|
Methods inherited from interface de.deepamehta.core.JSONEnabled |
---|
toJSON |
Method Detail |
---|
long getId()
getId
in interface Identifiable
String getUri()
void setUri(String uri)
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 childTypeUri)
DeepaMehtaObjectModel getModel()
void update(DeepaMehtaObjectModel model)
void updateChildTopic(RelatedTopicModel newChildTopic, AssociationDefinition assocDef)
void updateChildTopics(List<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 nullResultList<RelatedTopic> getRelatedTopics(String assocTypeUri, int maxResultSize)
ResultList<RelatedTopic> getRelatedTopics(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri, int maxResultSize)
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullmaxResultSize
- Result size limit. Pass 0 for no limit.ResultList<RelatedTopic> getRelatedTopics(List assocTypeUris, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri, int maxResultSize)
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 nullResultList<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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |