class AssociationModelImpl extends DMXObjectModelImpl implements AssociationModel
Association.| Modifier and Type | Field and Description |
|---|---|
private RoleModelImpl |
roleModel1 |
private RoleModelImpl |
roleModel2 |
childTopics, em, id, logger, mf, pl, typeUri, uri, value| Constructor and Description |
|---|
AssociationModelImpl(AssociationModelImpl assoc) |
AssociationModelImpl(DMXObjectModelImpl object,
RoleModelImpl roleModel1,
RoleModelImpl roleModel2) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
_delete() |
(package private) void |
checkReadAccess() |
(package private) void |
checkWriteAccess() |
(package private) String |
className() |
AssociationModel |
clone() |
private void |
createAssocDef() |
(package private) AssociationModelImpl |
createModelWithChildTopics(ChildTopicsModel childTopics) |
RoleModel |
createRoleModel(String roleTypeUri) |
private void |
duplicateCheck() |
private AssociationModelImpl |
fetchInstantiation() |
private TypeModelImpl |
fetchParentType() |
private TopicModelImpl |
filterTopic(RoleModelImpl role,
String topicTypeUri) |
(package private) List<AssociationModelImpl> |
getAssociations() |
(package private) Directive |
getDeleteDirective() |
long |
getOtherPlayerId(long id) |
(package private) DMXObjectModelImpl |
getPlayer(String roleTypeUri) |
(package private) DMXEvent |
getPostDeleteEvent() |
(package private) DMXEvent |
getPostUpdateEvent() |
(package private) DMXEvent |
getPreDeleteEvent() |
(package private) DMXEvent |
getPreUpdateEvent() |
(package private) RelatedTopicModelImpl |
getRelatedTopic(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri) |
(package private) List<RelatedTopicModelImpl> |
getRelatedTopics(List assocTypeUris,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri) |
(package private) List<RelatedTopicModelImpl> |
getRelatedTopics(String assocTypeUri,
String myRoleTypeUri,
String othersRoleTypeUri,
String othersTopicTypeUri) |
private RoleModelImpl |
getRole(RoleModel roleModel)
Returns this association's role which refers to the same object as the given role model.
|
RoleModelImpl |
getRoleModel(String roleTypeUri) |
RoleModelImpl |
getRoleModel1() |
RoleModelImpl |
getRoleModel2() |
(package private) TopicModelImpl |
getTopicByType(String topicTypeUri) |
(package private) AssociationTypeModelImpl |
getType() |
(package private) Directive |
getUpdateDirective() |
boolean |
hasSameRoleTypeUris() |
(package private) void |
indexSimpleValue(IndexMode indexMode)
Indexes the simple value of the given object model according to the given index mode.
|
(package private) AssociationImpl |
instantiate() |
private boolean |
isAssocDef(AssociationModel assoc) |
boolean |
matches(String roleTypeUri1,
long playerId1,
String roleTypeUri2,
long playerId2)
Checks if the given players match this association.
|
(package private) void |
postUpdate(DMXObjectModel updateModel,
DMXObjectModel oldObject) |
(package private) void |
preCreate() |
(package private) void |
preDelete() |
private void |
reassignInstantiation() |
private void |
removeAssocDef() |
(package private) void |
removeProperty(String propUri) |
void |
setRoleModel1(RoleModel roleModel1) |
void |
setRoleModel2(RoleModel roleModel2) |
(package private) void |
storeProperty(String propUri,
Object propValue,
boolean addToIndex) |
(package private) void |
storeSimpleValue()
Stores and indexes the simple value of this object model.
|
(package private) void |
storeTypeUri() |
(package private) void |
storeUri() |
org.codehaus.jettison.json.JSONObject |
toJSON() |
private void |
updateAssocDef(AssociationModel oldAssoc) |
private void |
updateRole(RoleModel updateModel,
int nr) |
private void |
updateRoles(AssociationModel updateModel) |
(package private) void |
updateRoleTypeUri(RoleModelImpl role,
String roleTypeUri) |
_updateSimpleValue, delete, equals, getChildTopicsModel, getId, getIndexValue, getSimpleValue, getTypeUri, getUri, hashCode, isSimple, loadChildTopics, loadChildTopics, loadChildTopics, objectInfo, postCreate, postDelete, preUpdate, set, setChildTopicsModel, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, toString, update, updateChildTopics, updateChildTopics, updateSimpleValue, updateTypeUri, updateUri, uriChangefinalize, getClass, notify, notifyAll, wait, wait, waitgetChildTopicsModel, getId, getSimpleValue, getTypeUri, getUri, set, setChildTopicsModel, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUriprivate RoleModelImpl roleModel1
private RoleModelImpl roleModel2
AssociationModelImpl(DMXObjectModelImpl object, RoleModelImpl roleModel1, RoleModelImpl roleModel2)
AssociationModelImpl(AssociationModelImpl assoc)
public RoleModelImpl getRoleModel1()
getRoleModel1 in interface AssociationModelpublic RoleModelImpl getRoleModel2()
getRoleModel2 in interface AssociationModelpublic void setRoleModel1(RoleModel roleModel1)
setRoleModel1 in interface AssociationModelpublic void setRoleModel2(RoleModel roleModel2)
setRoleModel2 in interface AssociationModelpublic RoleModelImpl getRoleModel(String roleTypeUri)
getRoleModel in interface AssociationModelpublic boolean hasSameRoleTypeUris()
hasSameRoleTypeUris in interface AssociationModelpublic boolean matches(String roleTypeUri1, long playerId1, String roleTypeUri2, long playerId2)
AssociationModelmatches in interface AssociationModelpublic long getOtherPlayerId(long id)
getOtherPlayerId in interface AssociationModelpublic RoleModel createRoleModel(String roleTypeUri)
createRoleModel in interface DMXObjectModelcreateRoleModel in class DMXObjectModelImplpublic org.codehaus.jettison.json.JSONObject toJSON()
toJSON in interface JSONEnabledtoJSON in class DMXObjectModelImplpublic AssociationModel clone()
clone in interface AssociationModelclone in interface DMXObjectModelclone in class DMXObjectModelImplString className()
className in class DMXObjectModelImplAssociationImpl instantiate()
instantiate in class DMXObjectModelImplAssociationModelImpl createModelWithChildTopics(ChildTopicsModel childTopics)
createModelWithChildTopics in class DMXObjectModelImplfinal AssociationTypeModelImpl getType()
getType in class DMXObjectModelImplfinal List<AssociationModelImpl> getAssociations()
getAssociations in class DMXObjectModelImplfinal RelatedTopicModelImpl getRelatedTopic(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
getRelatedTopic in class DMXObjectModelImplfinal List<RelatedTopicModelImpl> getRelatedTopics(String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
getRelatedTopics in class DMXObjectModelImplfinal List<RelatedTopicModelImpl> getRelatedTopics(List assocTypeUris, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
getRelatedTopics in class DMXObjectModelImplfinal void storeUri()
storeUri in class DMXObjectModelImplfinal void storeTypeUri()
storeTypeUri in class DMXObjectModelImplfinal void storeSimpleValue()
DMXObjectModelImplstoreSimpleValue in class DMXObjectModelImplfinal void indexSimpleValue(IndexMode indexMode)
DMXObjectModelImplCalled to index existing topics/associations once an index mode has been added to a type definition.
indexSimpleValue in class DMXObjectModelImplfinal void storeProperty(String propUri, Object propValue, boolean addToIndex)
storeProperty in class DMXObjectModelImplfinal void removeProperty(String propUri)
removeProperty in class DMXObjectModelImplfinal void _delete()
_delete in class DMXObjectModelImplfinal void checkReadAccess()
checkReadAccess in class DMXObjectModelImplfinal void checkWriteAccess()
checkWriteAccess in class DMXObjectModelImplfinal DMXEvent getPreUpdateEvent()
getPreUpdateEvent in class DMXObjectModelImplfinal DMXEvent getPostUpdateEvent()
getPostUpdateEvent in class DMXObjectModelImplfinal DMXEvent getPreDeleteEvent()
getPreDeleteEvent in class DMXObjectModelImplfinal DMXEvent getPostDeleteEvent()
getPostDeleteEvent in class DMXObjectModelImplfinal Directive getUpdateDirective()
getUpdateDirective in class DMXObjectModelImplfinal Directive getDeleteDirective()
getDeleteDirective in class DMXObjectModelImplvoid preCreate()
preCreate in class DMXObjectModelImplvoid postUpdate(DMXObjectModel updateModel, DMXObjectModel oldObject)
postUpdate in class DMXObjectModelImplvoid preDelete()
preDelete in class DMXObjectModelImplDMXObjectModelImpl getPlayer(String roleTypeUri)
If there are 2 such players an exception is thrown.
TopicModelImpl getTopicByType(String topicTypeUri)
void updateRoleTypeUri(RoleModelImpl role, String roleTypeUri)
private void duplicateCheck()
private void updateRoles(AssociationModel updateModel)
updateModel - The data to update.
If role 1 is null it is not updated.
If role 2 is null it is not updated.private void updateRole(RoleModel updateModel, int nr)
nr - used only for loggingprivate RoleModelImpl getRole(RoleModel roleModel)
If the object refered by the given role model is not a player in this association an exception is thrown.
private TopicModelImpl filterTopic(RoleModelImpl role, String topicTypeUri)
private void reassignInstantiation()
private AssociationModelImpl fetchInstantiation()
private void createAssocDef()
private void updateAssocDef(AssociationModel oldAssoc)
private void removeAssocDef()
private boolean isAssocDef(AssociationModel assoc)
private TypeModelImpl fetchParentType()
Copyright © 2018. All Rights Reserved.