de.topicmapslab.majortom.database.jdbc.rdbms
Class RDBMSQueryProcessor

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

public class RDBMSQueryProcessor
extends java.lang.Object
implements IQueryProcessor

Author:
Sven Krosse

Field Summary
private  java.sql.Connection connection
           
private  int doRemoveTopicDepth
           
static java.lang.String GENERATED_KEY_COLUMN_NAME
           
private static java.lang.String ID_PREFIX
           
private static java.lang.String ITEMIDENTIFIER_PREFIX
           
private  RDBMSQueryBuilder queryBuilder
           
private  RDBMSSession session
           
private static java.lang.String SUBJECTIDENTIFIER_PREFIX
           
private static java.lang.String SUBJECTLOCATOR_PREFIX
           
 
Constructor Summary
RDBMSQueryProcessor(RDBMSSession 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.
 boolean canPerformRemoveDuplicates()
          Checks if the query processor supports a database supported remove-duplicates function
 void close()
          
 void commit()
          
protected  RDBMSQueryBuilder 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.util.Collection<de.topicmapslab.majortom.model.core.IAssociation> doReadAssociation(de.topicmapslab.majortom.model.core.ITopicMap tm, long offset, long limit)
          
 java.lang.String doReadBestIdentifier(de.topicmapslab.majortom.model.core.ITopic topic, boolean withPrefix)
          Returns the best and stable identifier of the topic.
 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 doReadNumberOfAssociations()
          
 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 doReadNumberOfTopics()
          
 java.lang.Long doReadNumberOfTopics(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
           
 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)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ITopic> doReadTopics(de.topicmapslab.majortom.model.core.ITopicMap t, long offset, long limit)
          
 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 doRemoveDuplicates()
          Method calls the database supported remove-duplicates function if it exists.
 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 doRemoveScope(de.topicmapslab.majortom.model.core.IScope s)
           
 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)
          
 void dumpFallback(de.topicmapslab.majortom.model.revision.IRevision revision, de.topicmapslab.majortom.model.core.IAssociation association)
           
 void dumpFallback(de.topicmapslab.majortom.model.revision.IRevision revision, de.topicmapslab.majortom.model.core.IAssociationRole role)
           
 void dumpFallback(de.topicmapslab.majortom.model.revision.IRevision revision, de.topicmapslab.majortom.model.core.IName name)
           
 void dumpFallback(de.topicmapslab.majortom.model.revision.IRevision revision, de.topicmapslab.majortom.model.core.IOccurrence occurrence)
           
 void dumpFallback(de.topicmapslab.majortom.model.revision.IRevision revision, de.topicmapslab.majortom.model.core.ITopic topic)
           
 void dumpFallback(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.sql.Connection getConnection()
          Returns the internal connection
 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)
          
protected  RDBMSQueryBuilder getQueryBuilder()
          Returns the query builder
 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)
          
 RDBMSSession getSession()
          Returns the session of the query processor instance
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUBJECTIDENTIFIER_PREFIX

private static final java.lang.String SUBJECTIDENTIFIER_PREFIX
See Also:
Constant Field Values

SUBJECTLOCATOR_PREFIX

private static final java.lang.String SUBJECTLOCATOR_PREFIX
See Also:
Constant Field Values

ITEMIDENTIFIER_PREFIX

private static final java.lang.String ITEMIDENTIFIER_PREFIX
See Also:
Constant Field Values

ID_PREFIX

private static final java.lang.String ID_PREFIX
See Also:
Constant Field Values

GENERATED_KEY_COLUMN_NAME

public static java.lang.String GENERATED_KEY_COLUMN_NAME

queryBuilder

private final RDBMSQueryBuilder queryBuilder

session

private final RDBMSSession session

connection

private final java.sql.Connection connection

doRemoveTopicDepth

private int doRemoveTopicDepth
Constructor Detail

RDBMSQueryProcessor

public RDBMSQueryProcessor(RDBMSSession session,
                           java.sql.Connection connection)
constructor

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

createQueryBuilder

protected RDBMSQueryBuilder createQueryBuilder()
Creates the query builder

Returns:
the query builder

getQueryBuilder

protected RDBMSQueryBuilder getQueryBuilder()
Returns the query builder

Returns:
the query builder

getSession

public RDBMSSession getSession()
Returns the session of the query processor instance

Specified by:
getSession in interface IQueryProcessor
Returns:
the session

getConnection

public java.sql.Connection getConnection()
Returns the internal connection

Specified by:
getConnection in interface IQueryProcessor
Returns:
the connection the connection

close

public void close()

Specified by:
close in interface IQueryProcessor

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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Throws:
java.sql.SQLException

doReadNumberOfTopics

public java.lang.Long doReadNumberOfTopics(de.topicmapslab.majortom.model.core.ITopicMap topicMap)
                                    throws java.sql.SQLException
Specified by:
doReadNumberOfTopics in interface IQueryProcessor
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
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
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
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
Throws:
java.sql.SQLException

doReadAssociation

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

Specified by:
doReadAssociation in interface IQueryProcessor
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Throws:
java.sql.SQLException

doReadTopics

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

Specified by:
doReadTopics in interface IQueryProcessor
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
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
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
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
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
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
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
Throws:
java.sql.SQLException

doReadBestIdentifier

public java.lang.String doReadBestIdentifier(de.topicmapslab.majortom.model.core.ITopic topic,
                                             boolean withPrefix)
                                      throws java.sql.SQLException
Returns the best and stable identifier of the topic. The best identifier will be extracted by following rules.

1. Identifiers are weighted by its types in the following order subject-identifier, subject-locator and item-identifier.

2. If there are more than one identifier of the same type, the shortest will be returned.

3. If there are more than one identifier with the same length, the lexicographically smallest will be returned.

Specified by:
doReadBestIdentifier in interface IQueryProcessor
Parameters:
topic - the topic
withPrefix - flag indicates if the returned identifier will be prefixed with its type. Subject-identifier( si:), subject-locator(sl:) or item-identifier(ii:).
Returns:
the best identifier or the id if the topic has no identifiers
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
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
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

doRemoveAssociation

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

Specified by:
doRemoveAssociation in interface IQueryProcessor
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Parameters:
topic - the topic
cascade - the cascading flag
revision - the revision
Throws:
java.sql.SQLException - thrown if the JDBC command fails

doRemoveScope

public void doRemoveScope(de.topicmapslab.majortom.model.core.IScope s)
                   throws java.sql.SQLException
Throws:
java.sql.SQLException

doRemoveTopicMap

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

Specified by:
doRemoveTopicMap in interface IQueryProcessor
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
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
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
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
Throws:
java.sql.SQLException

doReadNumberOfAssociations

public long doReadNumberOfAssociations()
                                throws java.sql.SQLException

Specified by:
doReadNumberOfAssociations in interface IQueryProcessor
Throws:
java.sql.SQLException

doReadNumberOfTopics

public long doReadNumberOfTopics()
                          throws java.sql.SQLException

Specified by:
doReadNumberOfTopics in interface IQueryProcessor
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Throws:
java.sql.SQLException

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
Throws:
java.sql.SQLException

dumpFallback

public void dumpFallback(de.topicmapslab.majortom.model.revision.IRevision revision,
                         de.topicmapslab.majortom.model.core.IAssociationRole role)
                  throws java.sql.SQLException
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
Throws:
java.sql.SQLException

dumpFallback

public void dumpFallback(de.topicmapslab.majortom.model.revision.IRevision revision,
                         de.topicmapslab.majortom.model.core.IAssociation association)
                  throws java.sql.SQLException
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
Throws:
java.sql.SQLException

dumpFallback

public void dumpFallback(de.topicmapslab.majortom.model.revision.IRevision revision,
                         de.topicmapslab.majortom.model.core.IVariant variant)
                  throws java.sql.SQLException
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
Throws:
java.sql.SQLException

dumpFallback

public void dumpFallback(de.topicmapslab.majortom.model.revision.IRevision revision,
                         de.topicmapslab.majortom.model.core.IName name)
                  throws java.sql.SQLException
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
Throws:
java.sql.SQLException

dumpFallback

public void dumpFallback(de.topicmapslab.majortom.model.revision.IRevision revision,
                         de.topicmapslab.majortom.model.core.IOccurrence occurrence)
                  throws java.sql.SQLException
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
Throws:
java.sql.SQLException

dumpFallback

public void dumpFallback(de.topicmapslab.majortom.model.revision.IRevision revision,
                         de.topicmapslab.majortom.model.core.ITopic topic)
                  throws java.sql.SQLException
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
Throws:
java.sql.SQLException

readHistoryConstruct

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

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
Throws:
java.sql.SQLException

commit

public void commit()
            throws java.sql.SQLException

Specified by:
commit in interface IQueryProcessor
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
Returns:
Throws:
java.sql.SQLException

canPerformRemoveDuplicates

public boolean canPerformRemoveDuplicates()
Checks if the query processor supports a database supported remove-duplicates function

Specified by:
canPerformRemoveDuplicates in interface IQueryProcessor
Returns:
true if the database contains a function to handle remove duplicates, false otherwise.

doRemoveDuplicates

public void doRemoveDuplicates()
                        throws java.sql.SQLException,
                               java.lang.UnsupportedOperationException
Method calls the database supported remove-duplicates function if it exists.

Specified by:
doRemoveDuplicates in interface IQueryProcessor
Throws:
java.sql.SQLException - thrown during execution
java.lang.UnsupportedOperationException - throw if the function is not supported
See Also:
Method to check if function is supported