de.topicmapslab.majortom.database.transaction.index
Class TransactionIdentityIndex

java.lang.Object
  extended by de.topicmapslab.majortom.index.IndexImpl<TransactionTopicMapStore>
      extended by de.topicmapslab.majortom.database.transaction.index.TransactionIdentityIndex
All Implemented Interfaces:
de.topicmapslab.majortom.model.index.IIdentityIndex, de.topicmapslab.majortom.model.index.IIndex, org.tmapi.index.Index

public class TransactionIdentityIndex
extends IndexImpl<TransactionTopicMapStore>
implements de.topicmapslab.majortom.model.index.IIdentityIndex

Implementation of the IIdentityIndex

Author:
Sven Krosse

Constructor Summary
TransactionIdentityIndex(TransactionTopicMapStore store)
          constructor
 
Method Summary
 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)
          
 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()
          
 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)
          
 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.IndexImpl
clear, close, getTopicMapStore, isAutoUpdated, isOpen, open, 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

TransactionIdentityIndex

public TransactionIdentityIndex(TransactionTopicMapStore store)
constructor

Parameters:
store - the in-memory store
Method Detail

existsIdentifier

public boolean existsIdentifier(java.lang.String reference)

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

existsIdentifier

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

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

existsItemIdentifier

public boolean existsItemIdentifier(java.lang.String reference)

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

existsItemIdentifier

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

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

existsSubjectIdentifier

public boolean existsSubjectIdentifier(java.lang.String reference)

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

existsSubjectIdentifier

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

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

existsSubjectLocator

public boolean existsSubjectLocator(java.lang.String reference)

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

existsSubjectLocator

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

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

getConstructByItemIdentifier

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

Specified by:
getConstructByItemIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex
Throws:
org.tmapi.core.MalformedIRIException

getConstructByItemIdentifier

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

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

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

getTopicBySubjectIdentifier

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

Specified by:
getTopicBySubjectIdentifier in interface de.topicmapslab.majortom.model.index.IIdentityIndex
Throws:
org.tmapi.core.MalformedIRIException

getTopicBySubjectIdentifier

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

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

getTopicBySubjectLocator

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

Specified by:
getTopicBySubjectLocator in interface de.topicmapslab.majortom.model.index.IIdentityIndex
Throws:
org.tmapi.core.MalformedIRIException

getTopicBySubjectLocator

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

Specified by:
getTopicBySubjectLocator 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