de.topicmapslab.majortom.database.jdbc.postgres.sql99
Class Sql99QueryProcessor

java.lang.Object
  extended by de.topicmapslab.majortom.database.jdbc.rdbms.RDBMSQueryProcessor
      extended by de.topicmapslab.majortom.database.jdbc.postgres.sql99.Sql99QueryProcessor
All Implemented Interfaces:
IQueryProcessor
Direct Known Subclasses:
PostGreSqlQueryProcessor

public class Sql99QueryProcessor
extends RDBMSQueryProcessor

Author:
Sven Krosse

Field Summary
 
Fields inherited from class de.topicmapslab.majortom.database.jdbc.rdbms.RDBMSQueryProcessor
GENERATED_KEY_COLUMN_NAME
 
Constructor Summary
Sql99QueryProcessor(SQL99Session session, java.sql.Connection connection)
          constructor
 
Method Summary
private  de.topicmapslab.majortom.model.core.IConstruct asReadOnlyConstruct(de.topicmapslab.majortom.model.core.IConstruct c)
          Method converts the given construct to a read-only construct.
 void commit()
          
protected  Sql99QueryBuilder createQueryBuilder()
          Creates the query builder
private  void detectDuplicateAssociations(de.topicmapslab.majortom.model.core.ITopic topic)
           
private  void detectDuplicateNames(de.topicmapslab.majortom.model.core.ITopic topic)
           
private  void detectDuplicateOccurrences(de.topicmapslab.majortom.model.core.ITopic topic)
           
private  void detectDuplicateVariants(de.topicmapslab.majortom.model.core.IName name)
           
 void doClearTopicMap(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
          
 de.topicmapslab.majortom.model.core.IAssociation doCreateAssociation(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.ITopic type)
          
 de.topicmapslab.majortom.model.core.IAssociation doCreateAssociation(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.ITopic type, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          
 void doCreateChangeSet(de.topicmapslab.majortom.model.revision.IRevision revision, de.topicmapslab.majortom.model.event.TopicMapEventType type, de.topicmapslab.majortom.model.core.IConstruct notifier, java.lang.Object newValue, java.lang.Object oldValue)
          
 de.topicmapslab.majortom.model.core.ILocator doCreateLocator(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String reference)
          
 void doCreateMetadata(de.topicmapslab.majortom.model.revision.IRevision revision, java.lang.String key, java.lang.String value)
          
 de.topicmapslab.majortom.model.core.IName doCreateName(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic type, java.lang.String value)
          
 de.topicmapslab.majortom.model.core.IName doCreateName(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic type, java.lang.String value, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          
 de.topicmapslab.majortom.model.core.IName doCreateName(de.topicmapslab.majortom.model.core.ITopic topic, java.lang.String value)
          
 de.topicmapslab.majortom.model.core.IName doCreateName(de.topicmapslab.majortom.model.core.ITopic topic, java.lang.String value, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          
 de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.ILocator value)
          
 de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.ILocator value, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          
 de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic type, java.lang.String value)
          
 de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic type, java.lang.String value, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          
 de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic type, java.lang.String value, de.topicmapslab.majortom.model.core.ILocator datatype)
          
 de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic type, java.lang.String value, de.topicmapslab.majortom.model.core.ILocator datatype, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          
 de.topicmapslab.majortom.model.revision.IRevision doCreateRevision(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.event.TopicMapEventType type)
          
 de.topicmapslab.majortom.model.core.IAssociationRole doCreateRole(de.topicmapslab.majortom.model.core.IAssociation association, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.ITopic player)
          
 de.topicmapslab.majortom.model.core.IScope doCreateScope(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          
 void doCreateTag(java.lang.String tag, java.util.Calendar time)
          
 de.topicmapslab.majortom.model.core.ITopic doCreateTopicByItemIdentifier(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.ILocator itemIdentifier)
          
 de.topicmapslab.majortom.model.core.ITopic doCreateTopicBySubjectIdentifier(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.ILocator subjectIdentifier)
          
 de.topicmapslab.majortom.model.core.ITopic doCreateTopicBySubjectLocator(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.ILocator subjectLocator)
          
 java.lang.Long doCreateTopicMapIdentity(de.topicmapslab.majortom.model.core.ILocator baseLocator)
          
 de.topicmapslab.majortom.model.core.ITopic doCreateTopicWithoutIdentifier(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
          Internal method to create a new topic
 de.topicmapslab.majortom.model.core.IVariant doCreateVariant(de.topicmapslab.majortom.model.core.IName name, de.topicmapslab.majortom.model.core.ILocator value, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          
 de.topicmapslab.majortom.model.core.IVariant doCreateVariant(de.topicmapslab.majortom.model.core.IName name, java.lang.String value, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          
 de.topicmapslab.majortom.model.core.IVariant doCreateVariant(de.topicmapslab.majortom.model.core.IName name, java.lang.String value, de.topicmapslab.majortom.model.core.ILocator datatype, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
          
 void doMergeTopicMaps(org.tmapi.core.TopicMap context, org.tmapi.core.TopicMap other)
          
 void doMergeTopics(de.topicmapslab.majortom.model.core.ITopic context, de.topicmapslab.majortom.model.core.ITopic other)
          
 void doModifyItemIdentifier(de.topicmapslab.majortom.model.core.IConstruct c, de.topicmapslab.majortom.model.core.ILocator itemIdentifier)
          
 void doModifyPlayer(de.topicmapslab.majortom.model.core.IAssociationRole role, de.topicmapslab.majortom.model.core.ITopic player)
          
 void doModifyReifier(de.topicmapslab.majortom.model.core.IReifiable r, de.topicmapslab.majortom.model.core.ITopic reifier)
          
 void doModifyScope(de.topicmapslab.majortom.model.core.IScopable s, de.topicmapslab.majortom.model.core.ITopic theme)
          
 void doModifySubjectIdentifier(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ILocator subjectIdentifier)
          
 void doModifySubjectLocator(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ILocator subjectLocator)
          
 void doModifySupertype(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type)
          
 void doModifyTag(de.topicmapslab.majortom.model.core.ITopicMap tm, java.lang.String tag)
          
 void doModifyTag(de.topicmapslab.majortom.model.core.ITopicMap tm, java.lang.String tag, java.util.Calendar timestamp)
          
 void doModifyType(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type)
          
 void doModifyType(de.topicmapslab.majortom.model.core.ITypeable t, de.topicmapslab.majortom.model.core.ITopic type)
          
 void doModifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware t, java.lang.String value, de.topicmapslab.majortom.model.core.ILocator datatype)
          
 void doModifyValue(de.topicmapslab.majortom.model.core.IName n, java.lang.String value)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopic t, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopicMap tm, de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopicMap tm, de.topicmapslab.majortom.model.core.ITopic type)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopicMap tm, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.IScope scope)
          
 java.lang.String doReadBestLabel(de.topicmapslab.majortom.model.core.ITopic topic)
          Returns the best label for the current topic instance.
 java.lang.String doReadBestLabel(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic theme, boolean strict)
          Returns the best label for the current topic instance.
 de.topicmapslab.majortom.model.revision.Changeset doReadChangeset(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.revision.IRevision revision)
          
 de.topicmapslab.majortom.model.revision.Changeset doReadChangesetsByAssociationType(de.topicmapslab.majortom.model.core.ITopic type)
          
 de.topicmapslab.majortom.model.revision.Changeset doReadChangesetsByTopic(de.topicmapslab.majortom.model.core.ITopic topic)
          
 de.topicmapslab.majortom.model.event.TopicMapEventType doReadChangesetType(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.revision.IRevision revision)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doReadCharacteristics(de.topicmapslab.majortom.model.core.ITopic t)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doReadCharacteristics(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doReadCharacteristics(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doReadCharacteristics(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.IScope scope)
          
 de.topicmapslab.majortom.model.core.IConstruct doReadConstruct(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.ILocator itemIdentifier)
          
 de.topicmapslab.majortom.model.core.IConstruct doReadConstruct(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.Long id, boolean lookupHistory)
          
 de.topicmapslab.majortom.model.core.ILocator doReadDataType(de.topicmapslab.majortom.model.core.IDatatypeAware d)
          
 de.topicmapslab.majortom.model.revision.IRevision doReadFirstRevision(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
          
 de.topicmapslab.majortom.model.revision.IRevision doReadFutureRevision(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.revision.IRevision revision)
          
 java.util.Map<de.topicmapslab.majortom.model.store.TopicMapStoreParameterType,java.lang.Object> doReadHistory(de.topicmapslab.majortom.model.core.IConstruct c, de.topicmapslab.majortom.model.store.TopicMapStoreParameterType... arguments)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ILocator> doReadItemIdentifiers(de.topicmapslab.majortom.model.core.IConstruct c)
          
 java.util.Calendar doReadLastModification(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
          
 java.util.Calendar doReadLastModificationOfTopic(de.topicmapslab.majortom.model.core.ITopic topic)
          
 de.topicmapslab.majortom.model.revision.IRevision doReadLastRevision(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
          
 de.topicmapslab.majortom.model.core.ILocator doReadLocator(de.topicmapslab.majortom.model.core.ITopicMap t)
          
 java.util.Map<java.lang.String,java.lang.String> doReadMetadata(de.topicmapslab.majortom.model.revision.IRevision revision)
          
 java.lang.String doReadMetadataByKey(de.topicmapslab.majortom.model.revision.IRevision revision, java.lang.String key)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t, long offset, long limit)
          
 long doReadNumberOfAssociationsPlayed(de.topicmapslab.majortom.model.core.ITopic topic)
          
 long doReadNumberOfNames(de.topicmapslab.majortom.model.core.ITopic topic)
          
 long doReadNumberOfOccurrences(de.topicmapslab.majortom.model.core.ITopic topic)
          
 long doReadNumberOfRoles(de.topicmapslab.majortom.model.core.IAssociation association)
          
 long doReadNumberOfRolesPlayed(de.topicmapslab.majortom.model.core.ITopic topic)
          
 long doReadNumberOfSupertypes(de.topicmapslab.majortom.model.core.ITopic topic)
          
 long doReadNumberOfTypes(de.topicmapslab.majortom.model.core.ITopic topic)
          
 long doReadNumberOfVariants(de.topicmapslab.majortom.model.core.IName name)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t, long offset, long limit)
          
 de.topicmapslab.majortom.model.revision.IRevision doReadPastRevision(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.revision.IRevision revision)
          
 de.topicmapslab.majortom.model.core.ITopic doReadPlayer(de.topicmapslab.majortom.model.core.IAssociationRole role)
          
 de.topicmapslab.majortom.model.core.ITopic doReadReification(de.topicmapslab.majortom.model.core.IReifiable r)
          
 de.topicmapslab.majortom.model.core.IReifiable doReadReification(de.topicmapslab.majortom.model.core.ITopic t)
          
 de.topicmapslab.majortom.model.revision.IRevision doReadRevisionByTag(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String tag)
          
 de.topicmapslab.majortom.model.revision.IRevision doReadRevisionByTimestamp(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.util.Calendar time)
          
 java.util.List<de.topicmapslab.majortom.model.revision.IRevision> doReadRevisionsByAssociationType(de.topicmapslab.majortom.model.core.ITopic type)
          
 java.util.List<de.topicmapslab.majortom.model.revision.IRevision> doReadRevisionsByTopic(de.topicmapslab.majortom.model.core.ITopic topic)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.IAssociation association, de.topicmapslab.majortom.model.core.ITopic type)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.IAssociation association, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.ITopic player, de.topicmapslab.majortom.model.core.ITopic type)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.ITopic player, de.topicmapslab.majortom.model.core.ITopic type, de.topicmapslab.majortom.model.core.ITopic assocType)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.ITopic player, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> doReadRoleTypes(de.topicmapslab.majortom.model.core.IAssociation association)
          
 de.topicmapslab.majortom.model.core.IScope doReadScope(de.topicmapslab.majortom.model.core.IScopable s)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ILocator> doReadSubjectIdentifiers(de.topicmapslab.majortom.model.core.ITopic t)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ILocator> doReadSubjectLocators(de.topicmapslab.majortom.model.core.ITopic t)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> doReadSuptertypes(de.topicmapslab.majortom.model.core.ITopic t, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> doReadThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long scopeId)
          Internal method to read all themes of a scope
 java.util.Calendar doReadTimestamp(de.topicmapslab.majortom.model.revision.IRevision revision)
          
 de.topicmapslab.majortom.model.core.ITopic doReadTopicBySubjectIdentifier(de.topicmapslab.majortom.model.core.ITopicMap t, de.topicmapslab.majortom.model.core.ILocator subjectIdentifier)
          
 de.topicmapslab.majortom.model.core.ITopic doReadTopicBySubjectLocator(de.topicmapslab.majortom.model.core.ITopicMap t, de.topicmapslab.majortom.model.core.ILocator subjectLocator)
          
 java.lang.Long doReadTopicMapIdentity(de.topicmapslab.majortom.model.core.ILocator baseLocator)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> doReadTopics(de.topicmapslab.majortom.model.core.ITopicMap t, de.topicmapslab.majortom.model.core.ITopic type)
          
 de.topicmapslab.majortom.model.core.ITopic doReadType(de.topicmapslab.majortom.model.core.ITypeable typed)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> doReadTypes(de.topicmapslab.majortom.model.core.ITopic t, long offset, long limit)
          
 java.lang.Object doReadValue(de.topicmapslab.majortom.model.core.IDatatypeAware t)
          
 java.lang.Object doReadValue(de.topicmapslab.majortom.model.core.IName n)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> doReadVariants(de.topicmapslab.majortom.model.core.IName n, de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> doReadVariants(de.topicmapslab.majortom.model.core.IName n, long offset, long limit)
          
 boolean doRemoveAssociation(de.topicmapslab.majortom.model.core.IAssociation association, boolean cascade)
          
 void doRemoveAssociation(de.topicmapslab.majortom.model.core.IAssociation association, boolean cascade, de.topicmapslab.majortom.model.revision.IRevision revision)
          Using JDBC to remove an association instance and all roles.
 void doRemoveItemIdentifier(de.topicmapslab.majortom.model.core.IConstruct c, de.topicmapslab.majortom.model.core.ILocator itemIdentifier)
          
 boolean doRemoveName(de.topicmapslab.majortom.model.core.IName name, boolean cascade)
          
 void doRemoveName(de.topicmapslab.majortom.model.core.IName name, boolean cascade, de.topicmapslab.majortom.model.revision.IRevision revision)
          Using JDBC to remove a name instance and all variants.
 boolean doRemoveOccurrence(de.topicmapslab.majortom.model.core.IOccurrence occurrence, boolean cascade)
          
 void doRemoveOccurrence(de.topicmapslab.majortom.model.core.IOccurrence occurrence, boolean cascade, de.topicmapslab.majortom.model.revision.IRevision revision)
          Using JDBC to remove an occurrence instance.
 boolean doRemoveRole(de.topicmapslab.majortom.model.core.IAssociationRole role, boolean cascade)
          
 void doRemoveRole(de.topicmapslab.majortom.model.core.IAssociationRole role, boolean cascade, de.topicmapslab.majortom.model.revision.IRevision revision)
          Using JDBC to remove a role instance.
 void doRemoveScope(de.topicmapslab.majortom.model.core.IScopable s, de.topicmapslab.majortom.model.core.ITopic theme)
          
 void doRemoveSubjectIdentifier(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ILocator subjectIdentifier)
          
 void doRemoveSubjectLocator(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ILocator subjectLocator)
          
 void doRemoveSupertype(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type)
          
 boolean doRemoveTopic(de.topicmapslab.majortom.model.core.ITopic topic, boolean cascade)
          
 void doRemoveTopic(de.topicmapslab.majortom.model.core.ITopic topic, boolean cascade, de.topicmapslab.majortom.model.revision.IRevision revision)
          Using JDBC to remove a topic and all its dependent constructs.
 void doRemoveTopicMap(de.topicmapslab.majortom.model.core.ITopicMap topicMap, boolean cascade)
          
 void doRemoveType(de.topicmapslab.majortom.model.core.ITopic t, de.topicmapslab.majortom.model.core.ITopic type)
          
 boolean doRemoveVariant(de.topicmapslab.majortom.model.core.IVariant variant, boolean cascade)
          
 void doRemoveVariant(de.topicmapslab.majortom.model.core.IVariant variant, boolean cascade, de.topicmapslab.majortom.model.revision.IRevision revision)
           
 void dump(de.topicmapslab.majortom.model.revision.IRevision revision, de.topicmapslab.majortom.model.core.IAssociation association)
          
 void dump(de.topicmapslab.majortom.model.revision.IRevision revision, de.topicmapslab.majortom.model.core.IAssociationRole role)
          
 void dump(de.topicmapslab.majortom.model.revision.IRevision revision, de.topicmapslab.majortom.model.core.IName name)
          
 void dump(de.topicmapslab.majortom.model.revision.IRevision revision, de.topicmapslab.majortom.model.core.IOccurrence occurrence)
          
 void dump(de.topicmapslab.majortom.model.revision.IRevision revision, de.topicmapslab.majortom.model.core.ITopic topic)
          
 void dump(de.topicmapslab.majortom.model.revision.IRevision revision, de.topicmapslab.majortom.model.core.IVariant variant)
          
private  java.util.Collection<de.topicmapslab.majortom.model.core.IName> filterByDefaultNameType(de.topicmapslab.majortom.model.core.ITopic topic, java.util.Collection<de.topicmapslab.majortom.model.core.IName> names)
          Filter the given names list by the default name type.
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> getAssociationsByScope(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.IScope scope, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> getAssociationsByScopes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> getAssociationsByTheme(de.topicmapslab.majortom.model.core.ITopicMap topicMap, org.tmapi.core.Topic theme, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> getAssociationsByThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, org.tmapi.core.Topic[] themes, boolean all, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> getAssociationsByType(de.topicmapslab.majortom.model.core.ITopic type, long offset, long limit)
          
<T extends org.tmapi.core.Topic>
java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation>
getAssociationsByTypes(java.util.Collection<T> types, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> getAssociationsByTypeTransitive(de.topicmapslab.majortom.model.core.ITopic type, long offset, long limit)
          
<T extends org.tmapi.core.Topic>
java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation>
getAssociationsByTypeTransitive(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.util.Collection<T> types, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getAssociationScopes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getAssociationThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getAssociationTypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
           
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String value, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String value, java.lang.String reference, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsByDatatype(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String reference, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsByPattern(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String value, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsByPattern(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String value, java.lang.String reference, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsByScope(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.IScope scope, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsByType(de.topicmapslab.majortom.model.core.ITopic type, long offset, long limit)
          
<T extends org.tmapi.core.Topic>
java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics>
getCharacteristicsByTypes(java.util.Collection<T> types, long offset, long limit)
          
<T extends org.tmapi.core.Topic>
java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics>
getCharacteristicsByTypesTransitive(java.util.Collection<T> types, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsByTypeTransitive(de.topicmapslab.majortom.model.core.ITopic type, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getCharacteristicsTypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IConstruct> getConstructsByIdentitifer(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String regExp, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IConstruct> getConstructsByItemIdentitifer(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String regExp, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IDatatypeAware> getDatatypeAwaresByDatatype(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String reference, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getDirectSubtypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.ITopic type, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getDirectSupertypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.ITopic type, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ILocator> getItemIdentifiers(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
 java.util.Set<de.topicmapslab.majortom.model.core.ILocator> getLocators()
          Method to load all topic map locators from database
 java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNames(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNames(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String value)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNamesByPattern(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String pattern)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNamesByScope(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.IScope scope, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNamesByScopes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNamesByTheme(de.topicmapslab.majortom.model.core.ITopicMap topicMap, org.tmapi.core.Topic theme, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNamesByThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, org.tmapi.core.Topic[] themes, boolean all, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNamesByType(de.topicmapslab.majortom.model.core.ITopic type, long offset, long limit)
          
<T extends org.tmapi.core.Topic>
java.util.Collection<de.topicmapslab.majortom.model.core.IName>
getNamesByTypes(java.util.Collection<T> types, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNamesByTypeTransitive(de.topicmapslab.majortom.model.core.ITopic type, long offset, long limit)
          
<T extends org.tmapi.core.Topic>
java.util.Collection<de.topicmapslab.majortom.model.core.IName>
getNamesByTypeTransitive(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.util.Collection<T> types, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getNameScopes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getNameThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getNameTypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrences(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.util.Calendar lower, java.util.Calendar upper, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrences(de.topicmapslab.majortom.model.core.ITopicMap topicMap, double value, double deviance, java.lang.String reference, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrences(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrences(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String value)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrences(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String value, java.lang.String reference, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByDatatype(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String reference, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByPattern(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String pattern)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByPattern(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String pattern, java.lang.String reference)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByScope(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.IScope scope, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByScopes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByTheme(de.topicmapslab.majortom.model.core.ITopicMap topicMap, org.tmapi.core.Topic theme, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, org.tmapi.core.Topic[] themes, boolean all, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByType(de.topicmapslab.majortom.model.core.ITopic type, long offset, long limit)
          
<T extends org.tmapi.core.Topic>
java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence>
getOccurrencesByTypes(java.util.Collection<T> types, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByTypeTransitive(de.topicmapslab.majortom.model.core.ITopic type, long offset, long limit)
          
<T extends org.tmapi.core.Topic>
java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence>
getOccurrencesByTypeTransitive(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.util.Collection<T> types, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getOccurrenceScopes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getOccurrenceThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getOccurrenceTypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociationRole> getRolesByType(de.topicmapslab.majortom.model.core.ITopic type, long offset, long limit)
          
<T extends org.tmapi.core.Topic>
java.util.Collection<de.topicmapslab.majortom.model.core.IAssociationRole>
getRolesByTypes(java.util.Collection<T> types, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IAssociationRole> getRolesByTypeTransitive(de.topicmapslab.majortom.model.core.ITopic type, long offset, long limit)
          
<T extends org.tmapi.core.Topic>
java.util.Collection<de.topicmapslab.majortom.model.core.IAssociationRole>
getRolesByTypeTransitive(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.util.Collection<T> types, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getRoleTypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IScopable> getScopables(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.IScope scope, long offset, long limit)
          
<T extends org.tmapi.core.Topic>
java.util.Collection<de.topicmapslab.majortom.model.core.IScope>
getScopesByThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.util.Collection<T> themes, boolean all)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ILocator> getSubjectIdentifiers(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ILocator> getSubjectLocators(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
<T extends org.tmapi.core.Topic>
java.util.Collection<de.topicmapslab.majortom.model.core.ITopic>
getSubtypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.util.Collection<T> types, boolean matchAll, long offset, long limit)
          
private  java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getSubtypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.ITopic type, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> knownSubtypes)
           
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getSubtypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.ITopic type, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getSubtypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
<T extends org.tmapi.core.Topic>
java.util.Collection<de.topicmapslab.majortom.model.core.ITopic>
getSupertypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.util.Collection<T> types, boolean matchAll, long offset, long limit)
          
private  java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getSupertypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.ITopic type, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> knownSupertypes)
          Returns all super-types of the given topic type.
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getSupertypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.ITopic type, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getSupertypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getTopicsBySubjectIdentitifer(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String regExp, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getTopicsBySubjectLocator(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String regExp, long offset, long limit)
          
<T extends org.tmapi.core.Topic>
java.util.Collection<de.topicmapslab.majortom.model.core.ITopic>
getTopicsByType(de.topicmapslab.majortom.model.core.ITopicMap topicMap, T type, long offset, long limit)
          
<T extends org.tmapi.core.Topic>
java.util.Collection<de.topicmapslab.majortom.model.core.ITopic>
getTopicsByTypes(java.util.Collection<T> types, boolean all, long offset, long limit)
          
<T extends org.tmapi.core.Topic>
java.util.Collection<de.topicmapslab.majortom.model.core.ITopic>
getTopicsByTypesTransitive(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.util.Collection<T> types, boolean all, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getTopicsByTypeTransitive(de.topicmapslab.majortom.model.core.ITopic type, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getTopicTypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariantByPattern(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String pattern)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariants(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariants(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String value)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariants(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String value, java.lang.String reference)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariantsByDatatype(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String reference)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariantsByPattern(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.lang.String pattern, java.lang.String reference)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariantsByScope(de.topicmapslab.majortom.model.core.ITopicMap topicMap, de.topicmapslab.majortom.model.core.IScope scope, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariantsByScopes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariantsByTheme(de.topicmapslab.majortom.model.core.ITopicMap topicMap, org.tmapi.core.Topic theme, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariantsByThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, org.tmapi.core.Topic[] themes, boolean all, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getVariantScopes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getVariantThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, long offset, long limit)
          
 void openTransaction()
          
private  java.lang.String readBestIdentifier(de.topicmapslab.majortom.model.core.ITopic topic)
          Internal best label method only check identifier attribute.
private  java.lang.String readBestName(de.topicmapslab.majortom.model.core.ITopic topic, java.util.Collection<de.topicmapslab.majortom.model.core.IName> names)
          Internal best label method only check name attributes.
private  java.lang.String readBestName(de.topicmapslab.majortom.model.core.ITopic topic, de.topicmapslab.majortom.model.core.ITopic theme, java.util.Collection<de.topicmapslab.majortom.model.core.IName> names, boolean strict)
          Internal best label method only check name attributes.
protected  de.topicmapslab.majortom.model.core.IConstruct readHistoryConstruct(long id)
          Method read the construct with the given id from history
protected  de.topicmapslab.majortom.model.core.IScope readScopeByThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap, java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
           
 
Methods inherited from class de.topicmapslab.majortom.database.jdbc.rdbms.RDBMSQueryProcessor
canPerformRemoveDuplicates, close, doReadAssociation, doReadBestIdentifier, doReadNumberOfAssociations, doReadNumberOfTopics, doReadNumberOfTopics, doReadTopics, doRemoveDuplicates, doRemoveScope, dumpFallback, dumpFallback, dumpFallback, dumpFallback, dumpFallback, dumpFallback, getConnection, getQueryBuilder, getSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sql99QueryProcessor

public Sql99QueryProcessor(SQL99Session session,
                           java.sql.Connection connection)
constructor

Parameters:
session - the session
connection - the database connection for this query processor
Method Detail

createQueryBuilder

protected Sql99QueryBuilder createQueryBuilder()
Creates the query builder

Overrides:
createQueryBuilder in class RDBMSQueryProcessor
Returns:
the query builder

doCreateAssociation

public de.topicmapslab.majortom.model.core.IAssociation doCreateAssociation(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                            de.topicmapslab.majortom.model.core.ITopic type)
                                                                     throws java.sql.SQLException

Specified by:
doCreateAssociation in interface IQueryProcessor
Overrides:
doCreateAssociation in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateAssociation

public de.topicmapslab.majortom.model.core.IAssociation doCreateAssociation(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                            de.topicmapslab.majortom.model.core.ITopic type,
                                                                            java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                                     throws java.sql.SQLException

Specified by:
doCreateAssociation in interface IQueryProcessor
Overrides:
doCreateAssociation in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateLocator

public de.topicmapslab.majortom.model.core.ILocator doCreateLocator(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                    java.lang.String reference)
                                                             throws java.sql.SQLException

Specified by:
doCreateLocator in interface IQueryProcessor
Overrides:
doCreateLocator in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateName

public de.topicmapslab.majortom.model.core.IName doCreateName(de.topicmapslab.majortom.model.core.ITopic topic,
                                                              java.lang.String value)
                                                       throws java.sql.SQLException

Specified by:
doCreateName in interface IQueryProcessor
Overrides:
doCreateName in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateName

public de.topicmapslab.majortom.model.core.IName doCreateName(de.topicmapslab.majortom.model.core.ITopic topic,
                                                              java.lang.String value,
                                                              java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                       throws java.sql.SQLException

Specified by:
doCreateName in interface IQueryProcessor
Overrides:
doCreateName in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateName

public de.topicmapslab.majortom.model.core.IName doCreateName(de.topicmapslab.majortom.model.core.ITopic topic,
                                                              de.topicmapslab.majortom.model.core.ITopic type,
                                                              java.lang.String value)
                                                       throws java.sql.SQLException

Specified by:
doCreateName in interface IQueryProcessor
Overrides:
doCreateName in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateName

public de.topicmapslab.majortom.model.core.IName doCreateName(de.topicmapslab.majortom.model.core.ITopic topic,
                                                              de.topicmapslab.majortom.model.core.ITopic type,
                                                              java.lang.String value,
                                                              java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                       throws java.sql.SQLException

Specified by:
doCreateName in interface IQueryProcessor
Overrides:
doCreateName in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateOccurrence

public de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic,
                                                                          de.topicmapslab.majortom.model.core.ITopic type,
                                                                          java.lang.String value)
                                                                   throws java.sql.SQLException

Specified by:
doCreateOccurrence in interface IQueryProcessor
Overrides:
doCreateOccurrence in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateOccurrence

public de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic,
                                                                          de.topicmapslab.majortom.model.core.ITopic type,
                                                                          java.lang.String value,
                                                                          java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                                   throws java.sql.SQLException

Specified by:
doCreateOccurrence in interface IQueryProcessor
Overrides:
doCreateOccurrence in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateOccurrence

public de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic,
                                                                          de.topicmapslab.majortom.model.core.ITopic type,
                                                                          de.topicmapslab.majortom.model.core.ILocator value)
                                                                   throws java.sql.SQLException

Specified by:
doCreateOccurrence in interface IQueryProcessor
Overrides:
doCreateOccurrence in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateOccurrence

public de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic,
                                                                          de.topicmapslab.majortom.model.core.ITopic type,
                                                                          de.topicmapslab.majortom.model.core.ILocator value,
                                                                          java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                                   throws java.sql.SQLException

Specified by:
doCreateOccurrence in interface IQueryProcessor
Overrides:
doCreateOccurrence in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateOccurrence

public de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic,
                                                                          de.topicmapslab.majortom.model.core.ITopic type,
                                                                          java.lang.String value,
                                                                          de.topicmapslab.majortom.model.core.ILocator datatype)
                                                                   throws java.sql.SQLException

Specified by:
doCreateOccurrence in interface IQueryProcessor
Overrides:
doCreateOccurrence in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateOccurrence

public de.topicmapslab.majortom.model.core.IOccurrence doCreateOccurrence(de.topicmapslab.majortom.model.core.ITopic topic,
                                                                          de.topicmapslab.majortom.model.core.ITopic type,
                                                                          java.lang.String value,
                                                                          de.topicmapslab.majortom.model.core.ILocator datatype,
                                                                          java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                                   throws java.sql.SQLException

Specified by:
doCreateOccurrence in interface IQueryProcessor
Overrides:
doCreateOccurrence in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateRole

public de.topicmapslab.majortom.model.core.IAssociationRole doCreateRole(de.topicmapslab.majortom.model.core.IAssociation association,
                                                                         de.topicmapslab.majortom.model.core.ITopic type,
                                                                         de.topicmapslab.majortom.model.core.ITopic player)
                                                                  throws java.sql.SQLException

Specified by:
doCreateRole in interface IQueryProcessor
Overrides:
doCreateRole in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

readScopeByThemes

protected de.topicmapslab.majortom.model.core.IScope readScopeByThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                       java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                                throws java.sql.SQLException
Overrides:
readScopeByThemes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateScope

public de.topicmapslab.majortom.model.core.IScope doCreateScope(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                         throws java.sql.SQLException

Specified by:
doCreateScope in interface IQueryProcessor
Overrides:
doCreateScope in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadTopicMapIdentity

public java.lang.Long doReadTopicMapIdentity(de.topicmapslab.majortom.model.core.ILocator baseLocator)
                                      throws java.sql.SQLException

Specified by:
doReadTopicMapIdentity in interface IQueryProcessor
Overrides:
doReadTopicMapIdentity in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateTopicMapIdentity

public java.lang.Long doCreateTopicMapIdentity(de.topicmapslab.majortom.model.core.ILocator baseLocator)
                                        throws java.sql.SQLException

Specified by:
doCreateTopicMapIdentity in interface IQueryProcessor
Overrides:
doCreateTopicMapIdentity in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateTopicWithoutIdentifier

public de.topicmapslab.majortom.model.core.ITopic doCreateTopicWithoutIdentifier(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
                                                                          throws java.sql.SQLException
Internal method to create a new topic

Specified by:
doCreateTopicWithoutIdentifier in interface IQueryProcessor
Overrides:
doCreateTopicWithoutIdentifier in class RDBMSQueryProcessor
Parameters:
topicMap - the topic map
Returns:
the new topic and never null
Throws:
java.sql.SQLException - thrown if any SQL error occurs

doCreateTopicByItemIdentifier

public de.topicmapslab.majortom.model.core.ITopic doCreateTopicByItemIdentifier(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                de.topicmapslab.majortom.model.core.ILocator itemIdentifier)
                                                                         throws java.sql.SQLException

Specified by:
doCreateTopicByItemIdentifier in interface IQueryProcessor
Overrides:
doCreateTopicByItemIdentifier in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateTopicBySubjectIdentifier

public de.topicmapslab.majortom.model.core.ITopic doCreateTopicBySubjectIdentifier(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                   de.topicmapslab.majortom.model.core.ILocator subjectIdentifier)
                                                                            throws java.sql.SQLException

Specified by:
doCreateTopicBySubjectIdentifier in interface IQueryProcessor
Overrides:
doCreateTopicBySubjectIdentifier in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateTopicBySubjectLocator

public de.topicmapslab.majortom.model.core.ITopic doCreateTopicBySubjectLocator(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                de.topicmapslab.majortom.model.core.ILocator subjectLocator)
                                                                         throws java.sql.SQLException

Specified by:
doCreateTopicBySubjectLocator in interface IQueryProcessor
Overrides:
doCreateTopicBySubjectLocator in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateVariant

public de.topicmapslab.majortom.model.core.IVariant doCreateVariant(de.topicmapslab.majortom.model.core.IName name,
                                                                    java.lang.String value,
                                                                    java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                             throws java.sql.SQLException

Specified by:
doCreateVariant in interface IQueryProcessor
Overrides:
doCreateVariant in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateVariant

public de.topicmapslab.majortom.model.core.IVariant doCreateVariant(de.topicmapslab.majortom.model.core.IName name,
                                                                    de.topicmapslab.majortom.model.core.ILocator value,
                                                                    java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                             throws java.sql.SQLException

Specified by:
doCreateVariant in interface IQueryProcessor
Overrides:
doCreateVariant in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateVariant

public de.topicmapslab.majortom.model.core.IVariant doCreateVariant(de.topicmapslab.majortom.model.core.IName name,
                                                                    java.lang.String value,
                                                                    de.topicmapslab.majortom.model.core.ILocator datatype,
                                                                    java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> themes)
                                                             throws java.sql.SQLException

Specified by:
doCreateVariant in interface IQueryProcessor
Overrides:
doCreateVariant in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doMergeTopicMaps

public void doMergeTopicMaps(org.tmapi.core.TopicMap context,
                             org.tmapi.core.TopicMap other)
                      throws java.sql.SQLException

Specified by:
doMergeTopicMaps in interface IQueryProcessor
Overrides:
doMergeTopicMaps in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doMergeTopics

public void doMergeTopics(de.topicmapslab.majortom.model.core.ITopic context,
                          de.topicmapslab.majortom.model.core.ITopic other)
                   throws java.sql.SQLException

Specified by:
doMergeTopics in interface IQueryProcessor
Overrides:
doMergeTopics in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

detectDuplicateNames

private void detectDuplicateNames(de.topicmapslab.majortom.model.core.ITopic topic)
                           throws java.sql.SQLException
Throws:
java.sql.SQLException

detectDuplicateVariants

private void detectDuplicateVariants(de.topicmapslab.majortom.model.core.IName name)
                              throws java.sql.SQLException
Throws:
java.sql.SQLException

detectDuplicateOccurrences

private void detectDuplicateOccurrences(de.topicmapslab.majortom.model.core.ITopic topic)
                                 throws java.sql.SQLException
Throws:
java.sql.SQLException

detectDuplicateAssociations

private void detectDuplicateAssociations(de.topicmapslab.majortom.model.core.ITopic topic)
                                  throws java.sql.SQLException
Throws:
java.sql.SQLException

doModifyItemIdentifier

public void doModifyItemIdentifier(de.topicmapslab.majortom.model.core.IConstruct c,
                                   de.topicmapslab.majortom.model.core.ILocator itemIdentifier)
                            throws java.sql.SQLException

Specified by:
doModifyItemIdentifier in interface IQueryProcessor
Overrides:
doModifyItemIdentifier in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doModifyPlayer

public void doModifyPlayer(de.topicmapslab.majortom.model.core.IAssociationRole role,
                           de.topicmapslab.majortom.model.core.ITopic player)
                    throws java.sql.SQLException

Specified by:
doModifyPlayer in interface IQueryProcessor
Overrides:
doModifyPlayer in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doModifyReifier

public void doModifyReifier(de.topicmapslab.majortom.model.core.IReifiable r,
                            de.topicmapslab.majortom.model.core.ITopic reifier)
                     throws java.sql.SQLException

Specified by:
doModifyReifier in interface IQueryProcessor
Overrides:
doModifyReifier in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doModifyScope

public void doModifyScope(de.topicmapslab.majortom.model.core.IScopable s,
                          de.topicmapslab.majortom.model.core.ITopic theme)
                   throws java.sql.SQLException

Specified by:
doModifyScope in interface IQueryProcessor
Overrides:
doModifyScope in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doModifySubjectIdentifier

public void doModifySubjectIdentifier(de.topicmapslab.majortom.model.core.ITopic t,
                                      de.topicmapslab.majortom.model.core.ILocator subjectIdentifier)
                               throws java.sql.SQLException

Specified by:
doModifySubjectIdentifier in interface IQueryProcessor
Overrides:
doModifySubjectIdentifier in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doModifySubjectLocator

public void doModifySubjectLocator(de.topicmapslab.majortom.model.core.ITopic t,
                                   de.topicmapslab.majortom.model.core.ILocator subjectLocator)
                            throws java.sql.SQLException

Specified by:
doModifySubjectLocator in interface IQueryProcessor
Overrides:
doModifySubjectLocator in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doModifySupertype

public void doModifySupertype(de.topicmapslab.majortom.model.core.ITopic t,
                              de.topicmapslab.majortom.model.core.ITopic type)
                       throws java.sql.SQLException

Specified by:
doModifySupertype in interface IQueryProcessor
Overrides:
doModifySupertype in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doModifyTag

public void doModifyTag(de.topicmapslab.majortom.model.core.ITopicMap tm,
                        java.lang.String tag)
                 throws java.sql.SQLException

Specified by:
doModifyTag in interface IQueryProcessor
Overrides:
doModifyTag in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doModifyTag

public void doModifyTag(de.topicmapslab.majortom.model.core.ITopicMap tm,
                        java.lang.String tag,
                        java.util.Calendar timestamp)
                 throws java.sql.SQLException

Specified by:
doModifyTag in interface IQueryProcessor
Overrides:
doModifyTag in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doModifyType

public void doModifyType(de.topicmapslab.majortom.model.core.ITypeable t,
                         de.topicmapslab.majortom.model.core.ITopic type)
                  throws java.sql.SQLException

Specified by:
doModifyType in interface IQueryProcessor
Overrides:
doModifyType in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doModifyType

public void doModifyType(de.topicmapslab.majortom.model.core.ITopic t,
                         de.topicmapslab.majortom.model.core.ITopic type)
                  throws java.sql.SQLException

Specified by:
doModifyType in interface IQueryProcessor
Overrides:
doModifyType in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doModifyValue

public void doModifyValue(de.topicmapslab.majortom.model.core.IName n,
                          java.lang.String value)
                   throws java.sql.SQLException

Specified by:
doModifyValue in interface IQueryProcessor
Overrides:
doModifyValue in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doModifyValue

public void doModifyValue(de.topicmapslab.majortom.model.core.IDatatypeAware t,
                          java.lang.String value,
                          de.topicmapslab.majortom.model.core.ILocator datatype)
                   throws java.sql.SQLException

Specified by:
doModifyValue in interface IQueryProcessor
Overrides:
doModifyValue in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadAssociation

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                                long offset,
                                                                                                long limit)
                                                                                         throws java.sql.SQLException

Specified by:
doReadAssociation in interface IQueryProcessor
Overrides:
doReadAssociation in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadAssociation

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                                de.topicmapslab.majortom.model.core.ITopic type)
                                                                                         throws java.sql.SQLException

Specified by:
doReadAssociation in interface IQueryProcessor
Overrides:
doReadAssociation in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadAssociation

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                                de.topicmapslab.majortom.model.core.ITopic type,
                                                                                                de.topicmapslab.majortom.model.core.IScope scope)
                                                                                         throws java.sql.SQLException

Specified by:
doReadAssociation in interface IQueryProcessor
Overrides:
doReadAssociation in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadAssociation

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                                de.topicmapslab.majortom.model.core.IScope scope)
                                                                                         throws java.sql.SQLException

Specified by:
doReadAssociation in interface IQueryProcessor
Overrides:
doReadAssociation in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadAssociation

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopicMap tm,
                                                                                                de.topicmapslab.majortom.model.core.ITopic type)
                                                                                         throws java.sql.SQLException

Specified by:
doReadAssociation in interface IQueryProcessor
Overrides:
doReadAssociation in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadAssociation

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopicMap tm,
                                                                                                de.topicmapslab.majortom.model.core.ITopic type,
                                                                                                de.topicmapslab.majortom.model.core.IScope scope)
                                                                                         throws java.sql.SQLException

Specified by:
doReadAssociation in interface IQueryProcessor
Overrides:
doReadAssociation in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadAssociation

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopicMap tm,
                                                                                                de.topicmapslab.majortom.model.core.IScope scope)
                                                                                         throws java.sql.SQLException

Specified by:
doReadAssociation in interface IQueryProcessor
Overrides:
doReadAssociation in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doReadCharacteristics(de.topicmapslab.majortom.model.core.ITopic t)
                                                                                                 throws java.sql.SQLException

Specified by:
doReadCharacteristics in interface IQueryProcessor
Overrides:
doReadCharacteristics in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doReadCharacteristics(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                                        de.topicmapslab.majortom.model.core.ITopic type)
                                                                                                 throws java.sql.SQLException

Specified by:
doReadCharacteristics in interface IQueryProcessor
Overrides:
doReadCharacteristics in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doReadCharacteristics(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                                        de.topicmapslab.majortom.model.core.ITopic type,
                                                                                                        de.topicmapslab.majortom.model.core.IScope scope)
                                                                                                 throws java.sql.SQLException

Specified by:
doReadCharacteristics in interface IQueryProcessor
Overrides:
doReadCharacteristics in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doReadCharacteristics(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                                        de.topicmapslab.majortom.model.core.IScope scope)
                                                                                                 throws java.sql.SQLException

Specified by:
doReadCharacteristics in interface IQueryProcessor
Overrides:
doReadCharacteristics in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadConstruct

public de.topicmapslab.majortom.model.core.IConstruct doReadConstruct(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                      java.lang.Long id,
                                                                      boolean lookupHistory)
                                                               throws java.sql.SQLException

Specified by:
doReadConstruct in interface IQueryProcessor
Overrides:
doReadConstruct in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadConstruct

public de.topicmapslab.majortom.model.core.IConstruct doReadConstruct(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                      de.topicmapslab.majortom.model.core.ILocator itemIdentifier)
                                                               throws java.sql.SQLException

Specified by:
doReadConstruct in interface IQueryProcessor
Overrides:
doReadConstruct in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadDataType

public de.topicmapslab.majortom.model.core.ILocator doReadDataType(de.topicmapslab.majortom.model.core.IDatatypeAware d)
                                                            throws java.sql.SQLException

Specified by:
doReadDataType in interface IQueryProcessor
Overrides:
doReadDataType in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadItemIdentifiers

public java.util.Collection<de.topicmapslab.majortom.model.core.ILocator> doReadItemIdentifiers(de.topicmapslab.majortom.model.core.IConstruct c)
                                                                                         throws java.sql.SQLException

Specified by:
doReadItemIdentifiers in interface IQueryProcessor
Overrides:
doReadItemIdentifiers in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadLocator

public de.topicmapslab.majortom.model.core.ILocator doReadLocator(de.topicmapslab.majortom.model.core.ITopicMap t)
                                                           throws java.sql.SQLException

Specified by:
doReadLocator in interface IQueryProcessor
Overrides:
doReadLocator in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadNames

public java.util.Collection<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                   long offset,
                                                                                   long limit)
                                                                            throws java.sql.SQLException

Specified by:
doReadNames in interface IQueryProcessor
Overrides:
doReadNames in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadNames

public java.util.Collection<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                   de.topicmapslab.majortom.model.core.ITopic type)
                                                                            throws java.sql.SQLException

Specified by:
doReadNames in interface IQueryProcessor
Overrides:
doReadNames in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadNames

public java.util.Collection<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                   de.topicmapslab.majortom.model.core.ITopic type,
                                                                                   de.topicmapslab.majortom.model.core.IScope scope)
                                                                            throws java.sql.SQLException

Specified by:
doReadNames in interface IQueryProcessor
Overrides:
doReadNames in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadNames

public java.util.Collection<de.topicmapslab.majortom.model.core.IName> doReadNames(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                   de.topicmapslab.majortom.model.core.IScope scope)
                                                                            throws java.sql.SQLException

Specified by:
doReadNames in interface IQueryProcessor
Overrides:
doReadNames in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadOccurrences

public java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                               long offset,
                                                                                               long limit)
                                                                                        throws java.sql.SQLException

Specified by:
doReadOccurrences in interface IQueryProcessor
Overrides:
doReadOccurrences in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadOccurrences

public java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                               de.topicmapslab.majortom.model.core.ITopic type)
                                                                                        throws java.sql.SQLException

Specified by:
doReadOccurrences in interface IQueryProcessor
Overrides:
doReadOccurrences in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadOccurrences

public java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                               de.topicmapslab.majortom.model.core.ITopic type,
                                                                                               de.topicmapslab.majortom.model.core.IScope scope)
                                                                                        throws java.sql.SQLException

Specified by:
doReadOccurrences in interface IQueryProcessor
Overrides:
doReadOccurrences in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadOccurrences

public java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> doReadOccurrences(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                               de.topicmapslab.majortom.model.core.IScope scope)
                                                                                        throws java.sql.SQLException

Specified by:
doReadOccurrences in interface IQueryProcessor
Overrides:
doReadOccurrences in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadPlayer

public de.topicmapslab.majortom.model.core.ITopic doReadPlayer(de.topicmapslab.majortom.model.core.IAssociationRole role)
                                                        throws java.sql.SQLException

Specified by:
doReadPlayer in interface IQueryProcessor
Overrides:
doReadPlayer in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadReification

public de.topicmapslab.majortom.model.core.IReifiable doReadReification(de.topicmapslab.majortom.model.core.ITopic t)
                                                                 throws java.sql.SQLException

Specified by:
doReadReification in interface IQueryProcessor
Overrides:
doReadReification in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadReification

public de.topicmapslab.majortom.model.core.ITopic doReadReification(de.topicmapslab.majortom.model.core.IReifiable r)
                                                             throws java.sql.SQLException

Specified by:
doReadReification in interface IQueryProcessor
Overrides:
doReadReification in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadRoleTypes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> doReadRoleTypes(de.topicmapslab.majortom.model.core.IAssociation association)
                                                                                 throws java.sql.SQLException

Specified by:
doReadRoleTypes in interface IQueryProcessor
Overrides:
doReadRoleTypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadRoles

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.IAssociation association,
                                                                                              long offset,
                                                                                              long limit)
                                                                                       throws java.sql.SQLException

Specified by:
doReadRoles in interface IQueryProcessor
Overrides:
doReadRoles in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadRoles

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.IAssociation association,
                                                                                              de.topicmapslab.majortom.model.core.ITopic type)
                                                                                       throws java.sql.SQLException

Specified by:
doReadRoles in interface IQueryProcessor
Overrides:
doReadRoles in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadRoles

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.ITopic player,
                                                                                              long offset,
                                                                                              long limit)
                                                                                       throws java.sql.SQLException

Specified by:
doReadRoles in interface IQueryProcessor
Overrides:
doReadRoles in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadRoles

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.ITopic player,
                                                                                              de.topicmapslab.majortom.model.core.ITopic type)
                                                                                       throws java.sql.SQLException

Specified by:
doReadRoles in interface IQueryProcessor
Overrides:
doReadRoles in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadRoles

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociationRole> doReadRoles(de.topicmapslab.majortom.model.core.ITopic player,
                                                                                              de.topicmapslab.majortom.model.core.ITopic type,
                                                                                              de.topicmapslab.majortom.model.core.ITopic assocType)
                                                                                       throws java.sql.SQLException

Specified by:
doReadRoles in interface IQueryProcessor
Overrides:
doReadRoles in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadScope

public de.topicmapslab.majortom.model.core.IScope doReadScope(de.topicmapslab.majortom.model.core.IScopable s)
                                                       throws java.sql.SQLException

Specified by:
doReadScope in interface IQueryProcessor
Overrides:
doReadScope in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadThemes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> doReadThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                     long scopeId)
                                                                              throws java.sql.SQLException
Internal method to read all themes of a scope

Specified by:
doReadThemes in interface IQueryProcessor
Overrides:
doReadThemes in class RDBMSQueryProcessor
Parameters:
topicMap - the topic map
scopeId - the scope id
Returns:
a collection of all themes
Throws:
java.sql.SQLException - thrown if a database error occurrs

doReadSubjectIdentifiers

public java.util.Collection<de.topicmapslab.majortom.model.core.ILocator> doReadSubjectIdentifiers(de.topicmapslab.majortom.model.core.ITopic t)
                                                                                            throws java.sql.SQLException

Specified by:
doReadSubjectIdentifiers in interface IQueryProcessor
Overrides:
doReadSubjectIdentifiers in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadSubjectLocators

public java.util.Collection<de.topicmapslab.majortom.model.core.ILocator> doReadSubjectLocators(de.topicmapslab.majortom.model.core.ITopic t)
                                                                                         throws java.sql.SQLException

Specified by:
doReadSubjectLocators in interface IQueryProcessor
Overrides:
doReadSubjectLocators in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadSuptertypes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> doReadSuptertypes(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                          long offset,
                                                                                          long limit)
                                                                                   throws java.sql.SQLException

Specified by:
doReadSuptertypes in interface IQueryProcessor
Overrides:
doReadSuptertypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadTopicBySubjectIdentifier

public de.topicmapslab.majortom.model.core.ITopic doReadTopicBySubjectIdentifier(de.topicmapslab.majortom.model.core.ITopicMap t,
                                                                                 de.topicmapslab.majortom.model.core.ILocator subjectIdentifier)
                                                                          throws java.sql.SQLException

Specified by:
doReadTopicBySubjectIdentifier in interface IQueryProcessor
Overrides:
doReadTopicBySubjectIdentifier in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadTopicBySubjectLocator

public de.topicmapslab.majortom.model.core.ITopic doReadTopicBySubjectLocator(de.topicmapslab.majortom.model.core.ITopicMap t,
                                                                              de.topicmapslab.majortom.model.core.ILocator subjectLocator)
                                                                       throws java.sql.SQLException

Specified by:
doReadTopicBySubjectLocator in interface IQueryProcessor
Overrides:
doReadTopicBySubjectLocator in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadTopics

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> doReadTopics(de.topicmapslab.majortom.model.core.ITopicMap t,
                                                                                     de.topicmapslab.majortom.model.core.ITopic type)
                                                                              throws java.sql.SQLException

Specified by:
doReadTopics in interface IQueryProcessor
Overrides:
doReadTopics in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadType

public de.topicmapslab.majortom.model.core.ITopic doReadType(de.topicmapslab.majortom.model.core.ITypeable typed)
                                                      throws java.sql.SQLException

Specified by:
doReadType in interface IQueryProcessor
Overrides:
doReadType in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadTypes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> doReadTypes(de.topicmapslab.majortom.model.core.ITopic t,
                                                                                    long offset,
                                                                                    long limit)
                                                                             throws java.sql.SQLException

Specified by:
doReadTypes in interface IQueryProcessor
Overrides:
doReadTypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadValue

public java.lang.Object doReadValue(de.topicmapslab.majortom.model.core.IName n)
                             throws java.sql.SQLException

Specified by:
doReadValue in interface IQueryProcessor
Overrides:
doReadValue in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadValue

public java.lang.Object doReadValue(de.topicmapslab.majortom.model.core.IDatatypeAware t)
                             throws java.sql.SQLException

Specified by:
doReadValue in interface IQueryProcessor
Overrides:
doReadValue in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadVariants

public java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> doReadVariants(de.topicmapslab.majortom.model.core.IName n,
                                                                                         long offset,
                                                                                         long limit)
                                                                                  throws java.sql.SQLException

Specified by:
doReadVariants in interface IQueryProcessor
Overrides:
doReadVariants in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadVariants

public java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> doReadVariants(de.topicmapslab.majortom.model.core.IName n,
                                                                                         de.topicmapslab.majortom.model.core.IScope scope)
                                                                                  throws java.sql.SQLException

Specified by:
doReadVariants in interface IQueryProcessor
Overrides:
doReadVariants in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doRemoveAssociation

public boolean doRemoveAssociation(de.topicmapslab.majortom.model.core.IAssociation association,
                                   boolean cascade)
                            throws java.sql.SQLException

Specified by:
doRemoveAssociation in interface IQueryProcessor
Overrides:
doRemoveAssociation in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doRemoveAssociation

public void doRemoveAssociation(de.topicmapslab.majortom.model.core.IAssociation association,
                                boolean cascade,
                                de.topicmapslab.majortom.model.revision.IRevision revision)
                         throws java.sql.SQLException
Using JDBC to remove an association instance and all roles.

Specified by:
doRemoveAssociation in interface IQueryProcessor
Overrides:
doRemoveAssociation in class RDBMSQueryProcessor
Parameters:
association - the association
cascade - cascading deletion
revision - the revision to store changes
Throws:
java.sql.SQLException - thrown if JDBC command fails

doRemoveItemIdentifier

public void doRemoveItemIdentifier(de.topicmapslab.majortom.model.core.IConstruct c,
                                   de.topicmapslab.majortom.model.core.ILocator itemIdentifier)
                            throws java.sql.SQLException

Specified by:
doRemoveItemIdentifier in interface IQueryProcessor
Overrides:
doRemoveItemIdentifier in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doRemoveName

public boolean doRemoveName(de.topicmapslab.majortom.model.core.IName name,
                            boolean cascade)
                     throws java.sql.SQLException

Specified by:
doRemoveName in interface IQueryProcessor
Overrides:
doRemoveName in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doRemoveName

public void doRemoveName(de.topicmapslab.majortom.model.core.IName name,
                         boolean cascade,
                         de.topicmapslab.majortom.model.revision.IRevision revision)
                  throws java.sql.SQLException
Using JDBC to remove a name instance and all variants.

Specified by:
doRemoveName in interface IQueryProcessor
Overrides:
doRemoveName in class RDBMSQueryProcessor
Parameters:
name - the name
cascade - cascading deletion
revision - the revision to store changes
Throws:
java.sql.SQLException - thrown if JDBC command fails

doRemoveOccurrence

public boolean doRemoveOccurrence(de.topicmapslab.majortom.model.core.IOccurrence occurrence,
                                  boolean cascade)
                           throws java.sql.SQLException

Specified by:
doRemoveOccurrence in interface IQueryProcessor
Overrides:
doRemoveOccurrence in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doRemoveOccurrence

public void doRemoveOccurrence(de.topicmapslab.majortom.model.core.IOccurrence occurrence,
                               boolean cascade,
                               de.topicmapslab.majortom.model.revision.IRevision revision)
                        throws java.sql.SQLException
Using JDBC to remove an occurrence instance.

Specified by:
doRemoveOccurrence in interface IQueryProcessor
Overrides:
doRemoveOccurrence in class RDBMSQueryProcessor
Parameters:
occurrence - the occurrence
cascade - cascading deletion
revision - the revision to store changes
Throws:
java.sql.SQLException - thrown if JDBC command fails

doRemoveRole

public boolean doRemoveRole(de.topicmapslab.majortom.model.core.IAssociationRole role,
                            boolean cascade)
                     throws java.sql.SQLException

Specified by:
doRemoveRole in interface IQueryProcessor
Overrides:
doRemoveRole in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doRemoveRole

public void doRemoveRole(de.topicmapslab.majortom.model.core.IAssociationRole role,
                         boolean cascade,
                         de.topicmapslab.majortom.model.revision.IRevision revision)
                  throws java.sql.SQLException
Using JDBC to remove a role instance.

Specified by:
doRemoveRole in interface IQueryProcessor
Overrides:
doRemoveRole in class RDBMSQueryProcessor
Parameters:
role - the role
cascade - cascading deletion
revision - the revision to store changes
Throws:
java.sql.SQLException - thrown if JDBC command fails

doRemoveScope

public void doRemoveScope(de.topicmapslab.majortom.model.core.IScopable s,
                          de.topicmapslab.majortom.model.core.ITopic theme)
                   throws java.sql.SQLException

Specified by:
doRemoveScope in interface IQueryProcessor
Overrides:
doRemoveScope in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doRemoveSubjectIdentifier

public void doRemoveSubjectIdentifier(de.topicmapslab.majortom.model.core.ITopic t,
                                      de.topicmapslab.majortom.model.core.ILocator subjectIdentifier)
                               throws java.sql.SQLException

Specified by:
doRemoveSubjectIdentifier in interface IQueryProcessor
Overrides:
doRemoveSubjectIdentifier in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doRemoveSubjectLocator

public void doRemoveSubjectLocator(de.topicmapslab.majortom.model.core.ITopic t,
                                   de.topicmapslab.majortom.model.core.ILocator subjectLocator)
                            throws java.sql.SQLException

Specified by:
doRemoveSubjectLocator in interface IQueryProcessor
Overrides:
doRemoveSubjectLocator in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doRemoveSupertype

public void doRemoveSupertype(de.topicmapslab.majortom.model.core.ITopic t,
                              de.topicmapslab.majortom.model.core.ITopic type)
                       throws java.sql.SQLException

Specified by:
doRemoveSupertype in interface IQueryProcessor
Overrides:
doRemoveSupertype in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doRemoveTopic

public boolean doRemoveTopic(de.topicmapslab.majortom.model.core.ITopic topic,
                             boolean cascade)
                      throws java.sql.SQLException

Specified by:
doRemoveTopic in interface IQueryProcessor
Overrides:
doRemoveTopic in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doRemoveTopic

public void doRemoveTopic(de.topicmapslab.majortom.model.core.ITopic topic,
                          boolean cascade,
                          de.topicmapslab.majortom.model.revision.IRevision revision)
                   throws java.sql.SQLException
Using JDBC to remove a topic and all its dependent constructs.

Specified by:
doRemoveTopic in interface IQueryProcessor
Overrides:
doRemoveTopic in class RDBMSQueryProcessor
Parameters:
topic - the topic
cascade - the cascading flag
revision - the revision
Throws:
java.sql.SQLException - thrown if the JDBC command fails

doRemoveTopicMap

public void doRemoveTopicMap(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                             boolean cascade)
                      throws java.sql.SQLException

Specified by:
doRemoveTopicMap in interface IQueryProcessor
Overrides:
doRemoveTopicMap in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doClearTopicMap

public void doClearTopicMap(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
                     throws java.sql.SQLException

Specified by:
doClearTopicMap in interface IQueryProcessor
Overrides:
doClearTopicMap in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doRemoveType

public void doRemoveType(de.topicmapslab.majortom.model.core.ITopic t,
                         de.topicmapslab.majortom.model.core.ITopic type)
                  throws java.sql.SQLException

Specified by:
doRemoveType in interface IQueryProcessor
Overrides:
doRemoveType in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doRemoveVariant

public boolean doRemoveVariant(de.topicmapslab.majortom.model.core.IVariant variant,
                               boolean cascade)
                        throws java.sql.SQLException

Specified by:
doRemoveVariant in interface IQueryProcessor
Overrides:
doRemoveVariant in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doRemoveVariant

public void doRemoveVariant(de.topicmapslab.majortom.model.core.IVariant variant,
                            boolean cascade,
                            de.topicmapslab.majortom.model.revision.IRevision revision)
                     throws java.sql.SQLException
Specified by:
doRemoveVariant in interface IQueryProcessor
Overrides:
doRemoveVariant in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadNumberOfAssociationsPlayed

public long doReadNumberOfAssociationsPlayed(de.topicmapslab.majortom.model.core.ITopic topic)
                                      throws java.sql.SQLException

Specified by:
doReadNumberOfAssociationsPlayed in interface IQueryProcessor
Overrides:
doReadNumberOfAssociationsPlayed in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadNumberOfNames

public long doReadNumberOfNames(de.topicmapslab.majortom.model.core.ITopic topic)
                         throws java.sql.SQLException

Specified by:
doReadNumberOfNames in interface IQueryProcessor
Overrides:
doReadNumberOfNames in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadNumberOfOccurrences

public long doReadNumberOfOccurrences(de.topicmapslab.majortom.model.core.ITopic topic)
                               throws java.sql.SQLException

Specified by:
doReadNumberOfOccurrences in interface IQueryProcessor
Overrides:
doReadNumberOfOccurrences in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadNumberOfRoles

public long doReadNumberOfRoles(de.topicmapslab.majortom.model.core.IAssociation association)
                         throws java.sql.SQLException

Specified by:
doReadNumberOfRoles in interface IQueryProcessor
Overrides:
doReadNumberOfRoles in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadNumberOfRolesPlayed

public long doReadNumberOfRolesPlayed(de.topicmapslab.majortom.model.core.ITopic topic)
                               throws java.sql.SQLException

Specified by:
doReadNumberOfRolesPlayed in interface IQueryProcessor
Overrides:
doReadNumberOfRolesPlayed in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadNumberOfSupertypes

public long doReadNumberOfSupertypes(de.topicmapslab.majortom.model.core.ITopic topic)
                              throws java.sql.SQLException

Specified by:
doReadNumberOfSupertypes in interface IQueryProcessor
Overrides:
doReadNumberOfSupertypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadNumberOfTypes

public long doReadNumberOfTypes(de.topicmapslab.majortom.model.core.ITopic topic)
                         throws java.sql.SQLException

Specified by:
doReadNumberOfTypes in interface IQueryProcessor
Overrides:
doReadNumberOfTypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadNumberOfVariants

public long doReadNumberOfVariants(de.topicmapslab.majortom.model.core.IName name)
                            throws java.sql.SQLException

Specified by:
doReadNumberOfVariants in interface IQueryProcessor
Overrides:
doReadNumberOfVariants in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getAssociationTypes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getAssociationTypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                            long offset,
                                                                                            long limit)
                                                                                     throws java.sql.SQLException
Specified by:
getAssociationTypes in interface IQueryProcessor
Overrides:
getAssociationTypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getNameTypes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getNameTypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                     long offset,
                                                                                     long limit)
                                                                              throws java.sql.SQLException

Specified by:
getNameTypes in interface IQueryProcessor
Overrides:
getNameTypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getOccurrenceTypes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getOccurrenceTypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                           long offset,
                                                                                           long limit)
                                                                                    throws java.sql.SQLException

Specified by:
getOccurrenceTypes in interface IQueryProcessor
Overrides:
getOccurrenceTypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getCharacteristicsTypes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getCharacteristicsTypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                long offset,
                                                                                                long limit)
                                                                                         throws java.sql.SQLException

Specified by:
getCharacteristicsTypes in interface IQueryProcessor
Overrides:
getCharacteristicsTypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getRoleTypes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getRoleTypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                     long offset,
                                                                                     long limit)
                                                                              throws java.sql.SQLException

Specified by:
getRoleTypes in interface IQueryProcessor
Overrides:
getRoleTypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getTopicTypes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getTopicTypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                      long offset,
                                                                                      long limit)
                                                                               throws java.sql.SQLException

Specified by:
getTopicTypes in interface IQueryProcessor
Overrides:
getTopicTypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getAssociationsByType

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> getAssociationsByType(de.topicmapslab.majortom.model.core.ITopic type,
                                                                                                    long offset,
                                                                                                    long limit)
                                                                                             throws java.sql.SQLException

Specified by:
getAssociationsByType in interface IQueryProcessor
Overrides:
getAssociationsByType in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getAssociationsByTypes

public <T extends org.tmapi.core.Topic> java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> getAssociationsByTypes(java.util.Collection<T> types,
                                                                                                                                      long offset,
                                                                                                                                      long limit)
                                                                                              throws java.sql.SQLException

Specified by:
getAssociationsByTypes in interface IQueryProcessor
Overrides:
getAssociationsByTypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getCharacteristicsByType

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsByType(de.topicmapslab.majortom.model.core.ITopic type,
                                                                                                           long offset,
                                                                                                           long limit)
                                                                                                    throws java.sql.SQLException

Specified by:
getCharacteristicsByType in interface IQueryProcessor
Overrides:
getCharacteristicsByType in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getCharacteristicsByTypes

public <T extends org.tmapi.core.Topic> java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsByTypes(java.util.Collection<T> types,
                                                                                                                                             long offset,
                                                                                                                                             long limit)
                                                                                                     throws java.sql.SQLException

Specified by:
getCharacteristicsByTypes in interface IQueryProcessor
Overrides:
getCharacteristicsByTypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getNamesByType

public java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNamesByType(de.topicmapslab.majortom.model.core.ITopic type,
                                                                                      long offset,
                                                                                      long limit)
                                                                               throws java.sql.SQLException

Specified by:
getNamesByType in interface IQueryProcessor
Overrides:
getNamesByType in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getNamesByTypes

public <T extends org.tmapi.core.Topic> java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNamesByTypes(java.util.Collection<T> types,
                                                                                                                        long offset,
                                                                                                                        long limit)
                                                                                throws java.sql.SQLException

Specified by:
getNamesByTypes in interface IQueryProcessor
Overrides:
getNamesByTypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getOccurrencesByType

public java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByType(de.topicmapslab.majortom.model.core.ITopic type,
                                                                                                  long offset,
                                                                                                  long limit)
                                                                                           throws java.sql.SQLException

Specified by:
getOccurrencesByType in interface IQueryProcessor
Overrides:
getOccurrencesByType in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getOccurrencesByTypes

public <T extends org.tmapi.core.Topic> java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByTypes(java.util.Collection<T> types,
                                                                                                                                    long offset,
                                                                                                                                    long limit)
                                                                                            throws java.sql.SQLException

Specified by:
getOccurrencesByTypes in interface IQueryProcessor
Overrides:
getOccurrencesByTypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getRolesByType

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociationRole> getRolesByType(de.topicmapslab.majortom.model.core.ITopic type,
                                                                                                 long offset,
                                                                                                 long limit)
                                                                                          throws java.sql.SQLException

Specified by:
getRolesByType in interface IQueryProcessor
Overrides:
getRolesByType in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getRolesByTypes

public <T extends org.tmapi.core.Topic> java.util.Collection<de.topicmapslab.majortom.model.core.IAssociationRole> getRolesByTypes(java.util.Collection<T> types,
                                                                                                                                   long offset,
                                                                                                                                   long limit)
                                                                                           throws java.sql.SQLException

Specified by:
getRolesByTypes in interface IQueryProcessor
Overrides:
getRolesByTypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getTopicsByTypes

public <T extends org.tmapi.core.Topic> java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getTopicsByTypes(java.util.Collection<T> types,
                                                                                                                          boolean all,
                                                                                                                          long offset,
                                                                                                                          long limit)
                                                                                  throws java.sql.SQLException

Specified by:
getTopicsByTypes in interface IQueryProcessor
Overrides:
getTopicsByTypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getTopicsByType

public <T extends org.tmapi.core.Topic> java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getTopicsByType(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                                         T type,
                                                                                                                         long offset,
                                                                                                                         long limit)
                                                                                 throws java.sql.SQLException

Specified by:
getTopicsByType in interface IQueryProcessor
Overrides:
getTopicsByType in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getAssociationsByTypeTransitive

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> getAssociationsByTypeTransitive(de.topicmapslab.majortom.model.core.ITopic type,
                                                                                                              long offset,
                                                                                                              long limit)
                                                                                                       throws java.sql.SQLException

Specified by:
getAssociationsByTypeTransitive in interface IQueryProcessor
Overrides:
getAssociationsByTypeTransitive in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getAssociationsByTypeTransitive

public <T extends org.tmapi.core.Topic> java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> getAssociationsByTypeTransitive(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                                                               java.util.Collection<T> types,
                                                                                                                                               long offset,
                                                                                                                                               long limit)
                                                                                                       throws java.sql.SQLException

Specified by:
getAssociationsByTypeTransitive in interface IQueryProcessor
Overrides:
getAssociationsByTypeTransitive in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getCharacteristicsByTypeTransitive

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsByTypeTransitive(de.topicmapslab.majortom.model.core.ITopic type,
                                                                                                                     long offset,
                                                                                                                     long limit)
                                                                                                              throws java.sql.SQLException

Specified by:
getCharacteristicsByTypeTransitive in interface IQueryProcessor
Overrides:
getCharacteristicsByTypeTransitive in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getCharacteristicsByTypesTransitive

public <T extends org.tmapi.core.Topic> java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsByTypesTransitive(java.util.Collection<T> types,
                                                                                                                                                       long offset,
                                                                                                                                                       long limit)
                                                                                                               throws java.sql.SQLException

Specified by:
getCharacteristicsByTypesTransitive in interface IQueryProcessor
Overrides:
getCharacteristicsByTypesTransitive in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getNamesByTypeTransitive

public java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNamesByTypeTransitive(de.topicmapslab.majortom.model.core.ITopic type,
                                                                                                long offset,
                                                                                                long limit)
                                                                                         throws java.sql.SQLException

Specified by:
getNamesByTypeTransitive in interface IQueryProcessor
Overrides:
getNamesByTypeTransitive in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getNamesByTypeTransitive

public <T extends org.tmapi.core.Topic> java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNamesByTypeTransitive(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                                                 java.util.Collection<T> types,
                                                                                                                                 long offset,
                                                                                                                                 long limit)
                                                                                         throws java.sql.SQLException

Specified by:
getNamesByTypeTransitive in interface IQueryProcessor
Overrides:
getNamesByTypeTransitive in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getOccurrencesByTypeTransitive

public java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByTypeTransitive(de.topicmapslab.majortom.model.core.ITopic type,
                                                                                                            long offset,
                                                                                                            long limit)
                                                                                                     throws java.sql.SQLException

Specified by:
getOccurrencesByTypeTransitive in interface IQueryProcessor
Overrides:
getOccurrencesByTypeTransitive in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getOccurrencesByTypeTransitive

public <T extends org.tmapi.core.Topic> java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByTypeTransitive(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                                                             java.util.Collection<T> types,
                                                                                                                                             long offset,
                                                                                                                                             long limit)
                                                                                                     throws java.sql.SQLException

Specified by:
getOccurrencesByTypeTransitive in interface IQueryProcessor
Overrides:
getOccurrencesByTypeTransitive in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getRolesByTypeTransitive

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociationRole> getRolesByTypeTransitive(de.topicmapslab.majortom.model.core.ITopic type,
                                                                                                           long offset,
                                                                                                           long limit)
                                                                                                    throws java.sql.SQLException

Specified by:
getRolesByTypeTransitive in interface IQueryProcessor
Overrides:
getRolesByTypeTransitive in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getRolesByTypeTransitive

public <T extends org.tmapi.core.Topic> java.util.Collection<de.topicmapslab.majortom.model.core.IAssociationRole> getRolesByTypeTransitive(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                                                            java.util.Collection<T> types,
                                                                                                                                            long offset,
                                                                                                                                            long limit)
                                                                                                    throws java.sql.SQLException

Specified by:
getRolesByTypeTransitive in interface IQueryProcessor
Overrides:
getRolesByTypeTransitive in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getTopicsByTypeTransitive

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getTopicsByTypeTransitive(de.topicmapslab.majortom.model.core.ITopic type,
                                                                                                  long offset,
                                                                                                  long limit)
                                                                                           throws java.sql.SQLException

Specified by:
getTopicsByTypeTransitive in interface IQueryProcessor
Overrides:
getTopicsByTypeTransitive in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getTopicsByTypesTransitive

public <T extends org.tmapi.core.Topic> java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getTopicsByTypesTransitive(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                                                    java.util.Collection<T> types,
                                                                                                                                    boolean all,
                                                                                                                                    long offset,
                                                                                                                                    long limit)
                                                                                            throws java.sql.SQLException

Specified by:
getTopicsByTypesTransitive in interface IQueryProcessor
Overrides:
getTopicsByTypesTransitive in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getScopesByThemes

public <T extends org.tmapi.core.Topic> java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getScopesByThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                                           java.util.Collection<T> themes,
                                                                                                                           boolean all)
                                                                                   throws java.sql.SQLException

Specified by:
getScopesByThemes in interface IQueryProcessor
Overrides:
getScopesByThemes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getAssociationsByScope

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> getAssociationsByScope(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                     de.topicmapslab.majortom.model.core.IScope scope,
                                                                                                     long offset,
                                                                                                     long limit)
                                                                                              throws java.sql.SQLException

Specified by:
getAssociationsByScope in interface IQueryProcessor
Overrides:
getAssociationsByScope in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getAssociationsByScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> getAssociationsByScopes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                      java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes,
                                                                                                      long offset,
                                                                                                      long limit)
                                                                                               throws java.sql.SQLException

Specified by:
getAssociationsByScopes in interface IQueryProcessor
Overrides:
getAssociationsByScopes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getAssociationsByTheme

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> getAssociationsByTheme(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                     org.tmapi.core.Topic theme,
                                                                                                     long offset,
                                                                                                     long limit)
                                                                                              throws java.sql.SQLException

Specified by:
getAssociationsByTheme in interface IQueryProcessor
Overrides:
getAssociationsByTheme in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getAssociationsByThemes

public java.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> getAssociationsByThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                      org.tmapi.core.Topic[] themes,
                                                                                                      boolean all,
                                                                                                      long offset,
                                                                                                      long limit)
                                                                                               throws java.sql.SQLException

Specified by:
getAssociationsByThemes in interface IQueryProcessor
Overrides:
getAssociationsByThemes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getAssociationScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getAssociationScopes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                             long offset,
                                                                                             long limit)
                                                                                      throws java.sql.SQLException

Specified by:
getAssociationScopes in interface IQueryProcessor
Overrides:
getAssociationScopes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getAssociationThemes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getAssociationThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                             long offset,
                                                                                             long limit)
                                                                                      throws java.sql.SQLException

Specified by:
getAssociationThemes in interface IQueryProcessor
Overrides:
getAssociationThemes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getCharacteristicsByScope

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsByScope(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                            de.topicmapslab.majortom.model.core.IScope scope,
                                                                                                            long offset,
                                                                                                            long limit)
                                                                                                     throws java.sql.SQLException

Specified by:
getCharacteristicsByScope in interface IQueryProcessor
Overrides:
getCharacteristicsByScope in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getNamesByScope

public java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNamesByScope(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                       de.topicmapslab.majortom.model.core.IScope scope,
                                                                                       long offset,
                                                                                       long limit)
                                                                                throws java.sql.SQLException

Specified by:
getNamesByScope in interface IQueryProcessor
Overrides:
getNamesByScope in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getNamesByScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNamesByScopes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                        java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes,
                                                                                        long offset,
                                                                                        long limit)
                                                                                 throws java.sql.SQLException

Specified by:
getNamesByScopes in interface IQueryProcessor
Overrides:
getNamesByScopes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getNamesByTheme

public java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNamesByTheme(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                       org.tmapi.core.Topic theme,
                                                                                       long offset,
                                                                                       long limit)
                                                                                throws java.sql.SQLException

Specified by:
getNamesByTheme in interface IQueryProcessor
Overrides:
getNamesByTheme in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getNamesByThemes

public java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNamesByThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                        org.tmapi.core.Topic[] themes,
                                                                                        boolean all,
                                                                                        long offset,
                                                                                        long limit)
                                                                                 throws java.sql.SQLException

Specified by:
getNamesByThemes in interface IQueryProcessor
Overrides:
getNamesByThemes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getNameScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getNameScopes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                      long offset,
                                                                                      long limit)
                                                                               throws java.sql.SQLException

Specified by:
getNameScopes in interface IQueryProcessor
Overrides:
getNameScopes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getNameThemes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getNameThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                      long offset,
                                                                                      long limit)
                                                                               throws java.sql.SQLException

Specified by:
getNameThemes in interface IQueryProcessor
Overrides:
getNameThemes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getOccurrencesByScope

public java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByScope(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                   de.topicmapslab.majortom.model.core.IScope scope,
                                                                                                   long offset,
                                                                                                   long limit)
                                                                                            throws java.sql.SQLException

Specified by:
getOccurrencesByScope in interface IQueryProcessor
Overrides:
getOccurrencesByScope in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getOccurrencesByScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByScopes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                    java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes,
                                                                                                    long offset,
                                                                                                    long limit)
                                                                                             throws java.sql.SQLException

Specified by:
getOccurrencesByScopes in interface IQueryProcessor
Overrides:
getOccurrencesByScopes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getOccurrencesByTheme

public java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByTheme(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                   org.tmapi.core.Topic theme,
                                                                                                   long offset,
                                                                                                   long limit)
                                                                                            throws java.sql.SQLException

Specified by:
getOccurrencesByTheme in interface IQueryProcessor
Overrides:
getOccurrencesByTheme in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getOccurrencesByThemes

public java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                    org.tmapi.core.Topic[] themes,
                                                                                                    boolean all,
                                                                                                    long offset,
                                                                                                    long limit)
                                                                                             throws java.sql.SQLException

Specified by:
getOccurrencesByThemes in interface IQueryProcessor
Overrides:
getOccurrencesByThemes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getOccurrenceScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getOccurrenceScopes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                            long offset,
                                                                                            long limit)
                                                                                     throws java.sql.SQLException

Specified by:
getOccurrenceScopes in interface IQueryProcessor
Overrides:
getOccurrenceScopes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getOccurrenceThemes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getOccurrenceThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                            long offset,
                                                                                            long limit)
                                                                                     throws java.sql.SQLException

Specified by:
getOccurrenceThemes in interface IQueryProcessor
Overrides:
getOccurrenceThemes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getScopables

public java.util.Collection<de.topicmapslab.majortom.model.core.IScopable> getScopables(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                        de.topicmapslab.majortom.model.core.IScope scope,
                                                                                        long offset,
                                                                                        long limit)
                                                                                 throws java.sql.SQLException

Specified by:
getScopables in interface IQueryProcessor
Overrides:
getScopables in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getVariantsByScope

public java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariantsByScope(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                             de.topicmapslab.majortom.model.core.IScope scope,
                                                                                             long offset,
                                                                                             long limit)
                                                                                      throws java.sql.SQLException

Specified by:
getVariantsByScope in interface IQueryProcessor
Overrides:
getVariantsByScope in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getVariantsByScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariantsByScopes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                              java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes,
                                                                                              long offset,
                                                                                              long limit)
                                                                                       throws java.sql.SQLException

Specified by:
getVariantsByScopes in interface IQueryProcessor
Overrides:
getVariantsByScopes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getVariantsByTheme

public java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariantsByTheme(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                             org.tmapi.core.Topic theme,
                                                                                             long offset,
                                                                                             long limit)
                                                                                      throws java.sql.SQLException

Specified by:
getVariantsByTheme in interface IQueryProcessor
Overrides:
getVariantsByTheme in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getVariantsByThemes

public java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariantsByThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                              org.tmapi.core.Topic[] themes,
                                                                                              boolean all,
                                                                                              long offset,
                                                                                              long limit)
                                                                                       throws java.sql.SQLException

Specified by:
getVariantsByThemes in interface IQueryProcessor
Overrides:
getVariantsByThemes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getVariantScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getVariantScopes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                         long offset,
                                                                                         long limit)
                                                                                  throws java.sql.SQLException

Specified by:
getVariantScopes in interface IQueryProcessor
Overrides:
getVariantScopes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getVariantThemes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getVariantThemes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                         long offset,
                                                                                         long limit)
                                                                                  throws java.sql.SQLException

Specified by:
getVariantThemes in interface IQueryProcessor
Overrides:
getVariantThemes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                     java.lang.String value,
                                                                                                     java.lang.String reference,
                                                                                                     long offset,
                                                                                                     long limit)
                                                                                              throws java.sql.SQLException

Specified by:
getCharacteristics in interface IQueryProcessor
Overrides:
getCharacteristics in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                     java.lang.String value,
                                                                                                     long offset,
                                                                                                     long limit)
                                                                                              throws java.sql.SQLException

Specified by:
getCharacteristics in interface IQueryProcessor
Overrides:
getCharacteristics in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getCharacteristicsByDatatype

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsByDatatype(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                               java.lang.String reference,
                                                                                                               long offset,
                                                                                                               long limit)
                                                                                                        throws java.sql.SQLException

Specified by:
getCharacteristicsByDatatype in interface IQueryProcessor
Overrides:
getCharacteristicsByDatatype in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getCharacteristicsByPattern

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsByPattern(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                              java.lang.String value,
                                                                                                              long offset,
                                                                                                              long limit)
                                                                                                       throws java.sql.SQLException

Specified by:
getCharacteristicsByPattern in interface IQueryProcessor
Overrides:
getCharacteristicsByPattern in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getCharacteristicsByPattern

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristicsByPattern(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                              java.lang.String value,
                                                                                                              java.lang.String reference,
                                                                                                              long offset,
                                                                                                              long limit)
                                                                                                       throws java.sql.SQLException

Specified by:
getCharacteristicsByPattern in interface IQueryProcessor
Overrides:
getCharacteristicsByPattern in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getDatatypeAwaresByDatatype

public java.util.Collection<de.topicmapslab.majortom.model.core.IDatatypeAware> getDatatypeAwaresByDatatype(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                            java.lang.String reference,
                                                                                                            long offset,
                                                                                                            long limit)
                                                                                                     throws java.sql.SQLException

Specified by:
getDatatypeAwaresByDatatype in interface IQueryProcessor
Overrides:
getDatatypeAwaresByDatatype in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getNames

public java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNames(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                long offset,
                                                                                long limit)
                                                                         throws java.sql.SQLException

Specified by:
getNames in interface IQueryProcessor
Overrides:
getNames in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getNames

public java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNames(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                java.lang.String value)
                                                                         throws java.sql.SQLException

Specified by:
getNames in interface IQueryProcessor
Overrides:
getNames in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getNamesByPattern

public java.util.Collection<de.topicmapslab.majortom.model.core.IName> getNamesByPattern(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                         java.lang.String pattern)
                                                                                  throws java.sql.SQLException

Specified by:
getNamesByPattern in interface IQueryProcessor
Overrides:
getNamesByPattern in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getOccurrences

public java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrences(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                            long offset,
                                                                                            long limit)
                                                                                     throws java.sql.SQLException

Specified by:
getOccurrences in interface IQueryProcessor
Overrides:
getOccurrences in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getOccurrences

public java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrences(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                            java.util.Calendar lower,
                                                                                            java.util.Calendar upper,
                                                                                            long offset,
                                                                                            long limit)
                                                                                     throws java.sql.SQLException

Specified by:
getOccurrences in interface IQueryProcessor
Overrides:
getOccurrences in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getOccurrences

public java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrences(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                            double value,
                                                                                            double deviance,
                                                                                            java.lang.String reference,
                                                                                            long offset,
                                                                                            long limit)
                                                                                     throws java.sql.SQLException

Specified by:
getOccurrences in interface IQueryProcessor
Overrides:
getOccurrences in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getOccurrences

public java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrences(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                            java.lang.String value)
                                                                                     throws java.sql.SQLException

Specified by:
getOccurrences in interface IQueryProcessor
Overrides:
getOccurrences in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getOccurrences

public java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrences(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                            java.lang.String value,
                                                                                            java.lang.String reference,
                                                                                            long offset,
                                                                                            long limit)
                                                                                     throws java.sql.SQLException

Specified by:
getOccurrences in interface IQueryProcessor
Overrides:
getOccurrences in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getOccurrencesByDatatype

public java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByDatatype(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                      java.lang.String reference,
                                                                                                      long offset,
                                                                                                      long limit)
                                                                                               throws java.sql.SQLException

Specified by:
getOccurrencesByDatatype in interface IQueryProcessor
Overrides:
getOccurrencesByDatatype in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getOccurrencesByPattern

public java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByPattern(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                     java.lang.String pattern)
                                                                                              throws java.sql.SQLException

Specified by:
getOccurrencesByPattern in interface IQueryProcessor
Overrides:
getOccurrencesByPattern in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getOccurrencesByPattern

public java.util.Collection<de.topicmapslab.majortom.model.core.IOccurrence> getOccurrencesByPattern(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                     java.lang.String pattern,
                                                                                                     java.lang.String reference)
                                                                                              throws java.sql.SQLException

Specified by:
getOccurrencesByPattern in interface IQueryProcessor
Overrides:
getOccurrencesByPattern in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getVariants

public java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariants(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                      long offset,
                                                                                      long limit)
                                                                               throws java.sql.SQLException

Specified by:
getVariants in interface IQueryProcessor
Overrides:
getVariants in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getVariants

public java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariants(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                      java.lang.String value)
                                                                               throws java.sql.SQLException

Specified by:
getVariants in interface IQueryProcessor
Overrides:
getVariants in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getVariants

public java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariants(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                      java.lang.String value,
                                                                                      java.lang.String reference)
                                                                               throws java.sql.SQLException

Specified by:
getVariants in interface IQueryProcessor
Overrides:
getVariants in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getVariantsByDatatype

public java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariantsByDatatype(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                java.lang.String reference)
                                                                                         throws java.sql.SQLException

Specified by:
getVariantsByDatatype in interface IQueryProcessor
Overrides:
getVariantsByDatatype in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getVariantByPattern

public java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariantByPattern(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                              java.lang.String pattern)
                                                                                       throws java.sql.SQLException

Specified by:
getVariantByPattern in interface IQueryProcessor
Overrides:
getVariantByPattern in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getVariantsByPattern

public java.util.Collection<de.topicmapslab.majortom.model.core.IVariant> getVariantsByPattern(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                               java.lang.String pattern,
                                                                                               java.lang.String reference)
                                                                                        throws java.sql.SQLException

Specified by:
getVariantsByPattern in interface IQueryProcessor
Overrides:
getVariantsByPattern in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getItemIdentifiers

public java.util.Collection<de.topicmapslab.majortom.model.core.ILocator> getItemIdentifiers(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                             long offset,
                                                                                             long limit)
                                                                                      throws java.sql.SQLException

Specified by:
getItemIdentifiers in interface IQueryProcessor
Overrides:
getItemIdentifiers in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getSubjectIdentifiers

public java.util.Collection<de.topicmapslab.majortom.model.core.ILocator> getSubjectIdentifiers(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                long offset,
                                                                                                long limit)
                                                                                         throws java.sql.SQLException

Specified by:
getSubjectIdentifiers in interface IQueryProcessor
Overrides:
getSubjectIdentifiers in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getSubjectLocators

public java.util.Collection<de.topicmapslab.majortom.model.core.ILocator> getSubjectLocators(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                             long offset,
                                                                                             long limit)
                                                                                      throws java.sql.SQLException

Specified by:
getSubjectLocators in interface IQueryProcessor
Overrides:
getSubjectLocators in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getConstructsByIdentitifer

public java.util.Collection<de.topicmapslab.majortom.model.core.IConstruct> getConstructsByIdentitifer(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                       java.lang.String regExp,
                                                                                                       long offset,
                                                                                                       long limit)
                                                                                                throws java.sql.SQLException

Specified by:
getConstructsByIdentitifer in interface IQueryProcessor
Overrides:
getConstructsByIdentitifer in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getConstructsByItemIdentitifer

public java.util.Collection<de.topicmapslab.majortom.model.core.IConstruct> getConstructsByItemIdentitifer(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                           java.lang.String regExp,
                                                                                                           long offset,
                                                                                                           long limit)
                                                                                                    throws java.sql.SQLException

Specified by:
getConstructsByItemIdentitifer in interface IQueryProcessor
Overrides:
getConstructsByItemIdentitifer in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getTopicsBySubjectIdentitifer

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getTopicsBySubjectIdentitifer(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                      java.lang.String regExp,
                                                                                                      long offset,
                                                                                                      long limit)
                                                                                               throws java.sql.SQLException

Specified by:
getTopicsBySubjectIdentitifer in interface IQueryProcessor
Overrides:
getTopicsBySubjectIdentitifer in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getTopicsBySubjectLocator

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getTopicsBySubjectLocator(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                  java.lang.String regExp,
                                                                                                  long offset,
                                                                                                  long limit)
                                                                                           throws java.sql.SQLException

Specified by:
getTopicsBySubjectLocator in interface IQueryProcessor
Overrides:
getTopicsBySubjectLocator in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getDirectSubtypes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getDirectSubtypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                          de.topicmapslab.majortom.model.core.ITopic type,
                                                                                          long offset,
                                                                                          long limit)
                                                                                   throws java.sql.SQLException

Specified by:
getDirectSubtypes in interface IQueryProcessor
Overrides:
getDirectSubtypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getDirectSupertypes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getDirectSupertypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                            de.topicmapslab.majortom.model.core.ITopic type,
                                                                                            long offset,
                                                                                            long limit)
                                                                                     throws java.sql.SQLException

Specified by:
getDirectSupertypes in interface IQueryProcessor
Overrides:
getDirectSupertypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getSubtypes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getSubtypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                    de.topicmapslab.majortom.model.core.ITopic type,
                                                                                    long offset,
                                                                                    long limit)
                                                                             throws java.sql.SQLException

Specified by:
getSubtypes in interface IQueryProcessor
Overrides:
getSubtypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getSubtypes

private java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getSubtypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                     de.topicmapslab.majortom.model.core.ITopic type,
                                                                                     java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> knownSubtypes)
                                                                              throws java.sql.SQLException
Throws:
java.sql.SQLException

getSubtypes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getSubtypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                    long offset,
                                                                                    long limit)
                                                                             throws java.sql.SQLException

Specified by:
getSubtypes in interface IQueryProcessor
Overrides:
getSubtypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getSubtypes

public <T extends org.tmapi.core.Topic> java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getSubtypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                                     java.util.Collection<T> types,
                                                                                                                     boolean matchAll,
                                                                                                                     long offset,
                                                                                                                     long limit)
                                                                             throws java.sql.SQLException

Specified by:
getSubtypes in interface IQueryProcessor
Overrides:
getSubtypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getSupertypes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getSupertypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                      de.topicmapslab.majortom.model.core.ITopic type,
                                                                                      long offset,
                                                                                      long limit)
                                                                               throws java.sql.SQLException

Specified by:
getSupertypes in interface IQueryProcessor
Overrides:
getSupertypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getSupertypes

private java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getSupertypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                       de.topicmapslab.majortom.model.core.ITopic type,
                                                                                       java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> knownSupertypes)
                                                                                throws java.sql.SQLException
Returns all super-types of the given topic type.

Parameters:
topicMap - the topic map
type - the type
knownSupertypes - a collection containing all known super-types to avoid cycles
Returns:
a collection of all transitive supertypes of the given type
Throws:
java.sql.SQLException - thrown by JDBC

getSupertypes

public java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getSupertypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                      long offset,
                                                                                      long limit)
                                                                               throws java.sql.SQLException

Specified by:
getSupertypes in interface IQueryProcessor
Overrides:
getSupertypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getSupertypes

public <T extends org.tmapi.core.Topic> java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> getSupertypes(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                                                       java.util.Collection<T> types,
                                                                                                                       boolean matchAll,
                                                                                                                       long offset,
                                                                                                                       long limit)
                                                                               throws java.sql.SQLException

Specified by:
getSupertypes in interface IQueryProcessor
Overrides:
getSupertypes in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateRevision

public de.topicmapslab.majortom.model.revision.IRevision doCreateRevision(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                          de.topicmapslab.majortom.model.event.TopicMapEventType type)
                                                                   throws java.sql.SQLException

Specified by:
doCreateRevision in interface IQueryProcessor
Overrides:
doCreateRevision in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateChangeSet

public void doCreateChangeSet(de.topicmapslab.majortom.model.revision.IRevision revision,
                              de.topicmapslab.majortom.model.event.TopicMapEventType type,
                              de.topicmapslab.majortom.model.core.IConstruct notifier,
                              java.lang.Object newValue,
                              java.lang.Object oldValue)
                       throws java.sql.SQLException

Specified by:
doCreateChangeSet in interface IQueryProcessor
Overrides:
doCreateChangeSet in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateTag

public void doCreateTag(java.lang.String tag,
                        java.util.Calendar time)
                 throws java.sql.SQLException

Specified by:
doCreateTag in interface IQueryProcessor
Overrides:
doCreateTag in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doCreateMetadata

public void doCreateMetadata(de.topicmapslab.majortom.model.revision.IRevision revision,
                             java.lang.String key,
                             java.lang.String value)
                      throws java.sql.SQLException

Specified by:
doCreateMetadata in interface IQueryProcessor
Overrides:
doCreateMetadata in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadChangeset

public de.topicmapslab.majortom.model.revision.Changeset doReadChangeset(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                         de.topicmapslab.majortom.model.revision.IRevision revision)
                                                                  throws java.sql.SQLException

Specified by:
doReadChangeset in interface IQueryProcessor
Overrides:
doReadChangeset in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadChangesetType

public de.topicmapslab.majortom.model.event.TopicMapEventType doReadChangesetType(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                  de.topicmapslab.majortom.model.revision.IRevision revision)
                                                                           throws java.sql.SQLException

Specified by:
doReadChangesetType in interface IQueryProcessor
Overrides:
doReadChangesetType in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadChangesetsByAssociationType

public de.topicmapslab.majortom.model.revision.Changeset doReadChangesetsByAssociationType(de.topicmapslab.majortom.model.core.ITopic type)
                                                                                    throws java.sql.SQLException

Specified by:
doReadChangesetsByAssociationType in interface IQueryProcessor
Overrides:
doReadChangesetsByAssociationType in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadChangesetsByTopic

public de.topicmapslab.majortom.model.revision.Changeset doReadChangesetsByTopic(de.topicmapslab.majortom.model.core.ITopic topic)
                                                                          throws java.sql.SQLException

Specified by:
doReadChangesetsByTopic in interface IQueryProcessor
Overrides:
doReadChangesetsByTopic in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadFirstRevision

public de.topicmapslab.majortom.model.revision.IRevision doReadFirstRevision(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
                                                                      throws java.sql.SQLException

Specified by:
doReadFirstRevision in interface IQueryProcessor
Overrides:
doReadFirstRevision in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadFutureRevision

public de.topicmapslab.majortom.model.revision.IRevision doReadFutureRevision(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                              de.topicmapslab.majortom.model.revision.IRevision revision)
                                                                       throws java.sql.SQLException

Specified by:
doReadFutureRevision in interface IQueryProcessor
Overrides:
doReadFutureRevision in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadLastModification

public java.util.Calendar doReadLastModification(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
                                          throws java.sql.SQLException

Specified by:
doReadLastModification in interface IQueryProcessor
Overrides:
doReadLastModification in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadLastModificationOfTopic

public java.util.Calendar doReadLastModificationOfTopic(de.topicmapslab.majortom.model.core.ITopic topic)
                                                 throws java.sql.SQLException

Specified by:
doReadLastModificationOfTopic in interface IQueryProcessor
Overrides:
doReadLastModificationOfTopic in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadLastRevision

public de.topicmapslab.majortom.model.revision.IRevision doReadLastRevision(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
                                                                     throws java.sql.SQLException

Specified by:
doReadLastRevision in interface IQueryProcessor
Overrides:
doReadLastRevision in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadPastRevision

public de.topicmapslab.majortom.model.revision.IRevision doReadPastRevision(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                            de.topicmapslab.majortom.model.revision.IRevision revision)
                                                                     throws java.sql.SQLException

Specified by:
doReadPastRevision in interface IQueryProcessor
Overrides:
doReadPastRevision in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadRevisionsByAssociationType

public java.util.List<de.topicmapslab.majortom.model.revision.IRevision> doReadRevisionsByAssociationType(de.topicmapslab.majortom.model.core.ITopic type)
                                                                                                   throws java.sql.SQLException

Specified by:
doReadRevisionsByAssociationType in interface IQueryProcessor
Overrides:
doReadRevisionsByAssociationType in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadRevisionsByTopic

public java.util.List<de.topicmapslab.majortom.model.revision.IRevision> doReadRevisionsByTopic(de.topicmapslab.majortom.model.core.ITopic topic)
                                                                                         throws java.sql.SQLException

Specified by:
doReadRevisionsByTopic in interface IQueryProcessor
Overrides:
doReadRevisionsByTopic in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadTimestamp

public java.util.Calendar doReadTimestamp(de.topicmapslab.majortom.model.revision.IRevision revision)
                                   throws java.sql.SQLException

Specified by:
doReadTimestamp in interface IQueryProcessor
Overrides:
doReadTimestamp in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadRevisionByTag

public de.topicmapslab.majortom.model.revision.IRevision doReadRevisionByTag(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                             java.lang.String tag)
                                                                      throws java.sql.SQLException

Specified by:
doReadRevisionByTag in interface IQueryProcessor
Overrides:
doReadRevisionByTag in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadRevisionByTimestamp

public de.topicmapslab.majortom.model.revision.IRevision doReadRevisionByTimestamp(de.topicmapslab.majortom.model.core.ITopicMap topicMap,
                                                                                   java.util.Calendar time)
                                                                            throws java.sql.SQLException

Specified by:
doReadRevisionByTimestamp in interface IQueryProcessor
Overrides:
doReadRevisionByTimestamp in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadMetadata

public java.util.Map<java.lang.String,java.lang.String> doReadMetadata(de.topicmapslab.majortom.model.revision.IRevision revision)
                                                                throws java.sql.SQLException

Specified by:
doReadMetadata in interface IQueryProcessor
Overrides:
doReadMetadata in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadMetadataByKey

public java.lang.String doReadMetadataByKey(de.topicmapslab.majortom.model.revision.IRevision revision,
                                            java.lang.String key)
                                     throws java.sql.SQLException

Specified by:
doReadMetadataByKey in interface IQueryProcessor
Overrides:
doReadMetadataByKey in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadBestLabel

public java.lang.String doReadBestLabel(de.topicmapslab.majortom.model.core.ITopic topic)
                                 throws java.sql.SQLException
Returns the best label for the current topic instance. The best label will be identified satisfying the following rules in the given order.

1. Names of the default name type are weighted higher than names of other types.

2. Names with the unconstrained scope are weighted higher than other scoped names.

3. Names with a smaller number of scoping themes are weighted higher than others.

4. Names with a lexicographically smaller value are weighted higher than others.

5. If no names are existing, the subject-identifier with the lexicographically smallest reference are returned.

6. If no subject-identifiers are existing, the subject-locators with the lexicographically smallest reference are returned.

7. If no subject-locators are existing, the item-identifier with the lexicographically smallest reference are returned.

8. At least the ID of the topic will be returned.

Specified by:
doReadBestLabel in interface IQueryProcessor
Overrides:
doReadBestLabel in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadBestLabel

public java.lang.String doReadBestLabel(de.topicmapslab.majortom.model.core.ITopic topic,
                                        de.topicmapslab.majortom.model.core.ITopic theme,
                                        boolean strict)
                                 throws java.sql.SQLException
Returns the best label for the current topic instance. The best label will be identified satisfying the following rules in the given order.

1. Names of the default name type are weighted higher than names of other types.

2. Names with the unconstrained scope are weighted higher than other scoped names.

3. Names with a smaller number of scoping themes are weighted higher than others.

4. Names with a lexicographically smaller value are weighted higher than others.

5. If no names are existing, the subject-identifier with the lexicographically smallest reference are returned.

6. If no subject-identifiers are existing, the subject-locators with the lexicographically smallest reference are returned.

7. If no subject-locators are existing, the item-identifier with the lexicographically smallest reference are returned.

8. At least the ID of the topic will be returned.

Specified by:
doReadBestLabel in interface IQueryProcessor
Overrides:
doReadBestLabel in class RDBMSQueryProcessor
strict - if there is no name with the given theme and strict is true, then null will be returned.
Throws:
java.sql.SQLException

filterByDefaultNameType

private java.util.Collection<de.topicmapslab.majortom.model.core.IName> filterByDefaultNameType(de.topicmapslab.majortom.model.core.ITopic topic,
                                                                                                java.util.Collection<de.topicmapslab.majortom.model.core.IName> names)
                                                                                         throws java.sql.SQLException
Filter the given names list by the default name type.

Parameters:
topic - the parent topic
names - the names of the topic
Returns:
the filtered names or the given collection, if the topic does not contain at least one default-typed name
Throws:
java.sql.SQLException - thrown by SQL processor

readBestName

private java.lang.String readBestName(de.topicmapslab.majortom.model.core.ITopic topic,
                                      de.topicmapslab.majortom.model.core.ITopic theme,
                                      java.util.Collection<de.topicmapslab.majortom.model.core.IName> names,
                                      boolean strict)
                               throws java.sql.SQLException
Internal best label method only check name attributes.

Parameters:
topic - the topic
theme - the theme
set - the non-empty set of names
strict - if there is no name with the given theme and strict is true, then null will be returned.
Returns:
the best name
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException - thrown if operation fails
java.sql.SQLException

readBestName

private java.lang.String readBestName(de.topicmapslab.majortom.model.core.ITopic topic,
                                      java.util.Collection<de.topicmapslab.majortom.model.core.IName> names)
                               throws java.sql.SQLException
Internal best label method only check name attributes.

Parameters:
topic - the topic
set - the non-empty set of names
Returns:
the best name
Throws:
java.sql.SQLException - thrown if operation fails

readBestIdentifier

private java.lang.String readBestIdentifier(de.topicmapslab.majortom.model.core.ITopic topic)
                                     throws java.sql.SQLException
Internal best label method only check identifier attribute.

Parameters:
topic - the topic
Returns:
the best identifier
Throws:
java.sql.SQLException - thrown if operation fails

dump

public void dump(de.topicmapslab.majortom.model.revision.IRevision revision,
                 de.topicmapslab.majortom.model.core.IAssociationRole role)
          throws java.sql.SQLException

Specified by:
dump in interface IQueryProcessor
Overrides:
dump in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

dump

public void dump(de.topicmapslab.majortom.model.revision.IRevision revision,
                 de.topicmapslab.majortom.model.core.IAssociation association)
          throws java.sql.SQLException

Specified by:
dump in interface IQueryProcessor
Overrides:
dump in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

dump

public void dump(de.topicmapslab.majortom.model.revision.IRevision revision,
                 de.topicmapslab.majortom.model.core.IVariant variant)
          throws java.sql.SQLException

Specified by:
dump in interface IQueryProcessor
Overrides:
dump in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

dump

public void dump(de.topicmapslab.majortom.model.revision.IRevision revision,
                 de.topicmapslab.majortom.model.core.IName name)
          throws java.sql.SQLException

Specified by:
dump in interface IQueryProcessor
Overrides:
dump in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

dump

public void dump(de.topicmapslab.majortom.model.revision.IRevision revision,
                 de.topicmapslab.majortom.model.core.IOccurrence occurrence)
          throws java.sql.SQLException

Specified by:
dump in interface IQueryProcessor
Overrides:
dump in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

dump

public void dump(de.topicmapslab.majortom.model.revision.IRevision revision,
                 de.topicmapslab.majortom.model.core.ITopic topic)
          throws java.sql.SQLException

Specified by:
dump in interface IQueryProcessor
Overrides:
dump in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

doReadHistory

public java.util.Map<de.topicmapslab.majortom.model.store.TopicMapStoreParameterType,java.lang.Object> doReadHistory(de.topicmapslab.majortom.model.core.IConstruct c,
                                                                                                                     de.topicmapslab.majortom.model.store.TopicMapStoreParameterType... arguments)
                                                                                                              throws java.sql.SQLException

Specified by:
doReadHistory in interface IQueryProcessor
Overrides:
doReadHistory in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

readHistoryConstruct

protected final de.topicmapslab.majortom.model.core.IConstruct readHistoryConstruct(long id)
                                                                             throws java.sql.SQLException
Method read the construct with the given id from history

Overrides:
readHistoryConstruct in class RDBMSQueryProcessor
Parameters:
id - the construct id
Returns:
the read only construct
Throws:
java.sql.SQLException

asReadOnlyConstruct

private final de.topicmapslab.majortom.model.core.IConstruct asReadOnlyConstruct(de.topicmapslab.majortom.model.core.IConstruct c)
Method converts the given construct to a read-only construct.

Parameters:
c - the construct
Returns:
the read-only construct

openTransaction

public void openTransaction()
                     throws java.sql.SQLException

Specified by:
openTransaction in interface IQueryProcessor
Overrides:
openTransaction in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

commit

public void commit()
            throws java.sql.SQLException

Specified by:
commit in interface IQueryProcessor
Overrides:
commit in class RDBMSQueryProcessor
Throws:
java.sql.SQLException

getLocators

public java.util.Set<de.topicmapslab.majortom.model.core.ILocator> getLocators()
                                                                        throws java.sql.SQLException
Method to load all topic map locators from database

Specified by:
getLocators in interface IQueryProcessor
Overrides:
getLocators in class RDBMSQueryProcessor
Returns:
Throws:
java.sql.SQLException