de.topicmapslab.majortom.database.jdbc.index.paged
Class JdbcPagedIdentityIndex

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.paged.PagedIdentityIndexImpl<JdbcTopicMapStore>
                  extended by de.topicmapslab.majortom.database.jdbc.index.paged.JdbcPagedIdentityIndex
All Implemented Interfaces:
de.topicmapslab.majortom.model.event.ITopicMapListener, de.topicmapslab.majortom.model.index.IIndex, de.topicmapslab.majortom.model.index.paging.IPagedIdentityIndex, org.tmapi.index.Index

public class JdbcPagedIdentityIndex
extends PagedIdentityIndexImpl<JdbcTopicMapStore>

Author:
Sven Krosse

Nested Class Summary
 
Nested classes/interfaces inherited from class de.topicmapslab.majortom.index.core.BaseCachedIdentityIndexImpl
BaseCachedIdentityIndexImpl.Type
 
Constructor Summary
JdbcPagedIdentityIndex(JdbcTopicMapStore store, de.topicmapslab.majortom.model.index.IIdentityIndex parentIndex)
           
 
Method Summary
protected  java.util.List<org.tmapi.core.Construct> doGetConstructsByIdentifier(java.util.regex.Pattern regExp, int offset, int limit)
          Returning all constructs using an identifier matching the given regular expression.
protected  java.util.List<org.tmapi.core.Construct> doGetConstructsByIdentifier(java.util.regex.Pattern regExp, int offset, int limit, java.util.Comparator<org.tmapi.core.Construct> comparator)
          Returning all constructs using an identifier matching the given regular expression.
protected  java.util.List<org.tmapi.core.Construct> doGetConstructsByItemIdentifier(java.util.regex.Pattern regExp, int offset, int limit)
          Returning all constructs using an item-identifier matching the given regular expression.
protected  java.util.List<org.tmapi.core.Construct> doGetConstructsByItemIdentifier(java.util.regex.Pattern regExp, int offset, int limit, java.util.Comparator<org.tmapi.core.Construct> comparator)
          Returning all constructs using an item-identifier matching the given regular expression.
protected  java.util.List<org.tmapi.core.Locator> doGetItemIdentifiers(int offset, int limit)
          Return all item-identifiers used by any construct of the topic map.
protected  java.util.List<org.tmapi.core.Locator> doGetItemIdentifiers(int offset, int limit, java.util.Comparator<org.tmapi.core.Locator> comparator)
          Return all item-identifiers used by any construct of the topic map.
protected  java.util.List<org.tmapi.core.Locator> doGetSubjectIdentifiers(int offset, int limit)
          Return all subject-identifiers used by any topic of the topic map.
protected  java.util.List<org.tmapi.core.Locator> doGetSubjectIdentifiers(int offset, int limit, java.util.Comparator<org.tmapi.core.Locator> comparator)
          Return all subject-identifiers used by any topic of the topic map.
protected  java.util.List<org.tmapi.core.Locator> doGetSubjectLocators(int offset, int limit)
          Return all subject-locators used by any topic of the topic map.
protected  java.util.List<org.tmapi.core.Locator> doGetSubjectLocators(int offset, int limit, java.util.Comparator<org.tmapi.core.Locator> comparator)
          Return all subject-locators used by any topic of the topic map.
protected  java.util.List<org.tmapi.core.Topic> doGetTopicsBySubjectIdentifier(java.util.regex.Pattern regExp, int offset, int limit)
          Returning all topics using a subject-identifier matching the given regular expression.
protected  java.util.List<org.tmapi.core.Topic> doGetTopicsBySubjectIdentifier(java.util.regex.Pattern regExp, int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Returning all topics using a subject-identifier matching the given regular expression.
protected  java.util.List<org.tmapi.core.Topic> doGetTopicsBySubjectLocator(java.util.regex.Pattern regExp, int offset, int limit)
          Returning all topics using a subject-locator matching the given regular expression.
protected  java.util.List<org.tmapi.core.Topic> doGetTopicsBySubjectLocator(java.util.regex.Pattern regExp, int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Returning all topics using a subject-locator matching the given regular expression.
 
Methods inherited from class de.topicmapslab.majortom.index.paged.PagedIdentityIndexImpl
doGetNumberOfItemIdentifiers, doGetNumberOfSubjectIdentifiers, doGetNumberOfSubjectLocators, getConstructsByIdentifier, getConstructsByIdentifier, getConstructsByIdentifier, getConstructsByIdentifier, getConstructsByItemIdentifier, getConstructsByItemIdentifier, getConstructsByItemIdentifier, getConstructsByItemIdentifier, getItemIdentifiers, getItemIdentifiers, getNumberOfItemIdentifiers, getNumberOfSubjectIdentifiers, getNumberOfSubjectLocators, getParentIndex, getSubjectIdentifiers, getSubjectIdentifiers, getSubjectLocators, getSubjectLocators, getTopicsBySubjectIdentifier, getTopicsBySubjectIdentifier, getTopicsBySubjectIdentifier, getTopicsBySubjectIdentifier, getTopicsBySubjectLocator, getTopicsBySubjectLocator, getTopicsBySubjectLocator, getTopicsBySubjectLocator, open
 
Methods inherited from class de.topicmapslab.majortom.index.core.BaseCachedIdentityIndexImpl
cache, cache, cache, cacheLocators, cacheLocators, cacheLocators, cacheLocators, clear, clearCache, close, 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, reindex
 

Constructor Detail

JdbcPagedIdentityIndex

public JdbcPagedIdentityIndex(JdbcTopicMapStore store,
                              de.topicmapslab.majortom.model.index.IIdentityIndex parentIndex)
Parameters:
store -
parentIndex -
Method Detail

doGetConstructsByIdentifier

protected java.util.List<org.tmapi.core.Construct> doGetConstructsByIdentifier(java.util.regex.Pattern regExp,
                                                                               int offset,
                                                                               int limit,
                                                                               java.util.Comparator<org.tmapi.core.Construct> comparator)
Returning all constructs using an identifier matching the given regular expression.

Hint: Method extracts all items from database to enable the usage of comparators. The operation can be very slowly.

Overrides:
doGetConstructsByIdentifier in class PagedIdentityIndexImpl<JdbcTopicMapStore>
Parameters:
regExp - the regular expression
offset - the offset value
limit - the limit value
comparator - the comparator to sort the values
Returns:
the constructs

doGetConstructsByIdentifier

protected java.util.List<org.tmapi.core.Construct> doGetConstructsByIdentifier(java.util.regex.Pattern regExp,
                                                                               int offset,
                                                                               int limit)
Returning all constructs using an identifier matching the given regular expression.

Overrides:
doGetConstructsByIdentifier in class PagedIdentityIndexImpl<JdbcTopicMapStore>
Parameters:
regExp - the regular expression
offset - the offset value
limit - the limit value
Returns:
the constructs

doGetConstructsByItemIdentifier

protected java.util.List<org.tmapi.core.Construct> doGetConstructsByItemIdentifier(java.util.regex.Pattern regExp,
                                                                                   int offset,
                                                                                   int limit,
                                                                                   java.util.Comparator<org.tmapi.core.Construct> comparator)
Returning all constructs using an item-identifier matching the given regular expression.

Hint: Method extracts all items from database to enable the usage of comparators. The operation can be very slowly.

Overrides:
doGetConstructsByItemIdentifier in class PagedIdentityIndexImpl<JdbcTopicMapStore>
Parameters:
regExp - the regular expression
offset - the offset value
limit - the limit value
comparator - the comparator to sort the values
Returns:
the constructs

doGetConstructsByItemIdentifier

protected java.util.List<org.tmapi.core.Construct> doGetConstructsByItemIdentifier(java.util.regex.Pattern regExp,
                                                                                   int offset,
                                                                                   int limit)
Returning all constructs using an item-identifier matching the given regular expression.

Overrides:
doGetConstructsByItemIdentifier in class PagedIdentityIndexImpl<JdbcTopicMapStore>
Parameters:
regExp - the regular expression
offset - the offset value
limit - the limit value
Returns:
the constructs

doGetItemIdentifiers

protected java.util.List<org.tmapi.core.Locator> doGetItemIdentifiers(int offset,
                                                                      int limit,
                                                                      java.util.Comparator<org.tmapi.core.Locator> comparator)
Return all item-identifiers used by any construct of the topic map.

Hint: Method extracts all items from database to enable the usage of comparators. The operation can be very slowly.

Overrides:
doGetItemIdentifiers in class PagedIdentityIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the offset value
limit - the limit value
comparator - the comparator to sort the values
Returns:
the locators

doGetItemIdentifiers

protected java.util.List<org.tmapi.core.Locator> doGetItemIdentifiers(int offset,
                                                                      int limit)
Return all item-identifiers used by any construct of the topic map.

Overrides:
doGetItemIdentifiers in class PagedIdentityIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the offset value
limit - the limit value
Returns:
the locators

doGetSubjectIdentifiers

protected java.util.List<org.tmapi.core.Locator> doGetSubjectIdentifiers(int offset,
                                                                         int limit,
                                                                         java.util.Comparator<org.tmapi.core.Locator> comparator)
Return all subject-identifiers used by any topic of the topic map.

Hint: Method extracts all items from database to enable the usage of comparators. The operation can be very slowly.

Overrides:
doGetSubjectIdentifiers in class PagedIdentityIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the offset value
limit - the limit value
comparator - the comparator to sort the values
Returns:
the locators

doGetSubjectIdentifiers

protected java.util.List<org.tmapi.core.Locator> doGetSubjectIdentifiers(int offset,
                                                                         int limit)
Return all subject-identifiers used by any topic of the topic map.

Overrides:
doGetSubjectIdentifiers in class PagedIdentityIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the offset value
limit - the limit value
Returns:
the locators

doGetSubjectLocators

protected java.util.List<org.tmapi.core.Locator> doGetSubjectLocators(int offset,
                                                                      int limit,
                                                                      java.util.Comparator<org.tmapi.core.Locator> comparator)
Return all subject-locators used by any topic of the topic map.

Hint: Method extracts all items from database to enable the usage of comparators. The operation can be very slowly.

Overrides:
doGetSubjectLocators in class PagedIdentityIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the offset value
limit - the limit value
comparator - the comparator to sort the values
Returns:
the locators

doGetSubjectLocators

protected java.util.List<org.tmapi.core.Locator> doGetSubjectLocators(int offset,
                                                                      int limit)
Return all subject-locators used by any topic of the topic map.

Overrides:
doGetSubjectLocators in class PagedIdentityIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the offset value
limit - the limit value
Returns:
the locators

doGetTopicsBySubjectIdentifier

protected java.util.List<org.tmapi.core.Topic> doGetTopicsBySubjectIdentifier(java.util.regex.Pattern regExp,
                                                                              int offset,
                                                                              int limit,
                                                                              java.util.Comparator<org.tmapi.core.Topic> comparator)
Returning all topics using a subject-identifier matching the given regular expression.

Hint: Method extracts all items from database to enable the usage of comparators. The operation can be very slowly.

Overrides:
doGetTopicsBySubjectIdentifier in class PagedIdentityIndexImpl<JdbcTopicMapStore>
Parameters:
regExp - the regular expression
offset - the offset value
limit - the limit value
comparator - the comparator to sort the values
Returns:
the topics

doGetTopicsBySubjectIdentifier

protected java.util.List<org.tmapi.core.Topic> doGetTopicsBySubjectIdentifier(java.util.regex.Pattern regExp,
                                                                              int offset,
                                                                              int limit)
Returning all topics using a subject-identifier matching the given regular expression.

Overrides:
doGetTopicsBySubjectIdentifier in class PagedIdentityIndexImpl<JdbcTopicMapStore>
Parameters:
regExp - the regular expression
offset - the offset value
limit - the limit value
Returns:
the topics

doGetTopicsBySubjectLocator

protected java.util.List<org.tmapi.core.Topic> doGetTopicsBySubjectLocator(java.util.regex.Pattern regExp,
                                                                           int offset,
                                                                           int limit,
                                                                           java.util.Comparator<org.tmapi.core.Topic> comparator)
Returning all topics using a subject-locator matching the given regular expression.

Hint: Method extracts all items from database to enable the usage of comparators. The operation can be very slowly.

Overrides:
doGetTopicsBySubjectLocator in class PagedIdentityIndexImpl<JdbcTopicMapStore>
Parameters:
regExp - the regular expression
offset - the offset value
limit - the limit value
comparator - the comparator to sort the values
Returns:
the topics

doGetTopicsBySubjectLocator

protected java.util.List<org.tmapi.core.Topic> doGetTopicsBySubjectLocator(java.util.regex.Pattern regExp,
                                                                           int offset,
                                                                           int limit)
Returning all topics using a subject-locator matching the given regular expression.

Overrides:
doGetTopicsBySubjectLocator in class PagedIdentityIndexImpl<JdbcTopicMapStore>
Parameters:
regExp - the regular expression
offset - the offset value
limit - the limit value
Returns:
the topics