de.topicmapslab.majortom.index.paged
Class PagedTypeInstanceIndexImpl<E 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<E>
          extended by de.topicmapslab.majortom.index.core.BaseCachedTypeInstanceIndexImpl<E>
              extended by de.topicmapslab.majortom.index.paged.PagedTypeInstanceIndexImpl<E>
All Implemented Interfaces:
de.topicmapslab.majortom.model.event.ITopicMapListener, de.topicmapslab.majortom.model.index.IIndex, de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex, org.tmapi.index.Index
Direct Known Subclasses:
InMemoryPagedTypeInstanceIndex, JdbcPagedTransitiveTypeInstanceIndex, JdbcPagedTypeInstanceIndex, PagedRedisTypeInstanceIndex, PagedTransitiveTypeInstanceIndexImpl

public abstract class PagedTypeInstanceIndexImpl<E extends de.topicmapslab.majortom.model.store.ITopicMapStore>
extends BaseCachedTypeInstanceIndexImpl<E>
implements de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

Implementation of the in-memory IPagedTypeInstanceIndex supporting paging

Author:
Sven Krosse

Field Summary
private  de.topicmapslab.majortom.model.index.ITypeInstanceIndex parentIndex
           
 
Constructor Summary
PagedTypeInstanceIndexImpl(E store, de.topicmapslab.majortom.model.index.ITypeInstanceIndex parentIndex)
          constructor
 
Method Summary
protected  java.util.List<org.tmapi.core.Association> doGetAssociations(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit)
          Returns all association items typed by one of the given types.
protected  java.util.List<org.tmapi.core.Association> doGetAssociations(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit, java.util.Comparator<org.tmapi.core.Association> comparator)
          Returns all association items typed by one of the given types.
protected  java.util.List<org.tmapi.core.Association> doGetAssociations(org.tmapi.core.Topic type, int offset, int limit)
          Return all associations of the given type within the given range
protected  java.util.List<org.tmapi.core.Association> doGetAssociations(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<org.tmapi.core.Association> comparator)
          Return all associations of the given type within the given range
protected  java.util.List<org.tmapi.core.Topic> doGetAssociationTypes(int offset, int limit)
          Returns all association types of the topic map.
protected  java.util.List<org.tmapi.core.Topic> doGetAssociationTypes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Returns all association types of the topic map.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit)
          Returns all characteristics typed by one of given types.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics typed by one of given types.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(org.tmapi.core.Topic type, int offset, int limit)
          Returns all characteristics being typed by the given of topic type.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics being typed by the given of topic type.
protected  java.util.List<org.tmapi.core.Topic> doGetCharacteristicTypes(int offset, int limit)
          Returns all characteristic types contained by the topic map.
protected  java.util.List<org.tmapi.core.Topic> doGetCharacteristicTypes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Returns all characteristic types contained by the topic map.
protected  java.util.List<org.tmapi.core.Name> doGetNames(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit)
          Returns all names typed by one of the given types.
protected  java.util.List<org.tmapi.core.Name> doGetNames(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit, java.util.Comparator<org.tmapi.core.Name> comparator)
          Returns all names typed by one of the given types.
protected  java.util.List<org.tmapi.core.Name> doGetNames(org.tmapi.core.Topic type, int offset, int limit)
          Return all names of the given type within the given range.
protected  java.util.List<org.tmapi.core.Name> doGetNames(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<org.tmapi.core.Name> comparator)
          Return all names of the given type within the given range.
protected  java.util.List<org.tmapi.core.Topic> doGetNameTypes(int offset, int limit)
          Return all name types of the topic map within the given range.
protected  java.util.List<org.tmapi.core.Topic> doGetNameTypes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Return all name types of the topic map within the given range.
protected  long doGetNumberOfAssociations(java.util.Collection<? extends org.tmapi.core.Topic> types)
          Returns the number of associations typed by one of the given topics
protected  long doGetNumberOfAssociations(org.tmapi.core.Topic type)
          Returns the number of associations typed by the given topic
protected  long doGetNumberOfAssociationTypes()
          Returns the number of association types
protected  long doGetNumberOfCharacteristics(java.util.Collection<? extends org.tmapi.core.Topic> types)
          Returns the number of all characteristics being typed by the given of topic types.
protected  long doGetNumberOfCharacteristics(org.tmapi.core.Topic type)
          Returns the number of all characteristics being typed by the given of topic type.
protected  long doGetNumberOfCharacteristicTypes()
          Returns the number of characteristic types
protected  long doGetNumberOfNames(java.util.Collection<? extends org.tmapi.core.Topic> types)
          Returns the number of all names of the given types.
protected  long doGetNumberOfNames(org.tmapi.core.Topic type)
          Returns the number of all names of the given type.
protected  long doGetNumberOfNameTypes()
          Returns the number of name types
protected  long doGetNumberOfOccurrences(java.util.Collection<? extends org.tmapi.core.Topic> types)
          Returns the number of occurrences typed by the given topic types
protected  long doGetNumberOfOccurrences(org.tmapi.core.Topic type)
          Returns the number of occurrences typed by the given topic type
protected  long doGetNumberOfOccurrenceTypes()
          Returns the number of occurrence types
protected  long doGetNumberOfRoles(java.util.Collection<? extends org.tmapi.core.Topic> types)
          Returns the number of roles typed by the given topics
protected  long doGetNumberOfRoles(org.tmapi.core.Topic type)
          Returns the number of roles typed by the given topic
protected  long doGetNumberOfRoleTypes()
          Returns the number of role types
protected  long doGetNumberOfTopics(java.util.Collection<org.tmapi.core.Topic> types, boolean all)
          Returns the number of instances of at least one given type or of every given topic type.
protected  long doGetNumberOfTopics(org.tmapi.core.Topic type)
          Returns the number of all topic instances of the given topic type within the given range.
protected  long doGetNumberOfTopicTypes()
          Returns the number of topic types
protected  java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit)
          Returns all occurrences typed by one of the given types.
protected  java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit, java.util.Comparator<org.tmapi.core.Occurrence> comparator)
          Returns all occurrences typed by one of the given types.
protected  java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(org.tmapi.core.Topic type, int offset, int limit)
          Return all occurrences of the given type within the given range.
protected  java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<org.tmapi.core.Occurrence> comparator)
          Return all occurrences of the given type within the given range.
protected  java.util.List<org.tmapi.core.Topic> doGetOccurrenceTypes(int offset, int limit)
          Return all occurrence types of the topic map within the given range.
protected  java.util.List<org.tmapi.core.Topic> doGetOccurrenceTypes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Return all occurrence types of the topic map within the given range.
protected  java.util.List<org.tmapi.core.Role> doGetRoles(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit)
          Returns all association roles typed by one of the given types.
protected  java.util.List<org.tmapi.core.Role> doGetRoles(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit, java.util.Comparator<org.tmapi.core.Role> comparator)
          Returns all association roles typed by one of the given types.
protected  java.util.List<org.tmapi.core.Role> doGetRoles(org.tmapi.core.Topic type, int offset, int limit)
          Return all roles of the given type within the given range.
protected  java.util.List<org.tmapi.core.Role> doGetRoles(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<org.tmapi.core.Role> comparator)
          Return all roles of the given type within the given range.
protected  java.util.List<org.tmapi.core.Topic> doGetRoleTypes(int offset, int limit)
          Return all role types of the topic map within the given range.
protected  java.util.List<org.tmapi.core.Topic> doGetRoleTypes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Return all role types of the topic map within the given range.
protected  java.util.List<org.tmapi.core.Topic> doGetTopics(java.util.Collection<org.tmapi.core.Topic> types, boolean all, int offset, int limit)
          Returns all instances of at least one given type or of every given topic type.
protected  java.util.List<org.tmapi.core.Topic> doGetTopics(java.util.Collection<org.tmapi.core.Topic> types, boolean all, int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Returns all instances of at least one given type or of every given topic type.
protected  java.util.List<org.tmapi.core.Topic> doGetTopics(org.tmapi.core.Topic type, int offset, int limit)
          Returns all topic instances of the given topic type within the given range.
protected  java.util.List<org.tmapi.core.Topic> doGetTopics(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Returns all topic instances of the given topic type within the given range.
protected  java.util.List<org.tmapi.core.Topic> doGetTopicTypes(int offset, int limit)
          Returns all topic types of the topic map.
protected  java.util.List<org.tmapi.core.Topic> doGetTopicTypes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Returns all topic types of the topic map.
 java.util.List<org.tmapi.core.Association> getAssociations(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit)
          
 java.util.List<org.tmapi.core.Association> getAssociations(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit, java.util.Comparator<org.tmapi.core.Association> comparator)
          
 java.util.List<org.tmapi.core.Association> getAssociations(org.tmapi.core.Topic type, int offset, int limit)
          
 java.util.List<org.tmapi.core.Association> getAssociations(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<org.tmapi.core.Association> comparator)
          
 java.util.List<org.tmapi.core.Topic> getAssociationTypes(int offset, int limit)
          
 java.util.List<org.tmapi.core.Topic> getAssociationTypes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          
 java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit)
          
 java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          
 java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(org.tmapi.core.Topic type, int offset, int limit)
          
 java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          
 java.util.List<org.tmapi.core.Topic> getCharacteristicTypes(int offset, int limit)
          
 java.util.List<org.tmapi.core.Topic> getCharacteristicTypes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          
 java.util.List<org.tmapi.core.Name> getNames(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit)
          
 java.util.List<org.tmapi.core.Name> getNames(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit, java.util.Comparator<org.tmapi.core.Name> comparator)
          
 java.util.List<org.tmapi.core.Name> getNames(org.tmapi.core.Topic type, int offset, int limit)
          
 java.util.List<org.tmapi.core.Name> getNames(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<org.tmapi.core.Name> comparator)
          
 java.util.List<org.tmapi.core.Topic> getNameTypes(int offset, int limit)
          
 java.util.List<org.tmapi.core.Topic> getNameTypes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          
 long getNumberOfAssociations(java.util.Collection<? extends org.tmapi.core.Topic> types)
          
 long getNumberOfAssociations(org.tmapi.core.Topic type)
          
 long getNumberOfAssociationTypes()
          
 long getNumberOfCharacteristics(java.util.Collection<? extends org.tmapi.core.Topic> types)
          
 long getNumberOfCharacteristics(org.tmapi.core.Topic type)
          
 long getNumberOfCharacteristicTypes()
          
 long getNumberOfNames(java.util.Collection<? extends org.tmapi.core.Topic> types)
          
 long getNumberOfNames(org.tmapi.core.Topic type)
          
 long getNumberOfNameTypes()
          
 long getNumberOfOccurrences(java.util.Collection<? extends org.tmapi.core.Topic> types)
          
 long getNumberOfOccurrences(org.tmapi.core.Topic type)
          
 long getNumberOfOccurrenceTypes()
          
 long getNumberOfRoles(java.util.Collection<? extends org.tmapi.core.Topic> types)
          
 long getNumberOfRoles(org.tmapi.core.Topic type)
          
 long getNumberOfRoleTypes()
          
 long getNumberOfTopics(java.util.Collection<org.tmapi.core.Topic> types)
          
 long getNumberOfTopics(java.util.Collection<org.tmapi.core.Topic> types, boolean all)
          
 long getNumberOfTopics(org.tmapi.core.Topic type)
          
 long getNumberOfTopicTypes()
          
 java.util.List<org.tmapi.core.Occurrence> getOccurrences(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit)
          
 java.util.List<org.tmapi.core.Occurrence> getOccurrences(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit, java.util.Comparator<org.tmapi.core.Occurrence> comparator)
          
 java.util.List<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic type, int offset, int limit)
          
 java.util.List<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<org.tmapi.core.Occurrence> comparator)
          
 java.util.List<org.tmapi.core.Topic> getOccurrenceTypes(int offset, int limit)
          
 java.util.List<org.tmapi.core.Topic> getOccurrenceTypes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          
 de.topicmapslab.majortom.model.index.ITypeInstanceIndex getParentIndex()
           
 java.util.List<org.tmapi.core.Role> getRoles(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit)
          
 java.util.List<org.tmapi.core.Role> getRoles(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit, java.util.Comparator<org.tmapi.core.Role> comparator)
          
 java.util.List<org.tmapi.core.Role> getRoles(org.tmapi.core.Topic type, int offset, int limit)
          
 java.util.List<org.tmapi.core.Role> getRoles(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<org.tmapi.core.Role> comparator)
          
 java.util.List<org.tmapi.core.Topic> getRoleTypes(int offset, int limit)
          
 java.util.List<org.tmapi.core.Topic> getRoleTypes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          
 java.util.List<org.tmapi.core.Topic> getTopics(java.util.Collection<org.tmapi.core.Topic> types, boolean all, int offset, int limit)
          
 java.util.List<org.tmapi.core.Topic> getTopics(java.util.Collection<org.tmapi.core.Topic> types, boolean all, int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          
 java.util.List<org.tmapi.core.Topic> getTopics(java.util.Collection<org.tmapi.core.Topic> types, int offset, int limit)
          
 java.util.List<org.tmapi.core.Topic> getTopics(java.util.Collection<org.tmapi.core.Topic> types, int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          
 java.util.List<org.tmapi.core.Topic> getTopics(org.tmapi.core.Topic type, int offset, int limit)
          
 java.util.List<org.tmapi.core.Topic> getTopics(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          
 java.util.List<org.tmapi.core.Topic> getTopicTypes(int offset, int limit)
          
 java.util.List<org.tmapi.core.Topic> getTopicTypes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          
 void open()
          
 
Methods inherited from class de.topicmapslab.majortom.index.core.BaseCachedTypeInstanceIndexImpl
cache, cache, cache, cache, cacheNumberOfConstructs, clear, clearCache, clearDependentCache, close, read, read, read, read, readNumberOfConstructs, 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
 

Field Detail

parentIndex

private final de.topicmapslab.majortom.model.index.ITypeInstanceIndex parentIndex
Constructor Detail

PagedTypeInstanceIndexImpl

public PagedTypeInstanceIndexImpl(E store,
                                  de.topicmapslab.majortom.model.index.ITypeInstanceIndex parentIndex)
constructor

Parameters:
store - the topic map store
parentIndex - the parent ITypeInstanceIndex
Method Detail

getParentIndex

public de.topicmapslab.majortom.model.index.ITypeInstanceIndex getParentIndex()
Returns:
the parentIndex

getAssociationTypes

public java.util.List<org.tmapi.core.Topic> getAssociationTypes(int offset,
                                                                int limit)

Specified by:
getAssociationTypes in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getAssociationTypes

public java.util.List<org.tmapi.core.Topic> getAssociationTypes(int offset,
                                                                int limit,
                                                                java.util.Comparator<org.tmapi.core.Topic> comparator)

Specified by:
getAssociationTypes in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNumberOfAssociationTypes

public long getNumberOfAssociationTypes()

Specified by:
getNumberOfAssociationTypes in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getAssociations

public java.util.List<org.tmapi.core.Association> getAssociations(org.tmapi.core.Topic type,
                                                                  int offset,
                                                                  int limit)

Specified by:
getAssociations in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getAssociations

public java.util.List<org.tmapi.core.Association> getAssociations(org.tmapi.core.Topic type,
                                                                  int offset,
                                                                  int limit,
                                                                  java.util.Comparator<org.tmapi.core.Association> comparator)

Specified by:
getAssociations in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNumberOfAssociations

public long getNumberOfAssociations(org.tmapi.core.Topic type)

Specified by:
getNumberOfAssociations in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getAssociations

public java.util.List<org.tmapi.core.Association> getAssociations(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                                  int offset,
                                                                  int limit)

Specified by:
getAssociations in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getAssociations

public java.util.List<org.tmapi.core.Association> getAssociations(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                                  int offset,
                                                                  int limit,
                                                                  java.util.Comparator<org.tmapi.core.Association> comparator)

Specified by:
getAssociations in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNumberOfAssociations

public long getNumberOfAssociations(java.util.Collection<? extends org.tmapi.core.Topic> types)

Specified by:
getNumberOfAssociations in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getCharacteristicTypes

public java.util.List<org.tmapi.core.Topic> getCharacteristicTypes(int offset,
                                                                   int limit)

Specified by:
getCharacteristicTypes in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getCharacteristicTypes

public java.util.List<org.tmapi.core.Topic> getCharacteristicTypes(int offset,
                                                                   int limit,
                                                                   java.util.Comparator<org.tmapi.core.Topic> comparator)

Specified by:
getCharacteristicTypes in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNumberOfCharacteristicTypes

public long getNumberOfCharacteristicTypes()

Specified by:
getNumberOfCharacteristicTypes in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getCharacteristics

public java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(org.tmapi.core.Topic type,
                                                                                               int offset,
                                                                                               int limit)

Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getCharacteristics

public java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(org.tmapi.core.Topic type,
                                                                                               int offset,
                                                                                               int limit,
                                                                                               java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)

Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNumberOfCharacteristics

public long getNumberOfCharacteristics(org.tmapi.core.Topic type)

Specified by:
getNumberOfCharacteristics in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getCharacteristics

public java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                                                               int offset,
                                                                                               int limit)

Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getCharacteristics

public java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                                                               int offset,
                                                                                               int limit,
                                                                                               java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)

Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNumberOfCharacteristics

public long getNumberOfCharacteristics(java.util.Collection<? extends org.tmapi.core.Topic> types)

Specified by:
getNumberOfCharacteristics in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNameTypes

public java.util.List<org.tmapi.core.Topic> getNameTypes(int offset,
                                                         int limit)

Specified by:
getNameTypes in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNameTypes

public java.util.List<org.tmapi.core.Topic> getNameTypes(int offset,
                                                         int limit,
                                                         java.util.Comparator<org.tmapi.core.Topic> comparator)

Specified by:
getNameTypes in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNumberOfNameTypes

public long getNumberOfNameTypes()

Specified by:
getNumberOfNameTypes in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNames

public java.util.List<org.tmapi.core.Name> getNames(org.tmapi.core.Topic type,
                                                    int offset,
                                                    int limit)

Specified by:
getNames in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNames

public java.util.List<org.tmapi.core.Name> getNames(org.tmapi.core.Topic type,
                                                    int offset,
                                                    int limit,
                                                    java.util.Comparator<org.tmapi.core.Name> comparator)

Specified by:
getNames in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNumberOfNames

public long getNumberOfNames(org.tmapi.core.Topic type)

Specified by:
getNumberOfNames in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNames

public java.util.List<org.tmapi.core.Name> getNames(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                    int offset,
                                                    int limit)

Specified by:
getNames in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNames

public java.util.List<org.tmapi.core.Name> getNames(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                    int offset,
                                                    int limit,
                                                    java.util.Comparator<org.tmapi.core.Name> comparator)

Specified by:
getNames in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNumberOfNames

public long getNumberOfNames(java.util.Collection<? extends org.tmapi.core.Topic> types)

Specified by:
getNumberOfNames in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getOccurrenceTypes

public java.util.List<org.tmapi.core.Topic> getOccurrenceTypes(int offset,
                                                               int limit)

Specified by:
getOccurrenceTypes in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getOccurrenceTypes

public java.util.List<org.tmapi.core.Topic> getOccurrenceTypes(int offset,
                                                               int limit,
                                                               java.util.Comparator<org.tmapi.core.Topic> comparator)

Specified by:
getOccurrenceTypes in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNumberOfOccurrenceTypes

public long getNumberOfOccurrenceTypes()

Specified by:
getNumberOfOccurrenceTypes in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getOccurrences

public java.util.List<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic type,
                                                                int offset,
                                                                int limit)

Specified by:
getOccurrences in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getOccurrences

public java.util.List<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic type,
                                                                int offset,
                                                                int limit,
                                                                java.util.Comparator<org.tmapi.core.Occurrence> comparator)

Specified by:
getOccurrences in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNumberOfOccurrences

public long getNumberOfOccurrences(org.tmapi.core.Topic type)

Specified by:
getNumberOfOccurrences in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getOccurrences

public java.util.List<org.tmapi.core.Occurrence> getOccurrences(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                                int offset,
                                                                int limit)

Specified by:
getOccurrences in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getOccurrences

public java.util.List<org.tmapi.core.Occurrence> getOccurrences(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                                int offset,
                                                                int limit,
                                                                java.util.Comparator<org.tmapi.core.Occurrence> comparator)

Specified by:
getOccurrences in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNumberOfOccurrences

public long getNumberOfOccurrences(java.util.Collection<? extends org.tmapi.core.Topic> types)

Specified by:
getNumberOfOccurrences in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getRoleTypes

public java.util.List<org.tmapi.core.Topic> getRoleTypes(int offset,
                                                         int limit)

Specified by:
getRoleTypes in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getRoleTypes

public java.util.List<org.tmapi.core.Topic> getRoleTypes(int offset,
                                                         int limit,
                                                         java.util.Comparator<org.tmapi.core.Topic> comparator)

Specified by:
getRoleTypes in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNumberOfRoleTypes

public long getNumberOfRoleTypes()

Specified by:
getNumberOfRoleTypes in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getRoles

public java.util.List<org.tmapi.core.Role> getRoles(org.tmapi.core.Topic type,
                                                    int offset,
                                                    int limit)

Specified by:
getRoles in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getRoles

public java.util.List<org.tmapi.core.Role> getRoles(org.tmapi.core.Topic type,
                                                    int offset,
                                                    int limit,
                                                    java.util.Comparator<org.tmapi.core.Role> comparator)

Specified by:
getRoles in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNumberOfRoles

public long getNumberOfRoles(org.tmapi.core.Topic type)

Specified by:
getNumberOfRoles in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getRoles

public java.util.List<org.tmapi.core.Role> getRoles(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                    int offset,
                                                    int limit)

Specified by:
getRoles in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getRoles

public java.util.List<org.tmapi.core.Role> getRoles(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                    int offset,
                                                    int limit,
                                                    java.util.Comparator<org.tmapi.core.Role> comparator)

Specified by:
getRoles in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNumberOfRoles

public long getNumberOfRoles(java.util.Collection<? extends org.tmapi.core.Topic> types)

Specified by:
getNumberOfRoles in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getTopicTypes

public java.util.List<org.tmapi.core.Topic> getTopicTypes(int offset,
                                                          int limit)

Specified by:
getTopicTypes in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getTopicTypes

public java.util.List<org.tmapi.core.Topic> getTopicTypes(int offset,
                                                          int limit,
                                                          java.util.Comparator<org.tmapi.core.Topic> comparator)

Specified by:
getTopicTypes in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNumberOfTopicTypes

public long getNumberOfTopicTypes()

Specified by:
getNumberOfTopicTypes in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getTopics

public java.util.List<org.tmapi.core.Topic> getTopics(org.tmapi.core.Topic type,
                                                      int offset,
                                                      int limit)

Specified by:
getTopics in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getTopics

public java.util.List<org.tmapi.core.Topic> getTopics(org.tmapi.core.Topic type,
                                                      int offset,
                                                      int limit,
                                                      java.util.Comparator<org.tmapi.core.Topic> comparator)

Specified by:
getTopics in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNumberOfTopics

public long getNumberOfTopics(org.tmapi.core.Topic type)

Specified by:
getNumberOfTopics in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getTopics

public java.util.List<org.tmapi.core.Topic> getTopics(java.util.Collection<org.tmapi.core.Topic> types,
                                                      int offset,
                                                      int limit)

Specified by:
getTopics in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getTopics

public java.util.List<org.tmapi.core.Topic> getTopics(java.util.Collection<org.tmapi.core.Topic> types,
                                                      int offset,
                                                      int limit,
                                                      java.util.Comparator<org.tmapi.core.Topic> comparator)

Specified by:
getTopics in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNumberOfTopics

public long getNumberOfTopics(java.util.Collection<org.tmapi.core.Topic> types)

Specified by:
getNumberOfTopics in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getTopics

public java.util.List<org.tmapi.core.Topic> getTopics(java.util.Collection<org.tmapi.core.Topic> types,
                                                      boolean all,
                                                      int offset,
                                                      int limit)

Specified by:
getTopics in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getTopics

public java.util.List<org.tmapi.core.Topic> getTopics(java.util.Collection<org.tmapi.core.Topic> types,
                                                      boolean all,
                                                      int offset,
                                                      int limit,
                                                      java.util.Comparator<org.tmapi.core.Topic> comparator)

Specified by:
getTopics in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

getNumberOfTopics

public long getNumberOfTopics(java.util.Collection<org.tmapi.core.Topic> types,
                              boolean all)

Specified by:
getNumberOfTopics in interface de.topicmapslab.majortom.model.index.paging.IPagedTypeInstanceIndex

doGetTopicTypes

protected java.util.List<org.tmapi.core.Topic> doGetTopicTypes(int offset,
                                                               int limit)
Returns all topic types of the topic map.

Parameters:
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the topic types within the given range

doGetTopicTypes

protected java.util.List<org.tmapi.core.Topic> doGetTopicTypes(int offset,
                                                               int limit,
                                                               java.util.Comparator<org.tmapi.core.Topic> comparator)
Returns all topic types of the topic map.

Parameters:
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the topic types within the given range

doGetNumberOfTopicTypes

protected long doGetNumberOfTopicTypes()
Returns the number of topic types

Returns:
the number of topic types

doGetTopics

protected java.util.List<org.tmapi.core.Topic> doGetTopics(org.tmapi.core.Topic type,
                                                           int offset,
                                                           int limit)
Returns all topic instances of the given topic type within the given range.

Parameters:
type - the type
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the topic within the given range

doGetTopics

protected java.util.List<org.tmapi.core.Topic> doGetTopics(org.tmapi.core.Topic type,
                                                           int offset,
                                                           int limit,
                                                           java.util.Comparator<org.tmapi.core.Topic> comparator)
Returns all topic instances of the given topic type within the given range.

Parameters:
type - the type
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the topic within the given range

doGetNumberOfTopics

protected long doGetNumberOfTopics(org.tmapi.core.Topic type)
Returns the number of all topic instances of the given topic type within the given range.

Parameters:
type - the type
Returns:
the number

doGetTopics

protected java.util.List<org.tmapi.core.Topic> doGetTopics(java.util.Collection<org.tmapi.core.Topic> types,
                                                           boolean all,
                                                           int offset,
                                                           int limit)
Returns all instances of at least one given type or of every given topic type.

Parameters:
types - the topic types
all - flag indicates if the found instances should be typed by every given type
offset - the index of the first item
limit - the maximum count of returned values
Returns:
a list of all instances typed by at least one or every of the given types within the given range

doGetTopics

protected java.util.List<org.tmapi.core.Topic> doGetTopics(java.util.Collection<org.tmapi.core.Topic> types,
                                                           boolean all,
                                                           int offset,
                                                           int limit,
                                                           java.util.Comparator<org.tmapi.core.Topic> comparator)
Returns all instances of at least one given type or of every given topic type.

Parameters:
types - the topic types
all - flag indicates if the found instances should be typed by every given type
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
a list of all instances typed by at least one or every of the given types within the given range

doGetNumberOfTopics

protected long doGetNumberOfTopics(java.util.Collection<org.tmapi.core.Topic> types,
                                   boolean all)
Returns the number of instances of at least one given type or of every given topic type.

Parameters:
types - the topic types
all - flag indicates if the found instances should be typed by every given type
Returns:
the number

doGetAssociationTypes

protected java.util.List<org.tmapi.core.Topic> doGetAssociationTypes(int offset,
                                                                     int limit)
Returns all association types of the topic map.

Parameters:
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the association types within the given range

doGetAssociationTypes

protected java.util.List<org.tmapi.core.Topic> doGetAssociationTypes(int offset,
                                                                     int limit,
                                                                     java.util.Comparator<org.tmapi.core.Topic> comparator)
Returns all association types of the topic map.

Parameters:
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the association types within the given range

doGetNumberOfAssociationTypes

protected long doGetNumberOfAssociationTypes()
Returns the number of association types

Returns:
the number of association types

doGetAssociations

protected java.util.List<org.tmapi.core.Association> doGetAssociations(org.tmapi.core.Topic type,
                                                                       int offset,
                                                                       int limit)
Return all associations of the given type within the given range

Parameters:
type - the type
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all associations of the type within the given range

doGetAssociations

protected java.util.List<org.tmapi.core.Association> doGetAssociations(org.tmapi.core.Topic type,
                                                                       int offset,
                                                                       int limit,
                                                                       java.util.Comparator<org.tmapi.core.Association> comparator)
Return all associations of the given type within the given range

Parameters:
type - the type
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all associations of the type within the given range

doGetNumberOfAssociations

protected long doGetNumberOfAssociations(org.tmapi.core.Topic type)
Returns the number of associations typed by the given topic

Parameters:
type - the type
Returns:
the number

doGetAssociations

protected java.util.List<org.tmapi.core.Association> doGetAssociations(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                                       int offset,
                                                                       int limit)
Returns all association items typed by one of the given types.

Parameters:
types - the topic types
offset - the index of the first item
limit - the maximum count of returned values
Returns:
a list of all association items typed by one of the given types within the given range

doGetAssociations

protected java.util.List<org.tmapi.core.Association> doGetAssociations(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                                       int offset,
                                                                       int limit,
                                                                       java.util.Comparator<org.tmapi.core.Association> comparator)
Returns all association items typed by one of the given types.

Parameters:
types - the topic types
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
a list of all association items typed by one of the given types within the given range

doGetNumberOfAssociations

protected long doGetNumberOfAssociations(java.util.Collection<? extends org.tmapi.core.Topic> types)
Returns the number of associations typed by one of the given topics

Parameters:
types - the topic types
Returns:
the number

doGetRoleTypes

protected java.util.List<org.tmapi.core.Topic> doGetRoleTypes(int offset,
                                                              int limit)
Return all role types of the topic map within the given range.

Parameters:
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all role types of the topic map within the given range.

doGetRoleTypes

protected java.util.List<org.tmapi.core.Topic> doGetRoleTypes(int offset,
                                                              int limit,
                                                              java.util.Comparator<org.tmapi.core.Topic> comparator)
Return all role types of the topic map within the given range.

Parameters:
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all role types of the topic map within the given range.

doGetNumberOfRoleTypes

protected long doGetNumberOfRoleTypes()
Returns the number of role types

Returns:
the number of role types

doGetRoles

protected java.util.List<org.tmapi.core.Role> doGetRoles(org.tmapi.core.Topic type,
                                                         int offset,
                                                         int limit)
Return all roles of the given type within the given range.

Parameters:
type - the role type
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all roles of the given type within the given range

doGetRoles

protected java.util.List<org.tmapi.core.Role> doGetRoles(org.tmapi.core.Topic type,
                                                         int offset,
                                                         int limit,
                                                         java.util.Comparator<org.tmapi.core.Role> comparator)
Return all roles of the given type within the given range.

Parameters:
type - the role type
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all roles of the given type within the given range

doGetNumberOfRoles

protected long doGetNumberOfRoles(org.tmapi.core.Topic type)
Returns the number of roles typed by the given topic

Parameters:
type - the role type
Returns:
the number

doGetRoles

protected java.util.List<org.tmapi.core.Role> doGetRoles(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                         int offset,
                                                         int limit)
Returns all association roles typed by one of the given types.

Parameters:
types - the topic types
offset - the index of the first item
limit - the maximum count of returned values
Returns:
a list of all association roles typed by one of the given types within the given range

doGetRoles

protected java.util.List<org.tmapi.core.Role> doGetRoles(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                         int offset,
                                                         int limit,
                                                         java.util.Comparator<org.tmapi.core.Role> comparator)
Returns all association roles typed by one of the given types.

Parameters:
types - the topic types
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
a list of all association roles typed by one of the given types within the given range

doGetNumberOfRoles

protected long doGetNumberOfRoles(java.util.Collection<? extends org.tmapi.core.Topic> types)
Returns the number of roles typed by the given topics

Parameters:
types - the role types
Returns:
the number

doGetCharacteristicTypes

protected java.util.List<org.tmapi.core.Topic> doGetCharacteristicTypes(int offset,
                                                                        int limit)
Returns all characteristic types contained by the topic map.

Parameters:
offset - the index of the first item
limit - the maximum count of returned values
Returns:
a list of all types within the given range

doGetCharacteristicTypes

protected java.util.List<org.tmapi.core.Topic> doGetCharacteristicTypes(int offset,
                                                                        int limit,
                                                                        java.util.Comparator<org.tmapi.core.Topic> comparator)
Returns all characteristic types contained by the topic map.

Parameters:
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
a list of all types within the given range

doGetNumberOfCharacteristicTypes

protected long doGetNumberOfCharacteristicTypes()
Returns the number of characteristic types

Returns:
the number

doGetCharacteristics

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(org.tmapi.core.Topic type,
                                                                                                    int offset,
                                                                                                    int limit)
Returns all characteristics being typed by the given of topic type.

Parameters:
type - the topic type
offset - the index of the first item
limit - the maximum count of returned values
Returns:
a list of all characteristics typed by the given type within the given range

doGetCharacteristics

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(org.tmapi.core.Topic type,
                                                                                                    int offset,
                                                                                                    int limit,
                                                                                                    java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics being typed by the given of topic type.

Parameters:
type - the topic type
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
a list of all characteristics typed by the given type within the given range

doGetNumberOfCharacteristics

protected long doGetNumberOfCharacteristics(org.tmapi.core.Topic type)
Returns the number of all characteristics being typed by the given of topic type.

Parameters:
type - the topic type
Returns:
the number

doGetCharacteristics

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                                                                    int offset,
                                                                                                    int limit)
Returns all characteristics typed by one of given types.

Parameters:
types - the topic types
offset - the index of the first item
limit - the maximum count of returned values
Returns:
a list of all characteristics typed by one of the given types within the given range

doGetCharacteristics

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                                                                    int offset,
                                                                                                    int limit,
                                                                                                    java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics typed by one of given types.

Parameters:
types - the topic types
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
a list of all characteristics typed by one of the given types within the given range

doGetNumberOfCharacteristics

protected long doGetNumberOfCharacteristics(java.util.Collection<? extends org.tmapi.core.Topic> types)
Returns the number of all characteristics being typed by the given of topic types.

Parameters:
types - the topic types
Returns:
the number

doGetNameTypes

protected java.util.List<org.tmapi.core.Topic> doGetNameTypes(int offset,
                                                              int limit)
Return all name types of the topic map within the given range.

Parameters:
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all name types within the given range

doGetNameTypes

protected java.util.List<org.tmapi.core.Topic> doGetNameTypes(int offset,
                                                              int limit,
                                                              java.util.Comparator<org.tmapi.core.Topic> comparator)
Return all name types of the topic map within the given range.

Parameters:
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all name types within the given range

doGetNumberOfNameTypes

protected long doGetNumberOfNameTypes()
Returns the number of name types

Returns:
the number of name types

doGetNames

protected java.util.List<org.tmapi.core.Name> doGetNames(org.tmapi.core.Topic type,
                                                         int offset,
                                                         int limit)
Return all names of the given type within the given range.

Parameters:
type - the type
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all names of the given type within the given range.

doGetNames

protected java.util.List<org.tmapi.core.Name> doGetNames(org.tmapi.core.Topic type,
                                                         int offset,
                                                         int limit,
                                                         java.util.Comparator<org.tmapi.core.Name> comparator)
Return all names of the given type within the given range.

Parameters:
type - the type
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all names of the given type within the given range.

doGetNumberOfNames

protected long doGetNumberOfNames(org.tmapi.core.Topic type)
Returns the number of all names of the given type.

Parameters:
type - the type
Returns:
the number

doGetNames

protected java.util.List<org.tmapi.core.Name> doGetNames(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                         int offset,
                                                         int limit)
Returns all names typed by one of the given types.

Parameters:
types - the topic types
offset - the index of the first item
limit - the maximum count of returned values
Returns:
a list of all names typed by one of the given types within the given range

doGetNames

protected java.util.List<org.tmapi.core.Name> doGetNames(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                         int offset,
                                                         int limit,
                                                         java.util.Comparator<org.tmapi.core.Name> comparator)
Returns all names typed by one of the given types.

Parameters:
types - the topic types
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
a list of all names typed by one of the given types within the given range

doGetNumberOfNames

protected long doGetNumberOfNames(java.util.Collection<? extends org.tmapi.core.Topic> types)
Returns the number of all names of the given types.

Parameters:
types - the types
Returns:
the number

doGetOccurrenceTypes

protected java.util.List<org.tmapi.core.Topic> doGetOccurrenceTypes(int offset,
                                                                    int limit)
Return all occurrence types of the topic map within the given range.

Parameters:
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all occurrence types within the given range

doGetOccurrenceTypes

protected java.util.List<org.tmapi.core.Topic> doGetOccurrenceTypes(int offset,
                                                                    int limit,
                                                                    java.util.Comparator<org.tmapi.core.Topic> comparator)
Return all occurrence types of the topic map within the given range.

Parameters:
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all occurrence types within the given range

doGetNumberOfOccurrenceTypes

protected long doGetNumberOfOccurrenceTypes()
Returns the number of occurrence types

Returns:
the number

doGetOccurrences

protected java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(org.tmapi.core.Topic type,
                                                                     int offset,
                                                                     int limit)
Return all occurrences of the given type within the given range.

Parameters:
type - the type
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all occurrences of the given type within the given range.

doGetOccurrences

protected java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(org.tmapi.core.Topic type,
                                                                     int offset,
                                                                     int limit,
                                                                     java.util.Comparator<org.tmapi.core.Occurrence> comparator)
Return all occurrences of the given type within the given range.

Parameters:
type - the type
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
all occurrences of the given type within the given range.

doGetNumberOfOccurrences

protected long doGetNumberOfOccurrences(org.tmapi.core.Topic type)
Returns the number of occurrences typed by the given topic type

Parameters:
type - the type
Returns:
the number

doGetOccurrences

protected java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                                     int offset,
                                                                     int limit)
Returns all occurrences typed by one of the given types.

Parameters:
types - the topic types
offset - the index of the first item
limit - the maximum count of returned values
Returns:
a list of all occurrences typed by one of the given types within the given range

doGetOccurrences

protected java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                                     int offset,
                                                                     int limit,
                                                                     java.util.Comparator<org.tmapi.core.Occurrence> comparator)
Returns all occurrences typed by one of the given types.

Parameters:
types - the topic types
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
a collection of all occurrences typed by one of the given types within the given range

doGetNumberOfOccurrences

protected long doGetNumberOfOccurrences(java.util.Collection<? extends org.tmapi.core.Topic> types)
Returns the number of occurrences typed by the given topic types

Parameters:
types - the types
Returns:
the number

open

public void open()

Specified by:
open in interface org.tmapi.index.Index
Overrides:
open in class BaseCachedTypeInstanceIndexImpl<E extends de.topicmapslab.majortom.model.store.ITopicMapStore>