de.deepamehta.core
Interface DeepaMehtaObject

Show UML class diagram
All Superinterfaces:
Identifiable, JSONEnabled
All Known Subinterfaces:
Association, AssociationDefinition, AssociationType, RelatedAssociation, RelatedTopic, Topic, TopicType, Type
All Known Implementing Classes:
AttachedAssociation, AttachedAssociationDefinition, AttachedAssociationType, AttachedDeepaMehtaObject, AttachedRelatedAssociation, AttachedRelatedTopic, AttachedTopic, AttachedTopicType, AttachedType

public interface DeepaMehtaObject
extends Identifiable, JSONEnabled


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

getId

long getId()
Specified by:
getId in interface Identifiable

getUri

String getUri()

setUri

void setUri(String uri)

getTypeUri

String getTypeUri()

setTypeUri

void setTypeUri(String typeUri)

getSimpleValue

SimpleValue getSimpleValue()

setSimpleValue

void setSimpleValue(String value)

setSimpleValue

void setSimpleValue(int value)

setSimpleValue

void setSimpleValue(long value)

setSimpleValue

void setSimpleValue(boolean value)

setSimpleValue

void setSimpleValue(SimpleValue value)

getChildTopics

ChildTopics getChildTopics()

setChildTopics

void setChildTopics(ChildTopicsModel childTopics)

loadChildTopics

DeepaMehtaObject loadChildTopics()

loadChildTopics

DeepaMehtaObject loadChildTopics(String childTypeUri)

getModel

DeepaMehtaObjectModel getModel()

update

void update(DeepaMehtaObjectModel model)

updateChildTopic

void updateChildTopic(RelatedTopicModel newChildTopic,
                      AssociationDefinition assocDef)

updateChildTopics

void updateChildTopics(List<RelatedTopicModel> newChildTopics,
                       AssociationDefinition assocDef)

delete

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. "dm4.core.instantiation"


getRelatedTopic

RelatedTopic getRelatedTopic(String assocTypeUri,
                             String myRoleTypeUri,
                             String othersRoleTypeUri,
                             String othersTopicTypeUri)
Fetches and returns a related topic or null if no such topic extists.

Parameters:
assocTypeUri - may be null
myRoleTypeUri - may be null
othersRoleTypeUri - may be null
othersTopicTypeUri - may be null

getRelatedTopics

ResultList<RelatedTopic> getRelatedTopics(String assocTypeUri,
                                          int maxResultSize)

getRelatedTopics

ResultList<RelatedTopic> getRelatedTopics(String assocTypeUri,
                                          String myRoleTypeUri,
                                          String othersRoleTypeUri,
                                          String othersTopicTypeUri,
                                          int maxResultSize)
Parameters:
assocTypeUri - may be null
myRoleTypeUri - may be null
othersRoleTypeUri - may be null
othersTopicTypeUri - may be null
maxResultSize - Result size limit. Pass 0 for no limit.

getRelatedTopics

ResultList<RelatedTopic> getRelatedTopics(List assocTypeUris,
                                          String myRoleTypeUri,
                                          String othersRoleTypeUri,
                                          String othersTopicTypeUri,
                                          int maxResultSize)
Parameters:
assocTypeUris - may *not* be null
myRoleTypeUri - may be null
othersRoleTypeUri - may be null
othersTopicTypeUri - may be null

getRelatedAssociation

RelatedAssociation getRelatedAssociation(String assocTypeUri,
                                         String myRoleTypeUri,
                                         String othersRoleTypeUri,
                                         String othersAssocTypeUri)
Parameters:
assocTypeUri - may be null
myRoleTypeUri - may be null
othersRoleTypeUri - may be null
othersAssocTypeUri - may be null

getRelatedAssociations

ResultList<RelatedAssociation> getRelatedAssociations(String assocTypeUri,
                                                      String myRoleTypeUri,
                                                      String othersRoleTypeUri,
                                                      String othersAssocTypeUri)
Parameters:
assocTypeUri - may be null
myRoleTypeUri - may be null
othersRoleTypeUri - may be null
othersAssocTypeUri - may be null

getAssociation

Association getAssociation(String assocTypeUri,
                           String myRoleTypeUri,
                           String othersRoleTypeUri,
                           long othersTopicId)

getAssociations

List<Association> getAssociations()

getProperty

Object getProperty(String propUri)
Returns this object's property value associated with the given property URI. If there's no property value associated with the property URI an exception is thrown.


hasProperty

boolean hasProperty(String propUri)
Checks whether for this object a property value is associated with a given property URI.


setProperty

void setProperty(String propUri,
                 Object propValue,
                 boolean addToIndex)

removeProperty

void removeProperty(String propUri)
Removes this object's property associated with the given property URI. If there's no property value associated with the property URI nothing is performed.


getDatabaseVendorObject

Object getDatabaseVendorObject()


Copyright © 2015. All Rights Reserved.