ontopoly.conversion
Class UpgradeBase

java.lang.Object
  extended by ontopoly.conversion.UpgradeBase
Direct Known Subclasses:
Upgrade_1_1, Upgrade_1_2, Upgrade_1_3, Upgrade_1_4, Upgrade_1_9, Upgrade_2_0, Upgrade_2_1

public abstract class UpgradeBase
extends java.lang.Object


Nested Class Summary
protected static class UpgradeBase.RoleFieldDefinition
           
 
Field Summary
protected  DeclarationContextIF dc
           
protected  QueryProcessorIF qp
           
protected  TopicMapIF topicmap
           
protected  TopicMap topicMap
           
 
Method Summary
protected static OccurrenceIF addOccurrence(TopicMap topicMap, LocatorIF base_on, TopicIF topic, java.lang.String otype, java.lang.String datatype, java.lang.String value)
           
protected static void assignEditMode(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, java.lang.String mode)
           
protected static void assignEmbedded(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, java.lang.String cview)
           
protected static void assignField(TopicMapIF topicmap, LocatorIF base_on, TopicIF oField, java.lang.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, java.lang.String view)
           
protected static void assignValueView(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, java.lang.String pview, java.lang.String cview)
           
protected static void assignViewMode(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, java.lang.String view, java.lang.String mode)
           
protected static TopicIF defineIdentityField(TopicMapIF topicmap, LocatorIF base_on, java.lang.String itypeId, java.lang.String cardinality)
           
protected static TopicIF defineIdentityField(TopicMapIF topicmap, LocatorIF base_on, TopicIF itype, TopicIF cardinality)
           
protected static TopicIF defineOccurrenceField(TopicMap topicMap, LocatorIF base_on, java.lang.String otypeId, java.lang.String datatype, java.lang.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, java.lang.String atypeId, java.lang.String afieldName, java.lang.String[] rtypeIds, java.lang.String[] rfieldNames, java.lang.String[][] ptypeIds)
           
protected static UpgradeBase.RoleFieldDefinition defineRoleFields(TopicMapIF topicmap, LocatorIF base_on, TopicIF atype, java.lang.String afieldName, TopicIF[] rtypes, java.lang.String[] rfieldNames, TopicIF[][] pptypes)
           
protected  int doUpdate(java.lang.String update)
          Runs a tolog update statement to modify the topic map.
protected static java.lang.String getSymbolicId(TopicIF rf)
           
protected static TopicIF getTopic(TopicMapIF topicmap, LocatorIF base_on, java.lang.String ref)
           
protected abstract  void importLTM(java.lang.StringBuffer sb)
           
protected static void makePublicSystemTopic(TopicMapIF topicmap, LocatorIF base_on, LocatorIF base_t, java.lang.String topic)
           
protected static void removeAssociations(java.lang.String atype, java.lang.String[] rtypes, QueryProcessorIF qp, DeclarationContextIF dc)
           
protected static void removeObjects(TopicMapIF topicMap, DeclarationContextIF dc, java.lang.String removalQuery)
           
protected static void removeTopic(TopicMapIF topicmap, LocatorIF base_on, java.lang.String ref)
           
protected static void removeTopicIfExist(TopicMapIF topicmap, LocatorIF base_on, java.lang.String ref)
           
protected static void renameSubjectIdentifier(TopicMapIF topicmap, LocatorIF base_on, java.lang.String oldId, java.lang.String newId)
           
protected static void renameTopics(TopicMapIF topicmap, java.lang.String oldName, java.lang.String newName)
           
protected abstract  void transform()
           
protected static void translateAssociations(java.lang.String atype1, java.lang.String[] rtypes1, java.lang.String atype2, java.lang.String[] rtypes2, TopicMapIF tm, LocatorIF base_on, QueryProcessorIF qp, DeclarationContextIF dc)
           
 void upgrade()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

topicMap

protected TopicMap topicMap

topicmap

protected TopicMapIF topicmap

dc

protected DeclarationContextIF dc

qp

protected QueryProcessorIF qp
Method Detail

upgrade

public void upgrade()

importLTM

protected abstract void importLTM(java.lang.StringBuffer sb)

transform

protected abstract void transform()
                           throws InvalidQueryException
Throws:
InvalidQueryException

doUpdate

protected int doUpdate(java.lang.String update)
                throws InvalidQueryException
Runs a tolog update statement to modify the topic map.

Throws:
InvalidQueryException

getTopic

protected static TopicIF getTopic(TopicMapIF topicmap,
                                  LocatorIF base_on,
                                  java.lang.String ref)

translateAssociations

protected static void translateAssociations(java.lang.String atype1,
                                            java.lang.String[] rtypes1,
                                            java.lang.String atype2,
                                            java.lang.String[] rtypes2,
                                            TopicMapIF tm,
                                            LocatorIF base_on,
                                            QueryProcessorIF qp,
                                            DeclarationContextIF dc)
                                     throws InvalidQueryException
Throws:
InvalidQueryException

removeAssociations

protected static void removeAssociations(java.lang.String atype,
                                         java.lang.String[] rtypes,
                                         QueryProcessorIF qp,
                                         DeclarationContextIF dc)
                                  throws InvalidQueryException
Throws:
InvalidQueryException

removeObjects

protected static void removeObjects(TopicMapIF topicMap,
                                    DeclarationContextIF dc,
                                    java.lang.String removalQuery)
                             throws InvalidQueryException
Throws:
InvalidQueryException

assignField

protected static void assignField(TopicMapIF topicmap,
                                  LocatorIF base_on,
                                  TopicIF oField,
                                  java.lang.String ptypeId)

assignField

protected static void assignField(TopicMapIF topicmap,
                                  LocatorIF base_on,
                                  TopicIF oField,
                                  TopicIF ptype)

defineRoleFields

protected static UpgradeBase.RoleFieldDefinition defineRoleFields(TopicMapIF topicmap,
                                                                  LocatorIF base_on,
                                                                  java.lang.String atypeId,
                                                                  java.lang.String afieldName,
                                                                  java.lang.String[] rtypeIds,
                                                                  java.lang.String[] rfieldNames,
                                                                  java.lang.String[][] ptypeIds)

defineRoleFields

protected static UpgradeBase.RoleFieldDefinition defineRoleFields(TopicMapIF topicmap,
                                                                  LocatorIF base_on,
                                                                  TopicIF atype,
                                                                  java.lang.String afieldName,
                                                                  TopicIF[] rtypes,
                                                                  java.lang.String[] rfieldNames,
                                                                  TopicIF[][] pptypes)

removeTopicIfExist

protected static void removeTopicIfExist(TopicMapIF topicmap,
                                         LocatorIF base_on,
                                         java.lang.String ref)

removeTopic

protected static void removeTopic(TopicMapIF topicmap,
                                  LocatorIF base_on,
                                  java.lang.String ref)

getSymbolicId

protected static java.lang.String getSymbolicId(TopicIF rf)

makePublicSystemTopic

protected static void makePublicSystemTopic(TopicMapIF topicmap,
                                            LocatorIF base_on,
                                            LocatorIF base_t,
                                            java.lang.String topic)

renameSubjectIdentifier

protected static void renameSubjectIdentifier(TopicMapIF topicmap,
                                              LocatorIF base_on,
                                              java.lang.String oldId,
                                              java.lang.String newId)

renameTopics

protected static void renameTopics(TopicMapIF topicmap,
                                   java.lang.String oldName,
                                   java.lang.String newName)

assignViewMode

protected static void assignViewMode(TopicMapIF topicmap,
                                     LocatorIF base_on,
                                     TopicIF rfield,
                                     java.lang.String view,
                                     java.lang.String mode)

assignEmbedded

protected static void assignEmbedded(TopicMapIF topicmap,
                                     LocatorIF base_on,
                                     TopicIF rfield,
                                     java.lang.String cview)

assignValueView

protected static void assignValueView(TopicMapIF topicmap,
                                      LocatorIF base_on,
                                      TopicIF rfield,
                                      java.lang.String pview,
                                      java.lang.String cview)

assignEditMode

protected static void assignEditMode(TopicMapIF topicmap,
                                     LocatorIF base_on,
                                     TopicIF rfield,
                                     java.lang.String mode)

assignFieldsView

protected static void assignFieldsView(TopicMapIF topicmap,
                                       LocatorIF base_on,
                                       TopicIF fieldDefinition,
                                       java.lang.String view)

defineOccurrenceField

protected static TopicIF defineOccurrenceField(TopicMap topicMap,
                                               LocatorIF base_on,
                                               java.lang.String otypeId,
                                               java.lang.String datatype,
                                               java.lang.String cardinality)

defineOccurrenceField

protected static TopicIF defineOccurrenceField(TopicMap topicMap,
                                               LocatorIF base_on,
                                               TopicIF otype,
                                               TopicIF datatype,
                                               TopicIF cardinality)

addOccurrence

protected static OccurrenceIF addOccurrence(TopicMap topicMap,
                                            LocatorIF base_on,
                                            TopicIF topic,
                                            java.lang.String otype,
                                            java.lang.String datatype,
                                            java.lang.String value)

defineIdentityField

protected static TopicIF defineIdentityField(TopicMapIF topicmap,
                                             LocatorIF base_on,
                                             java.lang.String itypeId,
                                             java.lang.String cardinality)

defineIdentityField

protected static TopicIF defineIdentityField(TopicMapIF topicmap,
                                             LocatorIF base_on,
                                             TopicIF itype,
                                             TopicIF cardinality)


Copyright © 2000-2012 Ontopia.