public interface Type extends Topic
loadChildTopics, loadChildTopics, update
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
toJSON
String getDataTypeUri()
void setDataTypeUri(String dataTypeUri)
List<IndexMode> getIndexModes()
void addIndexMode(IndexMode indexMode)
Collection<AssociationDefinition> getAssocDefs()
AssociationDefinition getAssocDef(String childTypeUri)
boolean hasAssocDef(String childTypeUri)
Type addAssocDef(AssociationDefinitionModel assocDef)
Type addAssocDefBefore(AssociationDefinitionModel assocDef, String beforeChildTypeUri)
beforeChildTypeUri
- the assoc def before the assoc def is inserted into the sequence.
If null
the assoc def is appended at the end.void updateAssocDef(AssociationDefinitionModel assocDef)
AssociationDefinition.update(de.deepamehta.core.model.AssociationDefinitionModel)
.
This method is here to support a special case: the user retypes an association which results in a changed type definition. In this case the DB is already up-to-date and only the type's memory representation must be updated. So, here the DB update is the *cause* for a necessary memory-update. Normally the situation is vice-versa: the DB update is the necessary *effect* of a memory-update.
### TODO: get rid of this peculiar situation and remove this method. This might be achieved by using
the PRE_UPDATE_ASSOCIATION hook instead the POST_UPDATE_ASSOCIATION hook in the Type Editor module.
On pre-update we would perform a regular AssociationDefinition.update(de.deepamehta.core.model.AssociationDefinitionModel)
and suppress further
processing by returning false.
assocDef
- the new association definition.
Note: in contrast to the other "update" methods this one does not support partial updates.
That is all association definition fields must be initialized.Type removeAssocDef(String childTypeUri)
List<String> getLabelConfig()
void setLabelConfig(List<String> labelConfig)
ViewConfiguration getViewConfig()
Object getViewConfig(String typeUri, String settingUri)
TypeModel getModel()
getModel
in interface DeepaMehtaObject
getModel
in interface Topic
Copyright © 2015. All Rights Reserved.