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

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

public class JdbcPagedScopeIndex
extends PagedScopeIndexImpl<JdbcTopicMapStore>

Author:
Sven Krosse

Constructor Summary
JdbcPagedScopeIndex(JdbcTopicMapStore store, de.topicmapslab.majortom.model.index.IScopedIndex parentIndex)
           
 
Method Summary
protected  java.util.List<org.tmapi.core.Association> doGetAssociations(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes, int offset, int limit)
          Returns all association items scoped by one of the given scope objects.
protected  java.util.List<org.tmapi.core.Association> doGetAssociations(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes, int offset, int limit, java.util.Comparator<org.tmapi.core.Association> comparator)
          Returns all association items scoped by one of the given scope objects.
protected  java.util.List<org.tmapi.core.Association> doGetAssociations(de.topicmapslab.majortom.model.core.IScope scope, int offset, int limit)
          Returns all association items scoped by the given scope object.
protected  java.util.List<org.tmapi.core.Association> doGetAssociations(de.topicmapslab.majortom.model.core.IScope scope, int offset, int limit, java.util.Comparator<org.tmapi.core.Association> comparator)
          Returns all association items scoped by the given scope object.
protected  java.util.List<org.tmapi.core.Association> doGetAssociations(org.tmapi.core.Topic[] themes, boolean all, int offset, int limit)
          Returning all associations in the scope containing the given themes.
protected  java.util.List<org.tmapi.core.Association> doGetAssociations(org.tmapi.core.Topic[] themes, boolean all, int offset, int limit, java.util.Comparator<org.tmapi.core.Association> comparator)
          Returning all associations in the scope containing the given themes.
protected  java.util.List<org.tmapi.core.Association> doGetAssociations(org.tmapi.core.Topic theme, int offset, int limit)
          Returning all associations in the scope containing the given theme.
protected  java.util.List<org.tmapi.core.Association> doGetAssociations(org.tmapi.core.Topic theme, int offset, int limit, java.util.Comparator<org.tmapi.core.Association> comparator)
          Returning all associations in the scope containing the given theme.
protected  java.util.List<de.topicmapslab.majortom.model.core.IScope> doGetAssociationScopes(int offset, int limit)
          Returns all scope objects used as scope of an association item.
protected  java.util.List<de.topicmapslab.majortom.model.core.IScope> doGetAssociationScopes(int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.IScope> comparator)
          Returns all scope objects used as scope of an association item.
protected  java.util.List<org.tmapi.core.Topic> doGetAssociationThemes(int offset, int limit)
          Returning all themes contained by at least one association scope.
protected  java.util.List<org.tmapi.core.Topic> doGetAssociationThemes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Returning all themes contained by at least one association scope.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(de.topicmapslab.majortom.model.core.IScope scope, int offset, int limit)
          Returns all characteristics scoped by the given scope object.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(de.topicmapslab.majortom.model.core.IScope scope, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics scoped by the given scope object.
protected  java.util.List<org.tmapi.core.Name> doGetNames(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes, int offset, int limit)
          Return all names scoped by one of the given scope objects
protected  java.util.List<org.tmapi.core.Name> doGetNames(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes, int offset, int limit, java.util.Comparator<org.tmapi.core.Name> comparator)
          Return all names scoped by one of the given scope objects
protected  java.util.List<org.tmapi.core.Name> doGetNames(de.topicmapslab.majortom.model.core.IScope scope, int offset, int limit)
          Return all names scoped by the given scope object
protected  java.util.List<org.tmapi.core.Name> doGetNames(de.topicmapslab.majortom.model.core.IScope scope, int offset, int limit, java.util.Comparator<org.tmapi.core.Name> comparator)
          Return all names scoped by the given scope object
protected  java.util.List<org.tmapi.core.Name> doGetNames(org.tmapi.core.Topic[] themes, boolean all, int offset, int limit)
          Returning all names in the scope containing the given themes.
protected  java.util.List<org.tmapi.core.Name> doGetNames(org.tmapi.core.Topic[] themes, boolean all, int offset, int limit, java.util.Comparator<org.tmapi.core.Name> comparator)
          Returning all names in the scope containing the given themes.
protected  java.util.List<org.tmapi.core.Name> doGetNames(org.tmapi.core.Topic theme, int offset, int limit)
          Returning all names in the scope containing the given theme.
protected  java.util.List<org.tmapi.core.Name> doGetNames(org.tmapi.core.Topic theme, int offset, int limit, java.util.Comparator<org.tmapi.core.Name> comparator)
          Returning all names in the scope containing the given theme.
protected  java.util.List<de.topicmapslab.majortom.model.core.IScope> doGetNameScopes(int offset, int limit)
          Returns all scope objects used as scope of a name item.
protected  java.util.List<de.topicmapslab.majortom.model.core.IScope> doGetNameScopes(int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.IScope> comparator)
          Returns all scope objects used as scope of a name item.
protected  java.util.List<org.tmapi.core.Topic> doGetNameThemes(int offset, int limit)
          Returning all themes contained by at least one name scope.
protected  java.util.List<org.tmapi.core.Topic> doGetNameThemes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Returning all themes contained by at least one name scope.
protected  java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes, int offset, int limit)
          Return all occurrences scoped by one of the given scope objects
protected  java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes, int offset, int limit, java.util.Comparator<org.tmapi.core.Occurrence> comparator)
          Return all occurrences scoped by one of the given scope objects
protected  java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(de.topicmapslab.majortom.model.core.IScope scope, int offset, int limit)
          Return all occurrences scoped by the given scope object
protected  java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(de.topicmapslab.majortom.model.core.IScope scope, int offset, int limit, java.util.Comparator<org.tmapi.core.Occurrence> comparator)
          Return all occurrences scoped by the given scope object
protected  java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(org.tmapi.core.Topic[] themes, boolean all, int offset, int limit)
          Returning all occurrences in the scope containing the given themes.
protected  java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(org.tmapi.core.Topic[] themes, boolean all, int offset, int limit, java.util.Comparator<org.tmapi.core.Occurrence> comparator)
          Returning all occurrences in the scope containing the given themes.
protected  java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(org.tmapi.core.Topic theme, int offset, int limit)
          Returning all occurrences in the scope containing the given theme.
protected  java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(org.tmapi.core.Topic theme, int offset, int limit, java.util.Comparator<org.tmapi.core.Occurrence> comparator)
          Returning all occurrences in the scope containing the given theme.
protected  java.util.List<de.topicmapslab.majortom.model.core.IScope> doGetOccurrenceScopes(int offset, int limit)
          Returns all scope objects used as scope of an occurrence item.
protected  java.util.List<de.topicmapslab.majortom.model.core.IScope> doGetOccurrenceScopes(int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.IScope> comparator)
          Returns all scope objects used as scope of an occurrence item.
protected  java.util.List<org.tmapi.core.Topic> doGetOccurrenceThemes(int offset, int limit)
          Returning all themes contained by at least one occurrence scope.
protected  java.util.List<org.tmapi.core.Topic> doGetOccurrenceThemes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Returning all themes contained by at least one occurrence scope.
protected  java.util.List<org.tmapi.core.Scoped> doGetScopables(de.topicmapslab.majortom.model.core.IScope scope, int offset, int limit)
          Returns all constructs scoped by the given scope object.
protected  java.util.List<org.tmapi.core.Scoped> doGetScopables(de.topicmapslab.majortom.model.core.IScope scope, int offset, int limit, java.util.Comparator<org.tmapi.core.Scoped> comparator)
          Returns all constructs scoped by the given scope object.
protected  java.util.List<org.tmapi.core.Variant> doGetVariants(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes, int offset, int limit)
          Return all variants scoped by one of the given scope objects
protected  java.util.List<org.tmapi.core.Variant> doGetVariants(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes, int offset, int limit, java.util.Comparator<org.tmapi.core.Variant> comparator)
          Return all variants scoped by one of the given scope objects
protected  java.util.List<org.tmapi.core.Variant> doGetVariants(de.topicmapslab.majortom.model.core.IScope scope, int offset, int limit)
          Return all variants scoped by the given scope object
protected  java.util.List<org.tmapi.core.Variant> doGetVariants(de.topicmapslab.majortom.model.core.IScope scope, int offset, int limit, java.util.Comparator<org.tmapi.core.Variant> comparator)
          Return all variants scoped by the given scope object
protected  java.util.List<org.tmapi.core.Variant> doGetVariants(org.tmapi.core.Topic[] themes, boolean all, int offset, int limit)
          Returning all variants in the scope containing the given themes.
protected  java.util.List<org.tmapi.core.Variant> doGetVariants(org.tmapi.core.Topic[] themes, boolean all, int offset, int limit, java.util.Comparator<org.tmapi.core.Variant> comparator)
          Returning all variants in the scope containing the given themes.
protected  java.util.List<org.tmapi.core.Variant> doGetVariants(org.tmapi.core.Topic theme, int offset, int limit)
          Returning all variants in the scope containing the given theme.
protected  java.util.List<org.tmapi.core.Variant> doGetVariants(org.tmapi.core.Topic theme, int offset, int limit, java.util.Comparator<org.tmapi.core.Variant> comparator)
          Returning all variants in the scope containing the given theme.
protected  java.util.List<de.topicmapslab.majortom.model.core.IScope> doGetVariantScopes(int offset, int limit)
          Returns all scope objects used as scope of a variant item.
protected  java.util.List<de.topicmapslab.majortom.model.core.IScope> doGetVariantScopes(int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.IScope> comparator)
          Returns all scope objects used as scope of a variant item.
protected  java.util.List<org.tmapi.core.Topic> doGetVariantThemes(int offset, int limit)
          Returning all themes contained by at least one variant scope.
protected  java.util.List<org.tmapi.core.Topic> doGetVariantThemes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Returning all themes contained by at least one variant scope.
 
Methods inherited from class de.topicmapslab.majortom.index.paged.PagedScopeIndexImpl
doGetNumberOfAssociations, doGetNumberOfAssociations, doGetNumberOfAssociations, doGetNumberOfAssociations, doGetNumberOfAssociationScopes, doGetNumberOfAssociationThemes, doGetNumberOfNames, doGetNumberOfNames, doGetNumberOfNames, doGetNumberOfNames, doGetNumberOfNameScopes, doGetNumberOfNameThemes, doGetNumberOfOccurrences, doGetNumberOfOccurrences, doGetNumberOfOccurrences, doGetNumberOfOccurrences, doGetNumberOfOccurrencesScopes, doGetNumberOfOccurrenceThemes, doGetNumberOfScopables, doGetNumberOfVariants, doGetNumberOfVariants, doGetNumberOfVariants, doGetNumberOfVariants, doGetNumberOfVariantScopes, doGetNumberOfVariantThemes, getAssociations, getAssociations, getAssociations, getAssociations, getAssociations, getAssociations, getAssociations, getAssociations, getAssociationScopes, getAssociationScopes, getAssociationThemes, getAssociationThemes, getCharacteristics, getCharacteristics, getNames, getNames, getNames, getNames, getNames, getNames, getNames, getNames, getNameScopes, getNameScopes, getNameThemes, getNameThemes, getNumberOfAssociations, getNumberOfAssociations, getNumberOfAssociations, getNumberOfAssociations, getNumberOfAssociationScopes, getNumberOfAssociationThemes, getNumberOfNames, getNumberOfNames, getNumberOfNames, getNumberOfNames, getNumberOfNameScopes, getNumberOfNameThemes, getNumberOfOccurrences, getNumberOfOccurrences, getNumberOfOccurrences, getNumberOfOccurrences, getNumberOfOccurrenceScopes, getNumberOfOccurrenceThemes, getNumberOfScopables, getNumberOfVariants, getNumberOfVariants, getNumberOfVariants, getNumberOfVariants, getNumberOfVariantScopes, getNumberOfVariantThemes, getOccurrences, getOccurrences, getOccurrences, getOccurrences, getOccurrences, getOccurrences, getOccurrences, getOccurrences, getOccurrenceScopes, getOccurrenceScopes, getOccurrenceThemes, getOccurrenceThemes, getParentIndex, getScopables, getScopables, getVariants, getVariants, getVariants, getVariants, getVariants, getVariants, getVariants, getVariants, getVariantScopes, getVariantScopes, getVariantThemes, getVariantThemes, open
 
Methods inherited from class de.topicmapslab.majortom.index.core.BaseCachedScopeIndexImpl
cache, cache, cacheNumberOfConstructs, cacheScope, cacheScopes, cacheScopes, cacheScopes, cacheScopes, cacheThemes, cacheThemes, clear, clearCache, close, generateScopesCacheKey, generateScopesCacheKey, generateScopesCacheKey, generateScopesCacheKey, generateScopesCacheKey, generateScopesCacheKey, read, read, readNumberOfConstructs, readScope, readScopes, readScopes, readScopes, readScopes, readThemes, readThemes, 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

JdbcPagedScopeIndex

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

doGetAssociations

protected java.util.List<org.tmapi.core.Association> doGetAssociations(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes,
                                                                       int offset,
                                                                       int limit,
                                                                       java.util.Comparator<org.tmapi.core.Association> comparator)
Returns all association items scoped by one of the given scope objects.

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

Overrides:
doGetAssociations in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scopes - the scopes
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
a list of all association items within the given range scoped by one of the given scopes

doGetAssociations

protected java.util.List<org.tmapi.core.Association> doGetAssociations(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes,
                                                                       int offset,
                                                                       int limit)
Returns all association items scoped by one of the given scope objects.

Overrides:
doGetAssociations in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scopes - the scopes
offset - the index of the first item
limit - the maximum count of returned values
Returns:
a list of all association items within the given range scoped by one of the given scopes

doGetAssociations

protected java.util.List<org.tmapi.core.Association> doGetAssociations(de.topicmapslab.majortom.model.core.IScope scope,
                                                                       int offset,
                                                                       int limit,
                                                                       java.util.Comparator<org.tmapi.core.Association> comparator)
Returns all association items scoped by the given scope object.

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

Overrides:
doGetAssociations in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scope - the scope
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
a list of all association items within the given range scoped by the given scope

doGetAssociations

protected java.util.List<org.tmapi.core.Association> doGetAssociations(de.topicmapslab.majortom.model.core.IScope scope,
                                                                       int offset,
                                                                       int limit)
Returns all association items scoped by the given scope object.

Overrides:
doGetAssociations in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scope - the scope
offset - the index of the first item
limit - the maximum count of returned values
Returns:
a list of all association items within the given range scoped by the given scope

doGetAssociations

protected java.util.List<org.tmapi.core.Association> doGetAssociations(org.tmapi.core.Topic theme,
                                                                       int offset,
                                                                       int limit,
                                                                       java.util.Comparator<org.tmapi.core.Association> comparator)
Returning all associations in the scope containing the given theme.

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

Overrides:
doGetAssociations in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
theme - the theme
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all associations within the given range

doGetAssociations

protected java.util.List<org.tmapi.core.Association> doGetAssociations(org.tmapi.core.Topic theme,
                                                                       int offset,
                                                                       int limit)
Returning all associations in the scope containing the given theme.

Overrides:
doGetAssociations in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
theme - the theme
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all associations within the given range

doGetAssociations

protected java.util.List<org.tmapi.core.Association> doGetAssociations(org.tmapi.core.Topic[] themes,
                                                                       boolean all,
                                                                       int offset,
                                                                       int limit,
                                                                       java.util.Comparator<org.tmapi.core.Association> comparator)
Returning all associations in the scope containing the given themes.

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

Overrides:
doGetAssociations in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
themes - the themes
all - flag indicates if all themes have to be contained
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all associations within the given range

doGetAssociations

protected java.util.List<org.tmapi.core.Association> doGetAssociations(org.tmapi.core.Topic[] themes,
                                                                       boolean all,
                                                                       int offset,
                                                                       int limit)
Returning all associations in the scope containing the given themes.

Overrides:
doGetAssociations in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
themes - the themes
all - flag indicates if all themes have to be contained
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all associations within the given range

doGetAssociationScopes

protected java.util.List<de.topicmapslab.majortom.model.core.IScope> doGetAssociationScopes(int offset,
                                                                                            int limit,
                                                                                            java.util.Comparator<de.topicmapslab.majortom.model.core.IScope> comparator)
Returns all scope objects used as scope of an association item. Default implementation only calls the parent index.

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

Overrides:
doGetAssociationScopes in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
a list of scope objects within the given range

doGetAssociationScopes

protected java.util.List<de.topicmapslab.majortom.model.core.IScope> doGetAssociationScopes(int offset,
                                                                                            int limit)
Returns all scope objects used as scope of an association item. Default implementation only calls the parent index.

Overrides:
doGetAssociationScopes in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the index of the first item
limit - the maximum count of returned values
Returns:
a list of scope objects within the given range

doGetAssociationThemes

protected java.util.List<org.tmapi.core.Topic> doGetAssociationThemes(int offset,
                                                                      int limit,
                                                                      java.util.Comparator<org.tmapi.core.Topic> comparator)
Returning all themes contained by at least one association scope. Default implementation only calls the parent index.

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

Overrides:
doGetAssociationThemes in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all themes within the given range contained by at least one association scope.

doGetAssociationThemes

protected java.util.List<org.tmapi.core.Topic> doGetAssociationThemes(int offset,
                                                                      int limit)
Returning all themes contained by at least one association scope. Default implementation only calls the parent index.

Overrides:
doGetAssociationThemes in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all themes within the given range contained by at least one association scope.

doGetCharacteristics

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(de.topicmapslab.majortom.model.core.IScope scope,
                                                                                                    int offset,
                                                                                                    int limit,
                                                                                                    java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics scoped by the given scope object.

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

Overrides:
doGetCharacteristics in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scope - the scope
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
a list of all characteristics within the given range scoped by the given scope

doGetCharacteristics

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(de.topicmapslab.majortom.model.core.IScope scope,
                                                                                                    int offset,
                                                                                                    int limit)
Returns all characteristics scoped by the given scope object.

Overrides:
doGetCharacteristics in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scope - the scope
offset - the index of the first item
limit - the maximum count of returned values
Returns:
a list of all characteristics within the given range scoped by the given scope

doGetNames

protected java.util.List<org.tmapi.core.Name> doGetNames(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes,
                                                         int offset,
                                                         int limit,
                                                         java.util.Comparator<org.tmapi.core.Name> comparator)
Return all names scoped by one of the given scope objects

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

Overrides:
doGetNames in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scopes - the scope objects
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all names within the given range scoped by one of the given scope objects

doGetNames

protected java.util.List<org.tmapi.core.Name> doGetNames(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes,
                                                         int offset,
                                                         int limit)
Return all names scoped by one of the given scope objects

Overrides:
doGetNames in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scopes - the scope objects
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all names scoped by one of the given scope objects

doGetNames

protected java.util.List<org.tmapi.core.Name> doGetNames(de.topicmapslab.majortom.model.core.IScope scope,
                                                         int offset,
                                                         int limit,
                                                         java.util.Comparator<org.tmapi.core.Name> comparator)
Return all names scoped by the given scope object

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

Overrides:
doGetNames in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scope - the scope object
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all names within the given range scoped by the given scope object

doGetNames

protected java.util.List<org.tmapi.core.Name> doGetNames(de.topicmapslab.majortom.model.core.IScope scope,
                                                         int offset,
                                                         int limit)
Return all names scoped by the given scope object

Overrides:
doGetNames in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scope - the scope object
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all names within the given range scoped by the given scope object

doGetNames

protected java.util.List<org.tmapi.core.Name> doGetNames(org.tmapi.core.Topic theme,
                                                         int offset,
                                                         int limit,
                                                         java.util.Comparator<org.tmapi.core.Name> comparator)
Returning all names in the scope containing the given theme.

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

Overrides:
doGetNames in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
theme - the theme
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all names within the given range

doGetNames

protected java.util.List<org.tmapi.core.Name> doGetNames(org.tmapi.core.Topic theme,
                                                         int offset,
                                                         int limit)
Returning all names in the scope containing the given theme.

Overrides:
doGetNames in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
theme - the theme
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all names within the given range

doGetNames

protected java.util.List<org.tmapi.core.Name> doGetNames(org.tmapi.core.Topic[] themes,
                                                         boolean all,
                                                         int offset,
                                                         int limit,
                                                         java.util.Comparator<org.tmapi.core.Name> comparator)
Returning all names in the scope containing the given themes.

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

Overrides:
doGetNames in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
themes - the themes
all - flag indicates if all themes have to be contained
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all names within the given range

doGetNames

protected java.util.List<org.tmapi.core.Name> doGetNames(org.tmapi.core.Topic[] themes,
                                                         boolean all,
                                                         int offset,
                                                         int limit)
Returning all names in the scope containing the given themes.

Overrides:
doGetNames in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
themes - the themes
all - flag indicates if all themes have to be contained
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all names within the given range

doGetNameScopes

protected java.util.List<de.topicmapslab.majortom.model.core.IScope> doGetNameScopes(int offset,
                                                                                     int limit,
                                                                                     java.util.Comparator<de.topicmapslab.majortom.model.core.IScope> comparator)
Returns all scope objects used as scope of a name item.

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

Overrides:
doGetNameScopes in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
a collection of scope objects within the given range

doGetNameScopes

protected java.util.List<de.topicmapslab.majortom.model.core.IScope> doGetNameScopes(int offset,
                                                                                     int limit)
Returns all scope objects used as scope of a name item.

Overrides:
doGetNameScopes in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the index of the first item
limit - the maximum count of returned values
Returns:
a collection of scope objects within the given range

doGetNameThemes

protected java.util.List<org.tmapi.core.Topic> doGetNameThemes(int offset,
                                                               int limit,
                                                               java.util.Comparator<org.tmapi.core.Topic> comparator)
Returning all themes contained by at least one name scope.

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

Overrides:
doGetNameThemes in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all themes within the given range contained by at least one name scope.

doGetNameThemes

protected java.util.List<org.tmapi.core.Topic> doGetNameThemes(int offset,
                                                               int limit)
Returning all themes contained by at least one name scope.

Overrides:
doGetNameThemes in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all themes within the given range contained by at least one name scope.

doGetOccurrences

protected java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes,
                                                                     int offset,
                                                                     int limit,
                                                                     java.util.Comparator<org.tmapi.core.Occurrence> comparator)
Return all occurrences scoped by one of the given scope objects

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

Overrides:
doGetOccurrences in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scopes - the scope objects
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all occurrences within the given range scoped by one of the given scope objects

doGetOccurrences

protected java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes,
                                                                     int offset,
                                                                     int limit)
Return all occurrences scoped by one of the given scope objects

Overrides:
doGetOccurrences in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scopes - the scope objects
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all occurrences within the given range scoped by one of the given scope objects

doGetOccurrences

protected java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(de.topicmapslab.majortom.model.core.IScope scope,
                                                                     int offset,
                                                                     int limit,
                                                                     java.util.Comparator<org.tmapi.core.Occurrence> comparator)
Return all occurrences scoped by the given scope object

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

Overrides:
doGetOccurrences in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scope - the scope object
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all occurrences scoped by the given scope object within the given range

doGetOccurrences

protected java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(de.topicmapslab.majortom.model.core.IScope scope,
                                                                     int offset,
                                                                     int limit)
Return all occurrences scoped by the given scope object

Overrides:
doGetOccurrences in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scope - the scope object
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all occurrences scoped by the given scope object within the given range

doGetOccurrences

protected java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(org.tmapi.core.Topic theme,
                                                                     int offset,
                                                                     int limit,
                                                                     java.util.Comparator<org.tmapi.core.Occurrence> comparator)
Returning all occurrences in the scope containing the given theme.

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

Overrides:
doGetOccurrences in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
theme - the theme
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all occurrences within the given range

doGetOccurrences

protected java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(org.tmapi.core.Topic theme,
                                                                     int offset,
                                                                     int limit)
Returning all occurrences in the scope containing the given theme.

Overrides:
doGetOccurrences in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
theme - the theme
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all occurrences within the given range

doGetOccurrences

protected java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(org.tmapi.core.Topic[] themes,
                                                                     boolean all,
                                                                     int offset,
                                                                     int limit,
                                                                     java.util.Comparator<org.tmapi.core.Occurrence> comparator)
Returning all occurrences in the scope containing the given themes.

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

Overrides:
doGetOccurrences in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
themes - the themes
all - flag indicates if all themes have to be contained
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all occurrences within the given range

doGetOccurrences

protected java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(org.tmapi.core.Topic[] themes,
                                                                     boolean all,
                                                                     int offset,
                                                                     int limit)
Returning all occurrences in the scope containing the given themes.

Overrides:
doGetOccurrences in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
themes - the themes
all - flag indicates if all themes have to be contained
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all occurrences within the given range

doGetOccurrenceScopes

protected java.util.List<de.topicmapslab.majortom.model.core.IScope> doGetOccurrenceScopes(int offset,
                                                                                           int limit,
                                                                                           java.util.Comparator<de.topicmapslab.majortom.model.core.IScope> comparator)
Returns all scope objects used as scope of an occurrence item.

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

Overrides:
doGetOccurrenceScopes in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
a collection of scope objects within the given range

doGetOccurrenceScopes

protected java.util.List<de.topicmapslab.majortom.model.core.IScope> doGetOccurrenceScopes(int offset,
                                                                                           int limit)
Returns all scope objects used as scope of an occurrence item.

Overrides:
doGetOccurrenceScopes in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the index of the first item
limit - the maximum count of returned values
Returns:
a list of scope objects within the given range

doGetOccurrenceThemes

protected java.util.List<org.tmapi.core.Topic> doGetOccurrenceThemes(int offset,
                                                                     int limit,
                                                                     java.util.Comparator<org.tmapi.core.Topic> comparator)
Returning all themes contained by at least one occurrence scope.

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

Overrides:
doGetOccurrenceThemes in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all themes within the given range contained by at least one occurrence scope.

doGetOccurrenceThemes

protected java.util.List<org.tmapi.core.Topic> doGetOccurrenceThemes(int offset,
                                                                     int limit)
Returning all themes contained by at least one occurrence scope.

Overrides:
doGetOccurrenceThemes in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all themes within the given range contained by at least one occurrence scope.

doGetScopables

protected java.util.List<org.tmapi.core.Scoped> doGetScopables(de.topicmapslab.majortom.model.core.IScope scope,
                                                               int offset,
                                                               int limit,
                                                               java.util.Comparator<org.tmapi.core.Scoped> comparator)
Returns all constructs scoped by the given scope object.

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

Overrides:
doGetScopables in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scope - the scope
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
a list of all constructs within the given range scoped by the given scope

doGetScopables

protected java.util.List<org.tmapi.core.Scoped> doGetScopables(de.topicmapslab.majortom.model.core.IScope scope,
                                                               int offset,
                                                               int limit)
Returns all constructs scoped by the given scope object.

Overrides:
doGetScopables in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scope - the scope
offset - the index of the first item
limit - the maximum count of returned values
Returns:
a list of all constructs within the given range scoped by the given scope

doGetVariants

protected java.util.List<org.tmapi.core.Variant> doGetVariants(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes,
                                                               int offset,
                                                               int limit,
                                                               java.util.Comparator<org.tmapi.core.Variant> comparator)
Return all variants scoped by one of the given scope objects

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

Overrides:
doGetVariants in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scopes - the scope objects
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all variants within the given range scoped by one of the given scope objects

doGetVariants

protected java.util.List<org.tmapi.core.Variant> doGetVariants(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes,
                                                               int offset,
                                                               int limit)
Return all variants scoped by one of the given scope objects

Overrides:
doGetVariants in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scopes - the scope objects
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all variants within the given range scoped by one of the given scope objects

doGetVariants

protected java.util.List<org.tmapi.core.Variant> doGetVariants(de.topicmapslab.majortom.model.core.IScope scope,
                                                               int offset,
                                                               int limit,
                                                               java.util.Comparator<org.tmapi.core.Variant> comparator)
Return all variants scoped by the given scope object

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

Overrides:
doGetVariants in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scope - the scope object
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all variants within the given range scoped by the given scope object

doGetVariants

protected java.util.List<org.tmapi.core.Variant> doGetVariants(de.topicmapslab.majortom.model.core.IScope scope,
                                                               int offset,
                                                               int limit)
Return all variants scoped by the given scope object

Overrides:
doGetVariants in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
scope - the scope object
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all variants within the given range scoped by the given scope object

doGetVariants

protected java.util.List<org.tmapi.core.Variant> doGetVariants(org.tmapi.core.Topic theme,
                                                               int offset,
                                                               int limit,
                                                               java.util.Comparator<org.tmapi.core.Variant> comparator)
Returning all variants in the scope containing the given theme.

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

Overrides:
doGetVariants in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
theme - the theme
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all variants within the given range

doGetVariants

protected java.util.List<org.tmapi.core.Variant> doGetVariants(org.tmapi.core.Topic theme,
                                                               int offset,
                                                               int limit)
Returning all variants in the scope containing the given theme.

Overrides:
doGetVariants in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
theme - the theme
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all variants within the given range

doGetVariants

protected java.util.List<org.tmapi.core.Variant> doGetVariants(org.tmapi.core.Topic[] themes,
                                                               boolean all,
                                                               int offset,
                                                               int limit,
                                                               java.util.Comparator<org.tmapi.core.Variant> comparator)
Returning all variants in the scope containing the given themes.

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

Overrides:
doGetVariants in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
themes - the themes
all - flag indicates if all themes have to be contained
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all variants within the given range

doGetVariants

protected java.util.List<org.tmapi.core.Variant> doGetVariants(org.tmapi.core.Topic[] themes,
                                                               boolean all,
                                                               int offset,
                                                               int limit)
Returning all variants in the scope containing the given themes.

Overrides:
doGetVariants in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
themes - the themes
all - flag indicates if all themes have to be contained
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all variants within the given range

doGetVariantScopes

protected java.util.List<de.topicmapslab.majortom.model.core.IScope> doGetVariantScopes(int offset,
                                                                                        int limit,
                                                                                        java.util.Comparator<de.topicmapslab.majortom.model.core.IScope> comparator)
Returns all scope objects used as scope of a variant item.

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

Overrides:
doGetVariantScopes in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
a collection of scope objects within the given range

doGetVariantScopes

protected java.util.List<de.topicmapslab.majortom.model.core.IScope> doGetVariantScopes(int offset,
                                                                                        int limit)
Returns all scope objects used as scope of a variant item.

Overrides:
doGetVariantScopes in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the index of the first item
limit - the maximum count of returned values
Returns:
a collection of scope objects within the given range

doGetVariantThemes

protected java.util.List<org.tmapi.core.Topic> doGetVariantThemes(int offset,
                                                                  int limit,
                                                                  java.util.Comparator<org.tmapi.core.Topic> comparator)
Returning all themes contained by at least one variant scope.

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

Overrides:
doGetVariantThemes in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all themes within the given range contained by at least one variant scope.

doGetVariantThemes

protected java.util.List<org.tmapi.core.Topic> doGetVariantThemes(int offset,
                                                                  int limit)
Returning all themes contained by at least one variant scope.

Overrides:
doGetVariantThemes in class PagedScopeIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all themes within the given range contained by at least one variant scope.