abstract class DeepaMehtaObjectImpl extends Object implements DeepaMehtaObject
Modifier and Type | Field and Description |
---|---|
(package private) ModelFactoryImpl |
mf |
(package private) DeepaMehtaObjectModelImpl |
model |
(package private) PersistenceLayer |
pl |
Constructor and Description |
---|
DeepaMehtaObjectImpl(DeepaMehtaObjectModelImpl model,
PersistenceLayer pl) |
Modifier and Type | Method and Description |
---|---|
(package private) String |
className() |
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.
|
boolean |
equals(Object o) |
ChildTopicsImpl |
getChildTopics() |
Object |
getDatabaseVendorObject() |
long |
getId() |
DeepaMehtaObjectModelImpl |
getModel() |
Object |
getProperty(String propUri)
Returns this object's property value associated with the given property URI.
|
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(String assocTypeUri) |
List<RelatedTopic> |
getRelatedTopics(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri) |
SimpleValue |
getSimpleValue() |
String |
getTypeUri() |
String |
getUri() |
int |
hashCode() |
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 |
setChildTopics(ChildTopicsModel childTopics) |
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) |
org.codehaus.jettison.json.JSONObject |
toJSON() |
String |
toString() |
void |
update(DeepaMehtaObjectModel newModel) |
void |
updateChildTopic(RelatedTopicModel newChildTopic,
AssociationDefinition assocDef) |
void |
updateChildTopics(List<? extends RelatedTopicModel> newChildTopics,
AssociationDefinition assocDef) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAssociation, getAssociations, getRelatedAssociation, getRelatedAssociations, getRelatedTopics, getType, removeProperty, setProperty
DeepaMehtaObjectImpl(DeepaMehtaObjectModelImpl model, PersistenceLayer pl)
public long getId()
getId
in interface DeepaMehtaObject
getId
in interface Identifiable
public String getUri()
getUri
in interface DeepaMehtaObject
public void setUri(String uri)
setUri
in interface DeepaMehtaObject
public String getTypeUri()
getTypeUri
in interface DeepaMehtaObject
public void setTypeUri(String typeUri)
setTypeUri
in interface DeepaMehtaObject
public SimpleValue getSimpleValue()
getSimpleValue
in interface DeepaMehtaObject
public void setSimpleValue(String value)
setSimpleValue
in interface DeepaMehtaObject
public void setSimpleValue(int value)
setSimpleValue
in interface DeepaMehtaObject
public void setSimpleValue(long value)
setSimpleValue
in interface DeepaMehtaObject
public void setSimpleValue(boolean value)
setSimpleValue
in interface DeepaMehtaObject
public void setSimpleValue(SimpleValue value)
setSimpleValue
in interface DeepaMehtaObject
public ChildTopicsImpl getChildTopics()
getChildTopics
in interface DeepaMehtaObject
public void setChildTopics(ChildTopicsModel childTopics)
setChildTopics
in interface DeepaMehtaObject
public DeepaMehtaObject loadChildTopics()
loadChildTopics
in interface DeepaMehtaObject
public DeepaMehtaObject loadChildTopics(String assocDefUri)
loadChildTopics
in interface DeepaMehtaObject
public DeepaMehtaObjectModelImpl getModel()
getModel
in interface DeepaMehtaObject
public final void update(DeepaMehtaObjectModel newModel)
update
in interface DeepaMehtaObject
public void updateChildTopic(RelatedTopicModel newChildTopic, AssociationDefinition assocDef)
updateChildTopic
in interface DeepaMehtaObject
public void updateChildTopics(List<? extends RelatedTopicModel> newChildTopics, AssociationDefinition assocDef)
updateChildTopics
in interface DeepaMehtaObject
public final void delete()
DeepaMehtaObject
delete
in interface DeepaMehtaObject
public RelatedTopic getRelatedTopic(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
DeepaMehtaObject
null
if no such topic extists.getRelatedTopic
in interface DeepaMehtaObject
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullpublic List<RelatedTopic> getRelatedTopics(String assocTypeUri)
getRelatedTopics
in interface DeepaMehtaObject
public List<RelatedTopic> getRelatedTopics(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
getRelatedTopics
in interface DeepaMehtaObject
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullpublic Object getProperty(String propUri)
DeepaMehtaObject
getProperty
in interface DeepaMehtaObject
public boolean hasProperty(String propUri)
DeepaMehtaObject
hasProperty
in interface DeepaMehtaObject
public Object getDatabaseVendorObject()
getDatabaseVendorObject
in interface DeepaMehtaObject
public org.codehaus.jettison.json.JSONObject toJSON()
toJSON
in interface JSONEnabled
Copyright © 2016. All Rights Reserved.