public abstract class UpgradeBase extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
UpgradeBase.RoleFieldDefinition |
Modifier and Type | Field and Description |
---|---|
protected static LocatorIF |
base_on |
protected static LocatorIF |
base_tech |
protected static LocatorIF |
base_xsd |
protected static LocatorIF |
base_xtm |
protected DeclarationContextIF |
dc |
protected static LocatorIF |
psibase |
protected QueryProcessorIF |
qp |
protected static LocatorIF |
teqbase |
protected TopicMapIF |
topicmap |
protected TopicMap |
topicMap |
protected static LocatorIF |
xsdbase |
protected static LocatorIF |
xtmbase |
Modifier and Type | Method and Description |
---|---|
protected static OccurrenceIF |
addOccurrence(TopicMap topicMap,
LocatorIF base_on,
TopicIF topic,
String otype,
String datatype,
String value) |
protected static void |
assignEditMode(TopicMapIF topicmap,
LocatorIF base_on,
TopicIF rfield,
String mode) |
protected static void |
assignEmbedded(TopicMapIF topicmap,
LocatorIF base_on,
TopicIF rfield,
String cview) |
protected static void |
assignField(TopicMapIF topicmap,
LocatorIF base_on,
TopicIF oField,
String ptypeId) |
protected static void |
assignField(TopicMapIF topicmap,
LocatorIF base_on,
TopicIF oField,
TopicIF ptype) |
protected static void |
assignFieldsView(TopicMapIF topicmap,
LocatorIF base_on,
TopicIF fieldDefinition,
String view) |
protected static void |
assignValueView(TopicMapIF topicmap,
LocatorIF base_on,
TopicIF rfield,
String pview,
String cview) |
protected static void |
assignViewMode(TopicMapIF topicmap,
LocatorIF base_on,
TopicIF rfield,
String view,
String mode) |
protected static TopicIF |
defineIdentityField(TopicMapIF topicmap,
LocatorIF base_on,
String itypeId,
String cardinality) |
protected static TopicIF |
defineIdentityField(TopicMapIF topicmap,
LocatorIF base_on,
TopicIF itype,
TopicIF cardinality) |
protected static TopicIF |
defineOccurrenceField(TopicMap topicMap,
LocatorIF base_on,
String otypeId,
String datatype,
String cardinality) |
protected static TopicIF |
defineOccurrenceField(TopicMap topicMap,
LocatorIF base_on,
TopicIF otype,
TopicIF datatype,
TopicIF cardinality) |
protected static UpgradeBase.RoleFieldDefinition |
defineRoleFields(TopicMapIF topicmap,
LocatorIF base_on,
String atypeId,
String afieldName,
String[] rtypeIds,
String[] rfieldNames,
String[][] ptypeIds) |
protected static UpgradeBase.RoleFieldDefinition |
defineRoleFields(TopicMapIF topicmap,
LocatorIF base_on,
TopicIF atype,
String afieldName,
TopicIF[] rtypes,
String[] rfieldNames,
TopicIF[][] pptypes) |
protected int |
doUpdate(String update)
Runs a tolog update statement to modify the topic map.
|
protected static String |
getSymbolicId(TopicIF rf) |
protected static TopicIF |
getTopic(TopicMapIF topicmap,
LocatorIF base_on,
String ref) |
protected abstract void |
importLTM(StringBuilder sb) |
protected static void |
makePublicSystemTopic(TopicMapIF topicmap,
LocatorIF base_on,
LocatorIF base_t,
String topic) |
protected static void |
removeAssociations(String atype,
String[] rtypes,
QueryProcessorIF qp,
DeclarationContextIF dc) |
protected static void |
removeObjects(TopicMapIF topicMap,
DeclarationContextIF dc,
String removalQuery) |
protected static void |
removeTopic(TopicMapIF topicmap,
LocatorIF base_on,
String ref) |
protected static void |
removeTopicIfExist(TopicMapIF topicmap,
LocatorIF base_on,
String ref) |
protected static void |
renameSubjectIdentifier(TopicMapIF topicmap,
LocatorIF base_on,
String oldId,
String newId) |
protected static void |
renameTopics(TopicMapIF topicmap,
String oldName,
String newName) |
protected abstract void |
transform() |
protected static void |
translateAssociations(String atype1,
String[] rtypes1,
String atype2,
String[] rtypes2,
TopicMapIF tm,
LocatorIF base_on,
QueryProcessorIF qp,
DeclarationContextIF dc) |
void |
upgrade() |
protected static final LocatorIF psibase
protected static final LocatorIF xsdbase
protected static final LocatorIF xtmbase
protected static final LocatorIF teqbase
protected static final LocatorIF base_on
protected static final LocatorIF base_tech
protected static final LocatorIF base_xtm
protected static final LocatorIF base_xsd
protected TopicMap topicMap
protected TopicMapIF topicmap
protected DeclarationContextIF dc
protected QueryProcessorIF qp
public void upgrade()
protected abstract void importLTM(StringBuilder sb)
protected abstract void transform() throws InvalidQueryException
InvalidQueryException
protected int doUpdate(String update) throws InvalidQueryException
InvalidQueryException
protected static TopicIF getTopic(TopicMapIF topicmap, LocatorIF base_on, String ref)
protected static void translateAssociations(String atype1, String[] rtypes1, String atype2, String[] rtypes2, TopicMapIF tm, LocatorIF base_on, QueryProcessorIF qp, DeclarationContextIF dc) throws InvalidQueryException
InvalidQueryException
protected static void removeAssociations(String atype, String[] rtypes, QueryProcessorIF qp, DeclarationContextIF dc) throws InvalidQueryException
InvalidQueryException
protected static void removeObjects(TopicMapIF topicMap, DeclarationContextIF dc, String removalQuery) throws InvalidQueryException
InvalidQueryException
protected static void assignField(TopicMapIF topicmap, LocatorIF base_on, TopicIF oField, String ptypeId)
protected static void assignField(TopicMapIF topicmap, LocatorIF base_on, TopicIF oField, TopicIF ptype)
protected static UpgradeBase.RoleFieldDefinition defineRoleFields(TopicMapIF topicmap, LocatorIF base_on, String atypeId, String afieldName, String[] rtypeIds, String[] rfieldNames, String[][] ptypeIds)
protected static UpgradeBase.RoleFieldDefinition defineRoleFields(TopicMapIF topicmap, LocatorIF base_on, TopicIF atype, String afieldName, TopicIF[] rtypes, String[] rfieldNames, TopicIF[][] pptypes)
protected static void removeTopicIfExist(TopicMapIF topicmap, LocatorIF base_on, String ref)
protected static void removeTopic(TopicMapIF topicmap, LocatorIF base_on, String ref)
protected static void makePublicSystemTopic(TopicMapIF topicmap, LocatorIF base_on, LocatorIF base_t, String topic)
protected static void renameSubjectIdentifier(TopicMapIF topicmap, LocatorIF base_on, String oldId, String newId)
protected static void renameTopics(TopicMapIF topicmap, String oldName, String newName)
protected static void assignViewMode(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String view, String mode)
protected static void assignEmbedded(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String cview)
protected static void assignValueView(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String pview, String cview)
protected static void assignEditMode(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String mode)
protected static void assignFieldsView(TopicMapIF topicmap, LocatorIF base_on, TopicIF fieldDefinition, String view)
protected static TopicIF defineOccurrenceField(TopicMap topicMap, LocatorIF base_on, String otypeId, String datatype, String cardinality)
protected static TopicIF defineOccurrenceField(TopicMap topicMap, LocatorIF base_on, TopicIF otype, TopicIF datatype, TopicIF cardinality)
protected static OccurrenceIF addOccurrence(TopicMap topicMap, LocatorIF base_on, TopicIF topic, String otype, String datatype, String value)
protected static TopicIF defineIdentityField(TopicMapIF topicmap, LocatorIF base_on, String itypeId, String cardinality)
protected static TopicIF defineIdentityField(TopicMapIF topicmap, LocatorIF base_on, TopicIF itype, TopicIF cardinality)