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

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<JdbcTopicMapStore>
                  extended by de.topicmapslab.majortom.database.jdbc.index.paged.JdbcPagedTypeInstanceIndex
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

public class JdbcPagedTypeInstanceIndex
extends PagedTypeInstanceIndexImpl<JdbcTopicMapStore>

Author:
Sven Krosse

Constructor Summary
JdbcPagedTypeInstanceIndex(JdbcTopicMapStore store, de.topicmapslab.majortom.model.index.ITypeInstanceIndex parentIndex)
           
 
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  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.
 
Methods inherited from class de.topicmapslab.majortom.index.paged.PagedTypeInstanceIndexImpl
doGetNumberOfAssociations, doGetNumberOfAssociations, doGetNumberOfAssociationTypes, doGetNumberOfCharacteristics, doGetNumberOfCharacteristics, doGetNumberOfCharacteristicTypes, doGetNumberOfNames, doGetNumberOfNames, doGetNumberOfNameTypes, doGetNumberOfOccurrences, doGetNumberOfOccurrences, doGetNumberOfOccurrenceTypes, doGetNumberOfRoles, doGetNumberOfRoles, doGetNumberOfRoleTypes, doGetNumberOfTopics, doGetNumberOfTopics, doGetNumberOfTopicTypes, getAssociations, getAssociations, getAssociations, getAssociations, getAssociationTypes, getAssociationTypes, getCharacteristics, getCharacteristics, getCharacteristics, getCharacteristics, getCharacteristicTypes, getCharacteristicTypes, getNames, getNames, getNames, getNames, getNameTypes, getNameTypes, getNumberOfAssociations, getNumberOfAssociations, getNumberOfAssociationTypes, getNumberOfCharacteristics, getNumberOfCharacteristics, getNumberOfCharacteristicTypes, getNumberOfNames, getNumberOfNames, getNumberOfNameTypes, getNumberOfOccurrences, getNumberOfOccurrences, getNumberOfOccurrenceTypes, getNumberOfRoles, getNumberOfRoles, getNumberOfRoleTypes, getNumberOfTopics, getNumberOfTopics, getNumberOfTopics, getNumberOfTopicTypes, getOccurrences, getOccurrences, getOccurrences, getOccurrences, getOccurrenceTypes, getOccurrenceTypes, getParentIndex, getRoles, getRoles, getRoles, getRoles, getRoleTypes, getRoleTypes, getTopics, getTopics, getTopics, getTopics, getTopics, getTopics, getTopicTypes, getTopicTypes, 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
 

Constructor Detail

JdbcPagedTypeInstanceIndex

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

doGetAssociationTypes

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

Overrides:
doGetAssociationTypes in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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.

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

Overrides:
doGetAssociationTypes in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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

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.

Overrides:
doGetAssociations in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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.

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

Overrides:
doGetAssociations in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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

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

Overrides:
doGetAssociations in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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

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

Overrides:
doGetAssociations in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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

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.

Overrides:
doGetCharacteristics in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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.

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

Overrides:
doGetCharacteristics in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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

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.

Overrides:
doGetCharacteristics in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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.

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

Overrides:
doGetCharacteristics in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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

doGetCharacteristicTypes

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

Overrides:
doGetCharacteristicTypes in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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.

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

Overrides:
doGetCharacteristicTypes in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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

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.

Overrides:
doGetNames in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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.

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

Overrides:
doGetNames in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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

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.

Overrides:
doGetNames in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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.

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

Overrides:
doGetNames in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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.

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.

Overrides:
doGetNameTypes in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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.

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

Overrides:
doGetNameTypes in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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

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.

Overrides:
doGetOccurrences in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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.

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

Overrides:
doGetOccurrences in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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

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.

Overrides:
doGetOccurrences in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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.

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

Overrides:
doGetOccurrences in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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.

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.

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

Overrides:
doGetOccurrenceTypes in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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

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.

Overrides:
doGetOccurrenceTypes in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all occurrence 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.

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

Overrides:
doGetRoles in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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

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.

Overrides:
doGetRoles in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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(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.

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

Overrides:
doGetRoles in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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)
Return all roles of the given type within the given range.

Overrides:
doGetRoles in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
Parameters:
type - the role type
offset - the index of the first item
limit - the maximum count of returned values
Returns:
all roles of the given type 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.

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

Overrides:
doGetRoleTypes in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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.

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.

Overrides:
doGetRoleTypes in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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.

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.

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

Overrides:
doGetTopics in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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

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.

Overrides:
doGetTopics in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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(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.

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

Overrides:
doGetTopics in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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

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.

Overrides:
doGetTopics in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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

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.

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

Overrides:
doGetTopicTypes in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
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

doGetTopicTypes

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

Overrides:
doGetTopicTypes in class PagedTypeInstanceIndexImpl<JdbcTopicMapStore>
Parameters:
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the topic types within the given range