de.deepamehta.core.impl
Class AttachedAssociationDefinition

Show UML class diagram
java.lang.Object
  extended by de.deepamehta.core.impl.AttachedDeepaMehtaObject
      extended by de.deepamehta.core.impl.AttachedAssociation
          extended by de.deepamehta.core.impl.AttachedAssociationDefinition
All Implemented Interfaces:
Association, AssociationDefinition, DeepaMehtaObject, Identifiable, JSONEnabled

 class AttachedAssociationDefinition
extends AttachedAssociation
implements AssociationDefinition

An association definition that is attached to the DeepaMehtaService.


Field Summary
private  Logger logger
           
private  AttachedViewConfiguration viewConfig
           
 
Fields inherited from class de.deepamehta.core.impl.AttachedDeepaMehtaObject
dms
 
Constructor Summary
AttachedAssociationDefinition(AssociationDefinitionModel model, EmbeddedService dms)
           
 
Method Summary
 String getChildCardinalityUri()
           
 String getChildTypeUri()
           
 String getInstanceLevelAssocTypeUri()
           
 AssociationDefinitionModel getModel()
           
 String getParentCardinalityUri()
           
 String getParentTypeUri()
           
 ViewConfiguration getViewConfig()
           
private  void initViewConfig()
           
 void setChildCardinalityUri(String childCardinalityUri)
           
 void setParentCardinalityUri(String parentCardinalityUri)
           
 void update(AssociationDefinitionModel newModel)
           
private  void updateAssocTypeUri(AssociationDefinitionModel newModel)
           
private  void updateChildCardinality(String newChildCardinalityUri)
           
private  void updateParentCardinality(String newParentCardinalityUri)
           
 
Methods inherited from class de.deepamehta.core.impl.AttachedAssociation
addUpdateDirective, className, delete, fetchRelatedTopic, fetchRelatedTopics, getAssociation, getAssociations, getAssociationType, getPlayer1, getPlayer2, getProperty, getRelatedAssociation, getRelatedAssociations, getRelatedTopics, getRole, getRole1, getRole2, getTopic, getTopics, hasProperty, isPlayer, loadChildTopics, loadChildTopics, removeProperty, setProperty, storeTypeUri, storeUri, update
 
Methods inherited from class de.deepamehta.core.impl.AttachedDeepaMehtaObject
equals, getChildTopics, getDatabaseVendorObject, getId, getRelatedTopic, getRelatedTopics, getRelatedTopics, getSimpleValue, getType, getTypeUri, getUri, hashCode, setChildTopics, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, toJSON, toString, update, updateChildTopic, updateChildTopics
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.deepamehta.core.Association
getPlayer1, getPlayer2, getRole, getRole1, getRole2, getTopic, getTopics, isPlayer, loadChildTopics, loadChildTopics, update
 
Methods inherited from interface de.deepamehta.core.DeepaMehtaObject
delete, getAssociation, getAssociations, getChildTopics, getDatabaseVendorObject, getId, getProperty, getRelatedAssociation, getRelatedAssociations, getRelatedTopic, getRelatedTopics, getRelatedTopics, getRelatedTopics, getSimpleValue, getTypeUri, getUri, hasProperty, removeProperty, setChildTopics, setProperty, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, update, updateChildTopic, updateChildTopics
 
Methods inherited from interface de.deepamehta.core.JSONEnabled
toJSON
 

Field Detail

viewConfig

private AttachedViewConfiguration viewConfig

logger

private Logger logger
Constructor Detail

AttachedAssociationDefinition

AttachedAssociationDefinition(AssociationDefinitionModel model,
                              EmbeddedService dms)
Method Detail

getInstanceLevelAssocTypeUri

public String getInstanceLevelAssocTypeUri()
Specified by:
getInstanceLevelAssocTypeUri in interface AssociationDefinition

getParentTypeUri

public String getParentTypeUri()
Specified by:
getParentTypeUri in interface AssociationDefinition

getChildTypeUri

public String getChildTypeUri()
Specified by:
getChildTypeUri in interface AssociationDefinition

getParentCardinalityUri

public String getParentCardinalityUri()
Specified by:
getParentCardinalityUri in interface AssociationDefinition

getChildCardinalityUri

public String getChildCardinalityUri()
Specified by:
getChildCardinalityUri in interface AssociationDefinition

getViewConfig

public ViewConfiguration getViewConfig()
Specified by:
getViewConfig in interface AssociationDefinition

getModel

public AssociationDefinitionModel getModel()
Specified by:
getModel in interface Association
Specified by:
getModel in interface AssociationDefinition
Specified by:
getModel in interface DeepaMehtaObject
Overrides:
getModel in class AttachedAssociation

setParentCardinalityUri

public void setParentCardinalityUri(String parentCardinalityUri)
Specified by:
setParentCardinalityUri in interface AssociationDefinition

setChildCardinalityUri

public void setChildCardinalityUri(String childCardinalityUri)
Specified by:
setChildCardinalityUri in interface AssociationDefinition

update

public void update(AssociationDefinitionModel newModel)
Specified by:
update in interface AssociationDefinition

updateAssocTypeUri

private void updateAssocTypeUri(AssociationDefinitionModel newModel)

updateParentCardinality

private void updateParentCardinality(String newParentCardinalityUri)

updateChildCardinality

private void updateChildCardinality(String newChildCardinalityUri)

initViewConfig

private void initViewConfig()


Copyright © 2014. All Rights Reserved.