de.topicmapslab.majortom.index.paged
Class PagedSupertypeSubtypeIndexImpl<T extends de.topicmapslab.majortom.model.store.ITopicMapStore>

java.lang.Object
  extended by de.topicmapslab.majortom.index.IndexImpl<T>
      extended by de.topicmapslab.majortom.index.core.BaseCachedIndexImpl<T>
          extended by de.topicmapslab.majortom.index.core.BaseCachedSupertypeSubtypeIndexImpl<T>
              extended by de.topicmapslab.majortom.index.paged.PagedSupertypeSubtypeIndexImpl<T>
All Implemented Interfaces:
de.topicmapslab.majortom.model.event.ITopicMapListener, de.topicmapslab.majortom.model.index.IIndex, de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex, org.tmapi.index.Index
Direct Known Subclasses:
InMemoryPagedSupertypeSubtypeIndex, JdbcPagedSupertypeSubtypeIndex, PagedRedisSupertypeSubtypeIndex

public abstract class PagedSupertypeSubtypeIndexImpl<T extends de.topicmapslab.majortom.model.store.ITopicMapStore>
extends BaseCachedSupertypeSubtypeIndexImpl<T>
implements de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

Implementation of IPagedSupertypeSubtypeIndex.

Author:
Sven Krosse

Nested Class Summary
 
Nested classes/interfaces inherited from class de.topicmapslab.majortom.index.core.BaseCachedSupertypeSubtypeIndexImpl
BaseCachedSupertypeSubtypeIndexImpl.Type
 
Field Summary
private  de.topicmapslab.majortom.model.index.ISupertypeSubtypeIndex parentIndex
           
 
Constructor Summary
PagedSupertypeSubtypeIndexImpl(T store, de.topicmapslab.majortom.model.index.ISupertypeSubtypeIndex parentIndex)
          constructor
 
Method Summary
protected  java.util.List<org.tmapi.core.Topic> doGetDirectSubtypes(org.tmapi.core.Topic type, int offset, int limit)
          Returns all topic types being a direct subtype of the given topic type.
protected  java.util.List<org.tmapi.core.Topic> doGetDirectSubtypes(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Returns all topic types being a direct subtype of the given topic type.
protected  java.util.List<org.tmapi.core.Topic> doGetDirectSupertypes(org.tmapi.core.Topic type, int offset, int limit)
          Returns all topic types being a direct supertype of the given topic type.
protected  java.util.List<org.tmapi.core.Topic> doGetDirectSupertypes(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Returns all topic types being a direct supertype of the given topic type.
protected  long doGetNumberOfDirectSubtypes(org.tmapi.core.Topic type)
          Returns the number of all topic types being a subtype of the given topic type.
protected  long doGetNumberOfDirectSupertypes(org.tmapi.core.Topic type)
          Returns the number of direct supertypes
protected  long doGetNumberOfSubtypes()
          Returns the number of all topic types being a subtype of a topic type contained by the topic map.
protected  long doGetNumberOfSubtypes(java.util.Collection<? extends org.tmapi.core.Topic> types, boolean all)
          Returns the number of all topic types being a subtype of at least one given type or of every given topic type.
protected  long doGetNumberOfSubtypes(org.tmapi.core.Topic type)
          Returns the number of all topic types being a subtype of the given topic type.
protected  long doGetNumberOfSupertypes()
          Returns the number of supertypes
protected  long doGetNumberOfSupertypes(java.util.Collection<? extends org.tmapi.core.Topic> types, boolean all)
          Returns the number of topic types being a supertype of at least one given type or of every given topic type.
protected  long doGetNumberOfSupertypes(org.tmapi.core.Topic type)
          Returns the number of supertypes
protected  java.util.List<org.tmapi.core.Topic> doGetSubtypes(java.util.Collection<? extends org.tmapi.core.Topic> types, boolean all, int offset, int limit)
          Returns all topic types being a subtype of at least one given type or of every given topic type.
protected  java.util.List<org.tmapi.core.Topic> doGetSubtypes(java.util.Collection<? extends org.tmapi.core.Topic> types, boolean all, int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Returns all topic types being a subtype of at least one given type or of every given topic type.
protected  java.util.List<org.tmapi.core.Topic> doGetSubtypes(int offset, int limit)
          Returns all topic types being a subtype of a topic type contained by the topic map.
protected  java.util.List<org.tmapi.core.Topic> doGetSubtypes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Returns all topic types being a subtype of a topic type contained by the topic map.
protected  java.util.List<org.tmapi.core.Topic> doGetSubtypes(org.tmapi.core.Topic type, int offset, int limit)
          Returns all topic types being a subtype of the given topic type.
protected  java.util.List<org.tmapi.core.Topic> doGetSubtypes(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Returns all topic types being a subtype of the given topic type.
protected  java.util.List<org.tmapi.core.Topic> doGetSupertypes(java.util.Collection<? extends org.tmapi.core.Topic> types, boolean all, int offset, int limit)
          Returns all topic types being a supertype of at least one given type or of every given topic type.
protected  java.util.List<org.tmapi.core.Topic> doGetSupertypes(java.util.Collection<? extends org.tmapi.core.Topic> types, boolean all, int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Returns all topic types being a supertype of at least one given type or of every given topic type.
protected  java.util.List<org.tmapi.core.Topic> doGetSupertypes(int offset, int limit)
          Returns all topic types being a supertype of a topic type contained by the topic map.
protected  java.util.List<org.tmapi.core.Topic> doGetSupertypes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Returns all topic types being a supertype of a topic type contained by the topic map.
protected  java.util.List<org.tmapi.core.Topic> doGetSupertypes(org.tmapi.core.Topic type, int offset, int limit)
          Returns all topic types being a supertype of the given topic type.If the type is null the method returns all topics which have no super-types.
protected  java.util.List<org.tmapi.core.Topic> doGetSupertypes(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          Returns all topic types being a supertype of the given topic type.If the type is null the method returns all topics which have no super-types.
 java.util.List<org.tmapi.core.Topic> getDirectSubtypes(org.tmapi.core.Topic type, int offset, int limit)
          
 java.util.List<org.tmapi.core.Topic> getDirectSubtypes(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          
 java.util.List<org.tmapi.core.Topic> getDirectSupertypes(org.tmapi.core.Topic type, int offset, int limit)
          
 java.util.List<org.tmapi.core.Topic> getDirectSupertypes(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          
 long getNumberOfDirectSubtypes(org.tmapi.core.Topic type)
          
 long getNumberOfDirectSupertypes(org.tmapi.core.Topic type)
          
 long getNumberOfSubtypes()
          
 long getNumberOfSubtypes(java.util.Collection<? extends org.tmapi.core.Topic> types)
          
 long getNumberOfSubtypes(java.util.Collection<? extends org.tmapi.core.Topic> types, boolean all)
          
 long getNumberOfSubtypes(org.tmapi.core.Topic type)
          
 long getNumberOfSupertypes()
          
 long getNumberOfSupertypes(java.util.Collection<? extends org.tmapi.core.Topic> types)
          
 long getNumberOfSupertypes(java.util.Collection<? extends org.tmapi.core.Topic> types, boolean all)
          
 long getNumberOfSupertypes(org.tmapi.core.Topic type)
          
 de.topicmapslab.majortom.model.index.ISupertypeSubtypeIndex getParentIndex()
           
 java.util.List<org.tmapi.core.Topic> getSubtypes(java.util.Collection<? extends org.tmapi.core.Topic> types, boolean all, int offset, int limit)
          
 java.util.List<org.tmapi.core.Topic> getSubtypes(java.util.Collection<? extends 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> getSubtypes(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit)
          
 java.util.List<org.tmapi.core.Topic> getSubtypes(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          
 java.util.List<org.tmapi.core.Topic> getSubtypes(int offset, int limit)
          
 java.util.List<org.tmapi.core.Topic> getSubtypes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          
 java.util.List<org.tmapi.core.Topic> getSubtypes(org.tmapi.core.Topic type, int offset, int limit)
          
 java.util.List<org.tmapi.core.Topic> getSubtypes(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          
 java.util.List<org.tmapi.core.Topic> getSupertypes(java.util.Collection<? extends org.tmapi.core.Topic> types, boolean all, int offset, int limit)
          
 java.util.List<org.tmapi.core.Topic> getSupertypes(java.util.Collection<? extends 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> getSupertypes(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit)
          
 java.util.List<org.tmapi.core.Topic> getSupertypes(java.util.Collection<? extends org.tmapi.core.Topic> types, int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          
 java.util.List<org.tmapi.core.Topic> getSupertypes(int offset, int limit)
          
 java.util.List<org.tmapi.core.Topic> getSupertypes(int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          
 java.util.List<org.tmapi.core.Topic> getSupertypes(org.tmapi.core.Topic type, int offset, int limit)
          
 java.util.List<org.tmapi.core.Topic> getSupertypes(org.tmapi.core.Topic type, int offset, int limit, java.util.Comparator<org.tmapi.core.Topic> comparator)
          
 void open()
          
 
Methods inherited from class de.topicmapslab.majortom.index.core.BaseCachedSupertypeSubtypeIndexImpl
cache, cache, cacheNumberOfConstructs, clear, clearCache, close, 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 de.topicmapslab.majortom.model.index.ISupertypeSubtypeIndex parentIndex
Constructor Detail

PagedSupertypeSubtypeIndexImpl

public PagedSupertypeSubtypeIndexImpl(T store,
                                      de.topicmapslab.majortom.model.index.ISupertypeSubtypeIndex parentIndex)
constructor

Parameters:
store - the internal topic map store
parentIndex - the parent index
Method Detail

getParentIndex

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

getDirectSubtypes

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

Specified by:
getDirectSubtypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getDirectSubtypes

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

Specified by:
getDirectSubtypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getNumberOfDirectSubtypes

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

Specified by:
getNumberOfDirectSubtypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getDirectSupertypes

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

Specified by:
getDirectSupertypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getDirectSupertypes

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

Specified by:
getDirectSupertypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getNumberOfDirectSupertypes

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

Specified by:
getNumberOfDirectSupertypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getSubtypes

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

Specified by:
getSubtypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getSubtypes

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

Specified by:
getSubtypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getNumberOfSubtypes

public long getNumberOfSubtypes()

Specified by:
getNumberOfSubtypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getSubtypes

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

Specified by:
getSubtypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getSubtypes

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

Specified by:
getSubtypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getNumberOfSubtypes

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

Specified by:
getNumberOfSubtypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getSubtypes

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

Specified by:
getSubtypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getSubtypes

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

Specified by:
getSubtypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getNumberOfSubtypes

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

Specified by:
getNumberOfSubtypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getSubtypes

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

Specified by:
getSubtypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getSubtypes

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

Specified by:
getSubtypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getNumberOfSubtypes

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

Specified by:
getNumberOfSubtypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getSupertypes

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

Specified by:
getSupertypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getSupertypes

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

Specified by:
getSupertypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getNumberOfSupertypes

public long getNumberOfSupertypes()

Specified by:
getNumberOfSupertypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getSupertypes

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

Specified by:
getSupertypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getSupertypes

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

Specified by:
getSupertypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getNumberOfSupertypes

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

Specified by:
getNumberOfSupertypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getSupertypes

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

Specified by:
getSupertypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getSupertypes

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

Specified by:
getSupertypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getNumberOfSupertypes

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

Specified by:
getNumberOfSupertypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getSupertypes

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

Specified by:
getSupertypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getSupertypes

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

Specified by:
getSupertypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

getNumberOfSupertypes

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

Specified by:
getNumberOfSupertypes in interface de.topicmapslab.majortom.model.index.paging.IPagedSupertypeSubtypeIndex

open

public void open()

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

doGetSupertypes

protected java.util.List<org.tmapi.core.Topic> doGetSupertypes(int offset,
                                                               int limit)
Returns all topic types being a supertype of a topic type 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 supertypes within the given range

doGetSupertypes

protected java.util.List<org.tmapi.core.Topic> doGetSupertypes(int offset,
                                                               int limit,
                                                               java.util.Comparator<org.tmapi.core.Topic> comparator)
Returns all topic types being a supertype of a topic type 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 supertypes within the given range

doGetNumberOfSupertypes

protected long doGetNumberOfSupertypes()
Returns the number of supertypes

Returns:
the number of supertypes

doGetSupertypes

protected java.util.List<org.tmapi.core.Topic> doGetSupertypes(org.tmapi.core.Topic type,
                                                               int offset,
                                                               int limit)
Returns all topic types being a supertype of the given topic type.If the type is null the method returns all topics which have no super-types.

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

doGetSupertypes

protected java.util.List<org.tmapi.core.Topic> doGetSupertypes(org.tmapi.core.Topic type,
                                                               int offset,
                                                               int limit,
                                                               java.util.Comparator<org.tmapi.core.Topic> comparator)
Returns all topic types being a supertype of the given topic type.If the type is null the method returns all topics which have no super-types.

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 supertypes of the given type within the given range

doGetNumberOfSupertypes

protected long doGetNumberOfSupertypes(org.tmapi.core.Topic type)
Returns the number of supertypes

Parameters:
type - the type
Returns:
the number of supertypes

doGetDirectSupertypes

protected java.util.List<org.tmapi.core.Topic> doGetDirectSupertypes(org.tmapi.core.Topic type,
                                                                     int offset,
                                                                     int limit)
Returns all topic types being a direct supertype of the given topic type. If the type is null the method returns all topics which have no super-types.

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

doGetDirectSupertypes

protected java.util.List<org.tmapi.core.Topic> doGetDirectSupertypes(org.tmapi.core.Topic type,
                                                                     int offset,
                                                                     int limit,
                                                                     java.util.Comparator<org.tmapi.core.Topic> comparator)
Returns all topic types being a direct supertype of the given topic type. If the type is null the method returns all topics which have no super-types.

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 supertypes of the given type within the given range

doGetNumberOfDirectSupertypes

protected long doGetNumberOfDirectSupertypes(org.tmapi.core.Topic type)
Returns the number of direct supertypes

Parameters:
type - the type
Returns:
the number of direct supertypes

doGetSupertypes

protected java.util.List<org.tmapi.core.Topic> doGetSupertypes(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                               boolean all,
                                                               int offset,
                                                               int limit)
Returns all topic types being a supertype of at least one given type or of every given topic type.

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

doGetSupertypes

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

Parameters:
types - the topic types
all - flag indicates if the found topic types should be an supertype of 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 supertypes of at least one of the given type within the given range

doGetNumberOfSupertypes

protected long doGetNumberOfSupertypes(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                       boolean all)
Returns the number of topic types being a supertype of at least one given type or of every given topic type.

Parameters:
type - the types
all - flag indicates if the found topic types should be an supertype of every given type
Returns:
the number of supertypes

doGetSubtypes

protected java.util.List<org.tmapi.core.Topic> doGetSubtypes(int offset,
                                                             int limit)
Returns all topic types being a subtype of a topic type 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 subtypes within the given range

doGetSubtypes

protected java.util.List<org.tmapi.core.Topic> doGetSubtypes(int offset,
                                                             int limit,
                                                             java.util.Comparator<org.tmapi.core.Topic> comparator)
Returns all topic types being a subtype of a topic type 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 subtypes within the given range

doGetNumberOfSubtypes

protected long doGetNumberOfSubtypes()
Returns the number of all topic types being a subtype of a topic type contained by the topic map.

Returns:
the number

doGetSubtypes

protected java.util.List<org.tmapi.core.Topic> doGetSubtypes(org.tmapi.core.Topic type,
                                                             int offset,
                                                             int limit)
Returns all topic types being a subtype of the given topic type. If the type is null the method returns all topics which has no sub-types.

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

doGetSubtypes

protected java.util.List<org.tmapi.core.Topic> doGetSubtypes(org.tmapi.core.Topic type,
                                                             int offset,
                                                             int limit,
                                                             java.util.Comparator<org.tmapi.core.Topic> comparator)
Returns all topic types being a subtype of the given topic type. If the type is null the method returns all topics which has no sub-types.

Parameters:
type - the topic type
Returns:
a list of all subtypes of the given type within the given range

doGetNumberOfSubtypes

protected long doGetNumberOfSubtypes(org.tmapi.core.Topic type)
Returns the number of all topic types being a subtype of the given topic type. If the type is null the method returns all topics which has no sub-types.

Parameters:
type - the topic type
Returns:
the number

doGetDirectSubtypes

protected java.util.List<org.tmapi.core.Topic> doGetDirectSubtypes(org.tmapi.core.Topic type,
                                                                   int offset,
                                                                   int limit)
Returns all topic types being a direct subtype of the given topic type. If the type is null the method returns all topics which has no sub-types.

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

doGetDirectSubtypes

protected java.util.List<org.tmapi.core.Topic> doGetDirectSubtypes(org.tmapi.core.Topic type,
                                                                   int offset,
                                                                   int limit,
                                                                   java.util.Comparator<org.tmapi.core.Topic> comparator)
Returns all topic types being a direct subtype of the given topic type. If the type is null the method returns all topics which has no sub-types.

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 subtypes of the given type within the given range

doGetNumberOfDirectSubtypes

protected long doGetNumberOfDirectSubtypes(org.tmapi.core.Topic type)
Returns the number of all topic types being a subtype of the given topic type. If the type is null the method returns all topics which has no sub-types.

Parameters:
type - the topic type
Returns:
the number

doGetSubtypes

protected java.util.List<org.tmapi.core.Topic> doGetSubtypes(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                                             boolean all,
                                                             int offset,
                                                             int limit)
Returns all topic types being a subtype of at least one given type or of every given topic type.

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

doGetSubtypes

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

Parameters:
types - the topic types
all - flag indicates if the found topic types should be an subtype of every given type
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
a collection of all subtypes of at least one of the given type

doGetNumberOfSubtypes

protected long doGetNumberOfSubtypes(java.util.Collection<? extends org.tmapi.core.Topic> types,
                                     boolean all)
Returns the number of all topic types being a subtype of at least one given type or of every given topic type.

Parameters:
types - the topic types
all - flag indicates if the found topic types should be an subtype of every given type
Returns:
the number