de.topicmapslab.majortom.index.nonpaged
Class CachedIdentityIndexImpl<T extends de.topicmapslab.majortom.model.store.ITopicMapStore>

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<T>
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
Direct Known Subclasses:
JdbcIdentityIndex

public abstract class CachedIdentityIndexImpl<T extends de.topicmapslab.majortom.model.store.ITopicMapStore>
extends BaseCachedIdentityIndexImpl<T>
implements de.topicmapslab.majortom.model.index.IIdentityIndex

Implementation of IIdentityIndex

Author:
Sven Krosse

Nested Class Summary
 
Nested classes/interfaces inherited from class de.topicmapslab.majortom.index.core.BaseCachedIdentityIndexImpl
BaseCachedIdentityIndexImpl.Type
 
Constructor Summary
CachedIdentityIndexImpl(T store)
          constructor
 
Method Summary
protected abstract  java.util.Collection<org.tmapi.core.Construct> doGetConstructsByIdentifier(java.util.regex.Pattern regExp)
          Returning all constructs using an identifier matching the given regular expression.
protected abstract  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.
protected abstract  java.util.Collection<org.tmapi.core.Locator> doGetItemIdentifiers()
          Return all item-identifiers used by any construct of the topic map.
protected abstract  java.util.Collection<org.tmapi.core.Locator> doGetSubjectIdentifiers()
          Return all subject-identifiers used by any topic of the topic map.
protected abstract  java.util.Collection<org.tmapi.core.Locator> doGetSubjectLocators()
          Return all subject-locators used by any topic of the topic map.
protected abstract  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.
protected abstract  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.Construct> getConstructsByIdentifier(java.util.regex.Pattern regExp)
          
 java.util.Collection<org.tmapi.core.Construct> getConstructsByIdentifier(java.lang.String regExp)
          
 java.util.Collection<org.tmapi.core.Construct> getConstructsByItemIdentifier(java.util.regex.Pattern regExp)
          
 java.util.Collection<org.tmapi.core.Construct> getConstructsByItemIdentifier(java.lang.String regExp)
          
 java.util.Collection<org.tmapi.core.Locator> getItemIdentifiers()
          
 java.util.Collection<org.tmapi.core.Locator> getSubjectIdentifiers()
          
 java.util.Collection<org.tmapi.core.Locator> getSubjectLocators()
          
 java.util.Collection<org.tmapi.core.Topic> getTopicsBySubjectIdentifier(java.util.regex.Pattern regExp)
          
 java.util.Collection<org.tmapi.core.Topic> getTopicsBySubjectIdentifier(java.lang.String regExp)
          
 java.util.Collection<org.tmapi.core.Topic> getTopicsBySubjectLocator(java.util.regex.Pattern regExp)
          
 java.util.Collection<org.tmapi.core.Topic> getTopicsBySubjectLocator(java.lang.String regExp)
          
 
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.IIdentityIndex
existsIdentifier, existsIdentifier, existsItemIdentifier, existsItemIdentifier, existsSubjectIdentifier, existsSubjectIdentifier, existsSubjectLocator, existsSubjectLocator, getConstructByItemIdentifier, getConstructByItemIdentifier, getTopicBySubjectIdentifier, getTopicBySubjectIdentifier, getTopicBySubjectLocator, getTopicBySubjectLocator
 
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

CachedIdentityIndexImpl

public CachedIdentityIndexImpl(T store)
constructor

Parameters:
store - the store
Method Detail

getConstructsByIdentifier

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

Specified by:
getConstructsByIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getConstructsByIdentifier

public java.util.Collection<org.tmapi.core.Construct> getConstructsByIdentifier(java.util.regex.Pattern regExp)

Specified by:
getConstructsByIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getConstructsByItemIdentifier

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

Specified by:
getConstructsByItemIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getConstructsByItemIdentifier

public java.util.Collection<org.tmapi.core.Construct> getConstructsByItemIdentifier(java.util.regex.Pattern regExp)

Specified by:
getConstructsByItemIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getItemIdentifiers

public java.util.Collection<org.tmapi.core.Locator> getItemIdentifiers()

Specified by:
getItemIdentifiers in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getSubjectIdentifiers

public java.util.Collection<org.tmapi.core.Locator> getSubjectIdentifiers()

Specified by:
getSubjectIdentifiers in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getSubjectLocators

public java.util.Collection<org.tmapi.core.Locator> getSubjectLocators()

Specified by:
getSubjectLocators in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getTopicsBySubjectIdentifier

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

Specified by:
getTopicsBySubjectIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getTopicsBySubjectIdentifier

public java.util.Collection<org.tmapi.core.Topic> getTopicsBySubjectIdentifier(java.util.regex.Pattern regExp)

Specified by:
getTopicsBySubjectIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getTopicsBySubjectLocator

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

Specified by:
getTopicsBySubjectLocator in interface de.topicmapslab.majortom.model.index.IIdentityIndex

getTopicsBySubjectLocator

public java.util.Collection<org.tmapi.core.Topic> getTopicsBySubjectLocator(java.util.regex.Pattern regExp)

Specified by:
getTopicsBySubjectLocator in interface de.topicmapslab.majortom.model.index.IIdentityIndex

doGetConstructsByIdentifier

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

Parameters:
regExp - the regular expression
Returns:
the constructs

doGetConstructsByItemIdentifier

protected abstract 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.

Parameters:
regExp - the regular expression
Returns:
the constructs

doGetTopicsBySubjectIdentifier

protected abstract 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.

Parameters:
regExp - the regular expression
Returns:
the topics

doGetTopicsBySubjectLocator

protected abstract 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.

Parameters:
regExp - the regular expression
Returns:
the topics

doGetItemIdentifiers

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

Returns:
the locators

doGetSubjectIdentifiers

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

Returns:
the locators

doGetSubjectLocators

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

Returns:
the locators