abstract class DMXObjectImpl extends Object implements DMXObject
Modifier and Type | Field and Description |
---|---|
(package private) ModelFactoryImpl |
mf |
(package private) DMXObjectModelImpl |
model |
(package private) PersistenceLayer |
pl |
Constructor and Description |
---|
DMXObjectImpl(DMXObjectModelImpl model,
PersistenceLayer pl) |
Modifier and Type | Method and Description |
---|---|
(package private) String |
className() |
boolean |
equals(Object o) |
ChildTopicsImpl |
getChildTopics() |
Object |
getDatabaseVendorObject() |
long |
getId() |
DMXObjectModelImpl |
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() |
DMXType |
getType()
Returns the type of this object.
|
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.
|
DMXObject |
loadChildTopics() |
DMXObject |
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) |
org.codehaus.jettison.json.JSONObject |
toJSON() |
String |
toString() |
void |
updateChildTopics(ChildTopicsModel updateModel,
AssociationDefinition assocDef) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
delete, getAssociation, getAssociations, getRelatedAssociation, getRelatedAssociations, getRelatedTopics
DMXObjectModelImpl model
DMXObjectImpl(DMXObjectModelImpl model, PersistenceLayer pl)
public final long getId()
getId
in interface DMXObject
getId
in interface Identifiable
public final String getTypeUri()
getTypeUri
in interface DMXObject
public final void setTypeUri(String typeUri)
setTypeUri
in interface DMXObject
public final SimpleValue getSimpleValue()
getSimpleValue
in interface DMXObject
public final void setSimpleValue(String value)
setSimpleValue
in interface DMXObject
public final void setSimpleValue(int value)
setSimpleValue
in interface DMXObject
public final void setSimpleValue(long value)
setSimpleValue
in interface DMXObject
public final void setSimpleValue(boolean value)
setSimpleValue
in interface DMXObject
public final void setSimpleValue(SimpleValue value)
setSimpleValue
in interface DMXObject
public final ChildTopicsImpl getChildTopics()
getChildTopics
in interface DMXObject
public final void setChildTopics(ChildTopicsModel childTopics)
setChildTopics
in interface DMXObject
public DMXObject loadChildTopics()
loadChildTopics
in interface DMXObject
public DMXObject loadChildTopics(String assocDefUri)
loadChildTopics
in interface DMXObject
public final DMXType getType()
DMXObject
No access control is performed as Implicit READ permission applies: if a user has READ access to an object she has READ access to its type as well.
Note: if the user would have no READ access to this object the DMX Core would not instantiate it in the
first place, but throw an AccessControlException
.
public DMXObjectModelImpl getModel()
public final void updateChildTopics(ChildTopicsModel updateModel, AssociationDefinition assocDef)
updateChildTopics
in interface DMXObject
public final RelatedTopic getRelatedTopic(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
DMXObject
null
if no such topic extists.getRelatedTopic
in interface DMXObject
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullpublic final List<RelatedTopic> getRelatedTopics(String assocTypeUri)
getRelatedTopics
in interface DMXObject
public final List<RelatedTopic> getRelatedTopics(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
getRelatedTopics
in interface DMXObject
assocTypeUri
- may be nullmyRoleTypeUri
- may be nullothersRoleTypeUri
- may be nullothersTopicTypeUri
- may be nullpublic final Object getProperty(String propUri)
DMXObject
getProperty
in interface DMXObject
public final boolean hasProperty(String propUri)
DMXObject
hasProperty
in interface DMXObject
public final void setProperty(String propUri, Object propValue, boolean addToIndex)
setProperty
in interface DMXObject
public final void removeProperty(String propUri)
DMXObject
removeProperty
in interface DMXObject
public final Object getDatabaseVendorObject()
getDatabaseVendorObject
in interface DMXObject
public final org.codehaus.jettison.json.JSONObject toJSON()
toJSON
in interface JSONEnabled
Copyright © 2018. All Rights Reserved.