de.topicmapslab.majortom.database.jdbc.index
Class JdbcIdentityIndex

java.lang.Object
  extended by de.topicmapslab.majortom.index.IndexImpl<T>
      extended by de.topicmapslab.majortom.index.core.BaseCachedIndexImpl<T>
          extended by de.topicmapslab.majortom.index.core.BaseCachedIdentityIndexImpl<T>
              extended by de.topicmapslab.majortom.index.nonpaged.CachedIdentityIndexImpl<JdbcTopicMapStore>
                  extended by de.topicmapslab.majortom.database.jdbc.index.JdbcIdentityIndex
All Implemented Interfaces:
de.topicmapslab.majortom.model.event.ITopicMapListener, de.topicmapslab.majortom.model.index.IIdentityIndex, de.topicmapslab.majortom.model.index.IIndex, org.tmapi.index.Index

public class JdbcIdentityIndex
extends CachedIdentityIndexImpl<JdbcTopicMapStore>

Author:
Sven Krosse

Nested Class Summary
 
Nested classes/interfaces inherited from class de.topicmapslab.majortom.index.core.BaseCachedIdentityIndexImpl
BaseCachedIdentityIndexImpl.Type
 
Constructor Summary
JdbcIdentityIndex(JdbcTopicMapStore store)
          constructor
 
Method Summary
 java.util.Collection<org.tmapi.core.Construct> doGetConstructsByIdentifier(java.util.regex.Pattern regExp)
          Returning all constructs using an identifier matching the given regular expression.
 java.util.Collection<org.tmapi.core.Construct> doGetConstructsByIdentifier(java.lang.String regExp)
          
 java.util.Collection<org.tmapi.core.Construct> doGetConstructsByItemIdentifier(java.util.regex.Pattern regExp)
          Returning all constructs using an item-identifier matching the given regular expression.
 java.util.Collection<org.tmapi.core.Construct> doGetConstructsByItemIdentifier(java.lang.String regExp)
          
 java.util.Collection<org.tmapi.core.Locator> doGetItemIdentifiers()
          Return all item-identifiers used by any construct of the topic map.
 java.util.Collection<org.tmapi.core.Locator> doGetSubjectIdentifiers()
          Return all subject-identifiers used by any topic of the topic map.
 java.util.Collection<org.tmapi.core.Locator> doGetSubjectLocators()
          Return all subject-locators used by any topic of the topic map.
 java.util.Collection<org.tmapi.core.Topic> doGetTopicsBySubjectIdentifier(java.util.regex.Pattern regExp)
          Returning all topics using a subject-identifier matching the given regular expression.
 java.util.Collection<org.tmapi.core.Topic> doGetTopicsBySubjectIdentifier(java.lang.String regExp)
          
 java.util.Collection<org.tmapi.core.Topic> doGetTopicsBySubjectLocator(java.util.regex.Pattern regExp)
          Returning all topics using a subject-locator matching the given regular expression.
 java.util.Collection<org.tmapi.core.Topic> doGetTopicsBySubjectLocator(java.lang.String regExp)
          
 boolean existsIdentifier(org.tmapi.core.Locator locator)
          
 boolean existsIdentifier(java.lang.String reference)
          
 boolean existsItemIdentifier(org.tmapi.core.Locator locator)
          
 boolean existsItemIdentifier(java.lang.String reference)
          
 boolean existsSubjectIdentifier(org.tmapi.core.Locator locator)
          
 boolean existsSubjectIdentifier(java.lang.String reference)
          
 boolean existsSubjectLocator(org.tmapi.core.Locator locator)
          
 boolean existsSubjectLocator(java.lang.String reference)
          
 org.tmapi.core.Construct getConstructByItemIdentifier(org.tmapi.core.Locator locator)
          
 org.tmapi.core.Construct getConstructByItemIdentifier(java.lang.String reference)
          
 org.tmapi.core.Topic getTopicBySubjectIdentifier(org.tmapi.core.Locator locator)
          
 org.tmapi.core.Topic getTopicBySubjectIdentifier(java.lang.String reference)
          
 org.tmapi.core.Topic getTopicBySubjectLocator(org.tmapi.core.Locator locator)
          
 org.tmapi.core.Topic getTopicBySubjectLocator(java.lang.String reference)
          
 
Methods inherited from class de.topicmapslab.majortom.index.nonpaged.CachedIdentityIndexImpl
getConstructsByIdentifier, getConstructsByIdentifier, getConstructsByItemIdentifier, getConstructsByItemIdentifier, getItemIdentifiers, getSubjectIdentifiers, getSubjectLocators, getTopicsBySubjectIdentifier, getTopicsBySubjectIdentifier, getTopicsBySubjectLocator, getTopicsBySubjectLocator
 
Methods inherited from class de.topicmapslab.majortom.index.core.BaseCachedIdentityIndexImpl
cache, cache, cache, cacheLocators, cacheLocators, cacheLocators, cacheLocators, clear, clearCache, close, open, read, read, read, readLocators, readLocators, readLocators, readLocators, topicMapChanged
 
Methods inherited from class de.topicmapslab.majortom.index.core.BaseCachedIndexImpl
isCachingEnabled, isOnTransactionContext, isOnTransactionContext, isOnTransactionContext, isOnTransactionContext, isOnTransactionContext
 
Methods inherited from class de.topicmapslab.majortom.index.IndexImpl
getTopicMapStore, isAutoUpdated, isOpen, reindex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.topicmapslab.majortom.model.index.IIndex
clear
 
Methods inherited from interface org.tmapi.index.Index
close, isAutoUpdated, isOpen, open, reindex
 

Constructor Detail

JdbcIdentityIndex

public JdbcIdentityIndex(JdbcTopicMapStore store)
constructor

Parameters:
store - the parent store
Method Detail

existsIdentifier

public boolean existsIdentifier(java.lang.String reference)


existsIdentifier

public boolean existsIdentifier(org.tmapi.core.Locator locator)


existsItemIdentifier

public boolean existsItemIdentifier(java.lang.String reference)


existsItemIdentifier

public boolean existsItemIdentifier(org.tmapi.core.Locator locator)


existsSubjectIdentifier

public boolean existsSubjectIdentifier(java.lang.String reference)


existsSubjectIdentifier

public boolean existsSubjectIdentifier(org.tmapi.core.Locator locator)


existsSubjectLocator

public boolean existsSubjectLocator(java.lang.String reference)


existsSubjectLocator

public boolean existsSubjectLocator(org.tmapi.core.Locator locator)


getConstructByItemIdentifier

public org.tmapi.core.Construct getConstructByItemIdentifier(java.lang.String reference)
                                                      throws org.tmapi.core.MalformedIRIException

Throws:
org.tmapi.core.MalformedIRIException

getConstructByItemIdentifier

public org.tmapi.core.Construct getConstructByItemIdentifier(org.tmapi.core.Locator locator)


doGetConstructsByIdentifier

public java.util.Collection<org.tmapi.core.Construct> doGetConstructsByIdentifier(java.lang.String regExp)


doGetConstructsByIdentifier

public java.util.Collection<org.tmapi.core.Construct> doGetConstructsByIdentifier(java.util.regex.Pattern regExp)
Returning all constructs using an identifier matching the given regular expression.

Specified by:
doGetConstructsByIdentifier in class CachedIdentityIndexImpl<JdbcTopicMapStore>
Parameters:
regExp - the regular expression
Returns:
the constructs

doGetConstructsByItemIdentifier

public java.util.Collection<org.tmapi.core.Construct> doGetConstructsByItemIdentifier(java.lang.String regExp)


doGetConstructsByItemIdentifier

public java.util.Collection<org.tmapi.core.Construct> doGetConstructsByItemIdentifier(java.util.regex.Pattern regExp)
Returning all constructs using an item-identifier matching the given regular expression.

Specified by:
doGetConstructsByItemIdentifier in class CachedIdentityIndexImpl<JdbcTopicMapStore>
Parameters:
regExp - the regular expression
Returns:
the constructs

doGetItemIdentifiers

public java.util.Collection<org.tmapi.core.Locator> doGetItemIdentifiers()
Return all item-identifiers used by any construct of the topic map.

Specified by:
doGetItemIdentifiers in class CachedIdentityIndexImpl<JdbcTopicMapStore>
Returns:
the locators

doGetSubjectIdentifiers

public java.util.Collection<org.tmapi.core.Locator> doGetSubjectIdentifiers()
Return all subject-identifiers used by any topic of the topic map.

Specified by:
doGetSubjectIdentifiers in class CachedIdentityIndexImpl<JdbcTopicMapStore>
Returns:
the locators

doGetSubjectLocators

public java.util.Collection<org.tmapi.core.Locator> doGetSubjectLocators()
Return all subject-locators used by any topic of the topic map.

Specified by:
doGetSubjectLocators in class CachedIdentityIndexImpl<JdbcTopicMapStore>
Returns:
the locators

getTopicBySubjectIdentifier

public org.tmapi.core.Topic getTopicBySubjectIdentifier(java.lang.String reference)
                                                 throws org.tmapi.core.MalformedIRIException

Throws:
org.tmapi.core.MalformedIRIException

getTopicBySubjectIdentifier

public org.tmapi.core.Topic getTopicBySubjectIdentifier(org.tmapi.core.Locator locator)


getTopicBySubjectLocator

public org.tmapi.core.Topic getTopicBySubjectLocator(java.lang.String reference)
                                              throws org.tmapi.core.MalformedIRIException

Throws:
org.tmapi.core.MalformedIRIException

getTopicBySubjectLocator

public org.tmapi.core.Topic getTopicBySubjectLocator(org.tmapi.core.Locator locator)


doGetTopicsBySubjectIdentifier

public java.util.Collection<org.tmapi.core.Topic> doGetTopicsBySubjectIdentifier(java.lang.String regExp)


doGetTopicsBySubjectIdentifier

public java.util.Collection<org.tmapi.core.Topic> doGetTopicsBySubjectIdentifier(java.util.regex.Pattern regExp)
Returning all topics using a subject-identifier matching the given regular expression.

Specified by:
doGetTopicsBySubjectIdentifier in class CachedIdentityIndexImpl<JdbcTopicMapStore>
Parameters:
regExp - the regular expression
Returns:
the topics

doGetTopicsBySubjectLocator

public java.util.Collection<org.tmapi.core.Topic> doGetTopicsBySubjectLocator(java.lang.String regExp)


doGetTopicsBySubjectLocator

public java.util.Collection<org.tmapi.core.Topic> doGetTopicsBySubjectLocator(java.util.regex.Pattern regExp)
Returning all topics using a subject-locator matching the given regular expression.

Specified by:
doGetTopicsBySubjectLocator in class CachedIdentityIndexImpl<JdbcTopicMapStore>
Parameters:
regExp - the regular expression
Returns:
the topics