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

java.lang.Object
  extended by de.topicmapslab.majortom.index.IndexImpl<T>
      extended by de.topicmapslab.majortom.index.core.BaseCachedIndexImpl<X>
          extended by de.topicmapslab.majortom.index.core.BaseCachedLiteralIndexImpl<X>
              extended by de.topicmapslab.majortom.index.paged.PagedLiteralIndexImpl<JdbcTopicMapStore>
                  extended by de.topicmapslab.majortom.database.jdbc.index.paged.JdbcPagedLiteralIndex
All Implemented Interfaces:
de.topicmapslab.majortom.model.event.ITopicMapListener, de.topicmapslab.majortom.model.index.IIndex, de.topicmapslab.majortom.model.index.paging.IPagedLiteralIndex, org.tmapi.index.Index

public class JdbcPagedLiteralIndex
extends PagedLiteralIndexImpl<JdbcTopicMapStore>

Implementation class of IPagedLiteralIndex of the Jdbc Topic Map Store.

Author:
Sven Krosse

Constructor Summary
JdbcPagedLiteralIndex(JdbcTopicMapStore store, de.topicmapslab.majortom.model.index.ILiteralIndex parentIndex)
          constructor
 
Method Summary
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetBooleans(boolean value, int offset, int limit)
          Returns all characteristics with the given value and the datatype xsd:boolean.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetBooleans(boolean value, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics with the given value and the datatype xsd:boolean.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(org.tmapi.core.Locator datatype, int offset, int limit)
          Returns all characteristics with the given datatype.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(org.tmapi.core.Locator datatype, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics with the given datatype.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(java.lang.String value, int offset, int limit)
          Returns all characteristics with the given value.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(java.lang.String value, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics with the given value.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(java.lang.String value, org.tmapi.core.Locator datatype, int offset, int limit)
          Returns all characteristics with the given value and the given datatype.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(java.lang.String value, org.tmapi.core.Locator datatype, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics with the given value and the given datatype.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristicsMatches(java.util.regex.Pattern regExp, int offset, int limit)
          Returns all characteristics which has a value matches the given regular expression.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristicsMatches(java.util.regex.Pattern regExp, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics which has a value matches the given regular expression.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristicsMatches(java.util.regex.Pattern regExp, org.tmapi.core.Locator datatype, int offset, int limit)
          Returns all characteristics which has a value matches the given regular expression and has the datatype.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristicsMatches(java.util.regex.Pattern regExp, org.tmapi.core.Locator datatype, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics which has a value matches the given regular expression and has the datatype.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCoordinates(de.topicmapslab.geotype.wgs84.Wgs84Coordinate value, double deviance, int offset, int limit)
          Returns all characteristics with the datatype xsd:integer and a geographical coordinate which has a lower or equal distance to the given coordinate like the given deviance.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCoordinates(de.topicmapslab.geotype.wgs84.Wgs84Coordinate value, double deviance, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics with the datatype xsd:integer and a geographical coordinate which has a lower or equal distance to the given coordinate like the given deviance.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCoordinates(de.topicmapslab.geotype.wgs84.Wgs84Coordinate value, int offset, int limit)
          Returns all characteristics with the given value and the datatype tm:geo.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCoordinates(de.topicmapslab.geotype.wgs84.Wgs84Coordinate value, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics with the given value and the datatype tm:geo.
protected  java.util.List<de.topicmapslab.majortom.model.core.IDatatypeAware> doGetDatatypeAwares(org.tmapi.core.Locator dataType, int offset, int limit)
          Returns all variants and occurrences with the given data-type.
protected  java.util.List<de.topicmapslab.majortom.model.core.IDatatypeAware> doGetDatatypeAwares(org.tmapi.core.Locator dataType, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.IDatatypeAware> comparator)
          Returns all variants and occurrences with the given data-type.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDateTime(java.util.Calendar value, java.util.Calendar deviance, int offset, int limit)
          Returns all characteristics with the datatype xsd:time and with a time value which has a difference from the given value lower or equals than the given deviance.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDateTime(java.util.Calendar value, java.util.Calendar deviance, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics with the datatype xsd:time and with a time value which has a difference from the given value lower or equals than the given deviance.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDateTime(java.util.Calendar value, int offset, int limit)
          Returns all characteristics with the given value and the datatype xsd:dateTime.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDateTime(java.util.Calendar value, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics with the given value and the datatype xsd:dateTime.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDoubles(double value, double deviance, int offset, int limit)
          Returns all characteristics with the datatype xsd:double and a value contained by the given range [value - deviance, value + deviance].
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDoubles(double value, double deviance, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics with the datatype xsd:double and a value contained by the given range [value - deviance, value + deviance].
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDoubles(double value, int offset, int limit)
          Returns all characteristics with the given value and the datatype xsd:double.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDoubles(double value, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics with the given value and the datatype xsd:double.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetFloats(float value, double deviance, int offset, int limit)
          Returns all characteristics with the datatype xsd:float and a value contained by the given range [value - deviance, value + deviance].
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetFloats(float value, double deviance, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics with the datatype xsd:float and a value contained by the given range [value - deviance, value + deviance].
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetFloats(float value, int offset, int limit)
          Returns all characteristics with the given value and the datatype xsd:float.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetFloats(float value, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics with the given value and the datatype xsd:float.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetIntegers(int value, double deviance, int offset, int limit)
          Returns all characteristics with the datatype xsd:integer and a value contained by the given range [value - deviance, value + deviance].
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetIntegers(int value, double deviance, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics with the datatype xsd:integer and a value contained by the given range [value - deviance, value + deviance].
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetIntegers(int value, int offset, int limit)
          Returns all characteristics with the given value and the datatype xsd:integer.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetIntegers(int value, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics with the given value and the datatype xsd:integer.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetLongs(long value, double deviance, int offset, int limit)
          Returns all characteristics with the datatype xsd:long and a value contained by the given range [value - deviance, value + deviance].
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetLongs(long value, double deviance, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics with the datatype xsd:long and a value contained by the given range [value - deviance, value + deviance].
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetLongs(long value, int offset, int limit)
          Returns all characteristics with the given value and the datatype xsd:long.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetLongs(long value, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics with the given value and the datatype xsd:long.
protected  java.util.List<org.tmapi.core.Name> doGetNames(int offset, int limit)
          Return all names contained by the current topic map.
protected  java.util.List<org.tmapi.core.Name> doGetNames(int offset, int limit, java.util.Comparator<org.tmapi.core.Name> comparator)
          Return all names contained by the current topic map.
protected  java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(int offset, int limit)
          Return all occurrences contained by the current topic map.
protected  java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(int offset, int limit, java.util.Comparator<org.tmapi.core.Occurrence> comparator)
          Return all occurrences contained by the current topic map.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetUris(java.net.URI value, int offset, int limit)
          Returns all characteristics with the given value and the datatype xsd:anyURI.
protected  java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetUris(java.net.URI value, int offset, int limit, java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
          Returns all characteristics with the given value and the datatype xsd:anyURI.
protected  java.util.List<org.tmapi.core.Variant> doGetVariants(int offset, int limit)
          Return all variants contained by the current topic map.
protected  java.util.List<org.tmapi.core.Variant> doGetVariants(int offset, int limit, java.util.Comparator<org.tmapi.core.Variant> comparator)
          Return all variants contained by the current topic map.
 
Methods inherited from class de.topicmapslab.majortom.index.paged.PagedLiteralIndexImpl
getBooleans, getBooleans, getCharacteristics, getCharacteristics, getCharacteristics, getCharacteristics, getCharacteristics, getCharacteristics, getCharacteristicsMatches, getCharacteristicsMatches, getCharacteristicsMatches, getCharacteristicsMatches, getCharacteristicsMatches, getCharacteristicsMatches, getCharacteristicsMatches, getCharacteristicsMatches, getCoordinates, getCoordinates, getCoordinates, getCoordinates, getDatatypeAwares, getDatatypeAwares, getDateTime, getDateTime, getDateTime, getDateTime, getDoubles, getDoubles, getDoubles, getDoubles, getFloats, getFloats, getFloats, getFloats, getIntegers, getIntegers, getIntegers, getIntegers, getLongs, getLongs, getLongs, getLongs, getNames, getNames, getOccurrences, getOccurrences, getParentIndex, getUris, getUris, getVariants, getVariants, open
 
Methods inherited from class de.topicmapslab.majortom.index.core.BaseCachedLiteralIndexImpl
cache, cache, cacheConstructs, cacheConstructs, cacheConstructs, cacheConstructs, clear, clearCache, close, read, read, readConstructs, readConstructs, readConstructs, readConstructs, 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

JdbcPagedLiteralIndex

public JdbcPagedLiteralIndex(JdbcTopicMapStore store,
                             de.topicmapslab.majortom.model.index.ILiteralIndex parentIndex)
constructor

Parameters:
store - the store
parentIndex - the parent index ( non-paged index)
Method Detail

doGetBooleans

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetBooleans(boolean value,
                                                                                             int offset,
                                                                                             int limit,
                                                                                             java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics with the given value and the datatype xsd:boolean.

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

Overrides:
doGetBooleans in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the characteristics within the given range with the boolean value

doGetBooleans

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetBooleans(boolean value,
                                                                                             int offset,
                                                                                             int limit)
Returns all characteristics with the given value and the datatype xsd:boolean.

Overrides:
doGetBooleans in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the characteristics within the given range with the boolean value

doGetCharacteristics

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(org.tmapi.core.Locator datatype,
                                                                                                    int offset,
                                                                                                    int limit,
                                                                                                    java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics with the given datatype.

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

Overrides:
doGetCharacteristics in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
datatype - the datatype
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the characteristics within the given range

doGetCharacteristics

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(org.tmapi.core.Locator datatype,
                                                                                                    int offset,
                                                                                                    int limit)
Returns all characteristics with the given datatype.

Overrides:
doGetCharacteristics in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
datatype - the datatype
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the characteristics within the given range

doGetCharacteristics

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(java.lang.String value,
                                                                                                    int offset,
                                                                                                    int limit,
                                                                                                    java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics with the given value.

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

Overrides:
doGetCharacteristics in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value of the characteristics
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the characteristics within the given range

doGetCharacteristics

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(java.lang.String value,
                                                                                                    int offset,
                                                                                                    int limit)
Returns all characteristics with the given value.

Overrides:
doGetCharacteristics in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value of the characteristics
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the characteristics within the given range

doGetCharacteristics

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(java.lang.String value,
                                                                                                    org.tmapi.core.Locator datatype,
                                                                                                    int offset,
                                                                                                    int limit,
                                                                                                    java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics with the given value and the given datatype.

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

Overrides:
doGetCharacteristics in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value of the characteristics
datatype - the datatype
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the characteristics within the given range

doGetCharacteristics

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(java.lang.String value,
                                                                                                    org.tmapi.core.Locator datatype,
                                                                                                    int offset,
                                                                                                    int limit)
Returns all characteristics with the given value and the given datatype.

Overrides:
doGetCharacteristics in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value of the characteristics
datatype - the datatype
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the characteristics within the given range

doGetCharacteristicsMatches

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristicsMatches(java.util.regex.Pattern regExp,
                                                                                                           int offset,
                                                                                                           int limit,
                                                                                                           java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics which has a value matches the given regular expression.

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

Overrides:
doGetCharacteristicsMatches in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
regExp - the regular expression
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the characteristics within the given range with matching values

doGetCharacteristicsMatches

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristicsMatches(java.util.regex.Pattern regExp,
                                                                                                           int offset,
                                                                                                           int limit)
Returns all characteristics which has a value matches the given regular expression.

Overrides:
doGetCharacteristicsMatches in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
regExp - the regular expression
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the characteristics within the given range with matching values

doGetCharacteristicsMatches

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristicsMatches(java.util.regex.Pattern regExp,
                                                                                                           org.tmapi.core.Locator datatype,
                                                                                                           int offset,
                                                                                                           int limit,
                                                                                                           java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics which has a value matches the given regular expression and has the datatype.

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

Overrides:
doGetCharacteristicsMatches in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
regExp - the regular expression
datatype - the datatype
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the characteristics within the given range with matching values

doGetCharacteristicsMatches

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristicsMatches(java.util.regex.Pattern regExp,
                                                                                                           org.tmapi.core.Locator datatype,
                                                                                                           int offset,
                                                                                                           int limit)
Returns all characteristics which has a value matches the given regular expression and has the datatype.

Overrides:
doGetCharacteristicsMatches in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
regExp - the regular expression
datatype - the datatype
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the characteristics within the given range with matching values

doGetCoordinates

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCoordinates(de.topicmapslab.geotype.wgs84.Wgs84Coordinate value,
                                                                                                double deviance,
                                                                                                int offset,
                                                                                                int limit,
                                                                                                java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics with the datatype xsd:integer and a geographical coordinate which has a lower or equal distance to the given coordinate like the given deviance.

Hint: Currently not supported.

Overrides:
doGetCoordinates in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
deviance - the maximum distance
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the characteristics within the given range

doGetCoordinates

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCoordinates(de.topicmapslab.geotype.wgs84.Wgs84Coordinate value,
                                                                                                double deviance,
                                                                                                int offset,
                                                                                                int limit)
Returns all characteristics with the datatype xsd:integer and a geographical coordinate which has a lower or equal distance to the given coordinate like the given deviance.

Hint: Currently not supported.

Overrides:
doGetCoordinates in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
deviance - the maximum distance
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the characteristics within the given range

doGetCoordinates

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCoordinates(de.topicmapslab.geotype.wgs84.Wgs84Coordinate value,
                                                                                                int offset,
                                                                                                int limit,
                                                                                                java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics with the given value and the datatype tm:geo.

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

Overrides:
doGetCoordinates in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the characteristics within the given range with the geographic coordinates

doGetCoordinates

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCoordinates(de.topicmapslab.geotype.wgs84.Wgs84Coordinate value,
                                                                                                int offset,
                                                                                                int limit)
Returns all characteristics with the given value and the datatype tm:geo.

Overrides:
doGetCoordinates in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the characteristics within the given range with the geographic coordinates

doGetDatatypeAwares

protected java.util.List<de.topicmapslab.majortom.model.core.IDatatypeAware> doGetDatatypeAwares(org.tmapi.core.Locator dataType,
                                                                                                 int offset,
                                                                                                 int limit,
                                                                                                 java.util.Comparator<de.topicmapslab.majortom.model.core.IDatatypeAware> comparator)
Returns all variants and occurrences with the given data-type.

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

Overrides:
doGetDatatypeAwares in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
dataType - the data type
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
a collection of all matching variants and occurrences within the given range

doGetDatatypeAwares

protected java.util.List<de.topicmapslab.majortom.model.core.IDatatypeAware> doGetDatatypeAwares(org.tmapi.core.Locator dataType,
                                                                                                 int offset,
                                                                                                 int limit)
Returns all variants and occurrences with the given data-type.

Overrides:
doGetDatatypeAwares in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
dataType - the data type
offset - the index of the first item
limit - the maximum count of returned values
Returns:
a collection of all matching variants and occurrences within the given range

doGetDateTime

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDateTime(java.util.Calendar value,
                                                                                             java.util.Calendar deviance,
                                                                                             int offset,
                                                                                             int limit,
                                                                                             java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics with the datatype xsd:time and with a time value which has a difference from the given value lower or equals than the given deviance. The given deviance calendar will be interpreted as maximum difference from the given value. Each time information handled as difference. For example if the difference should be lower than one day, one hour and 10 minutes the dateTime literal should be 0000-00-01T01:10:00.

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

Overrides:
doGetDateTime in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
deviance - the maximum difference
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the characteristics within the given range with the time value

doGetDateTime

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDateTime(java.util.Calendar value,
                                                                                             java.util.Calendar deviance,
                                                                                             int offset,
                                                                                             int limit)
Returns all characteristics with the datatype xsd:time and with a time value which has a difference from the given value lower or equals than the given deviance. The given deviance calendar will be interpreted as maximum difference from the given value. Each time information handled as difference. For example if the difference should be lower than one day, one hour and 10 minutes the dateTime literal should be 0000-00-01T01:10:00.

Overrides:
doGetDateTime in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
deviance - the maximum difference
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the characteristics within the given range with the time value

doGetDateTime

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDateTime(java.util.Calendar value,
                                                                                             int offset,
                                                                                             int limit,
                                                                                             java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics with the given value and the datatype xsd:dateTime.

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

Overrides:
doGetDateTime in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the characteristics within the given range with the dateTime value

doGetDateTime

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDateTime(java.util.Calendar value,
                                                                                             int offset,
                                                                                             int limit)
Returns all characteristics with the given value and the datatype xsd:dateTime.

Overrides:
doGetDateTime in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the characteristics within the given range with the dateTime value

doGetDoubles

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDoubles(double value,
                                                                                            double deviance,
                                                                                            int offset,
                                                                                            int limit,
                                                                                            java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics with the datatype xsd:double and a value contained by the given range [value - deviance, value + deviance].

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

Overrides:
doGetDoubles in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
deviance - the maximum difference
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the characteristics within the given range

doGetDoubles

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDoubles(double value,
                                                                                            double deviance,
                                                                                            int offset,
                                                                                            int limit)
Returns all characteristics with the datatype xsd:double and a value contained by the given range [value - deviance, value + deviance].

Overrides:
doGetDoubles in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
deviance - the maximum difference
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the characteristics within the given range

doGetDoubles

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDoubles(double value,
                                                                                            int offset,
                                                                                            int limit,
                                                                                            java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics with the given value and the datatype xsd:double.

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

Overrides:
doGetDoubles in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the characteristics within the given range with the double value

doGetDoubles

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetDoubles(double value,
                                                                                            int offset,
                                                                                            int limit)
Returns all characteristics with the given value and the datatype xsd:double.

Overrides:
doGetDoubles in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the characteristics within the given range with the double value

doGetFloats

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetFloats(float value,
                                                                                           double deviance,
                                                                                           int offset,
                                                                                           int limit,
                                                                                           java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics with the datatype xsd:float and a value contained by the given range [value - deviance, value + deviance].

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

Overrides:
doGetFloats in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
deviance - the maximum difference
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the characteristics within the given range

doGetFloats

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetFloats(float value,
                                                                                           double deviance,
                                                                                           int offset,
                                                                                           int limit)
Returns all characteristics with the datatype xsd:float and a value contained by the given range [value - deviance, value + deviance].

Overrides:
doGetFloats in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
deviance - the maximum difference
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the characteristics within the given range

doGetFloats

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetFloats(float value,
                                                                                           int offset,
                                                                                           int limit,
                                                                                           java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics with the given value and the datatype xsd:float.

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

Overrides:
doGetFloats in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the characteristics within the given range with the float value

doGetFloats

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetFloats(float value,
                                                                                           int offset,
                                                                                           int limit)
Returns all characteristics with the given value and the datatype xsd:float.

Overrides:
doGetFloats in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the characteristics within the given range with the float value

doGetIntegers

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetIntegers(int value,
                                                                                             double deviance,
                                                                                             int offset,
                                                                                             int limit,
                                                                                             java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics with the datatype xsd:integer and a value contained by the given range [value - deviance, value + deviance].

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

Overrides:
doGetIntegers in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
deviance - the maximum difference
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the characteristics within the given range

doGetIntegers

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetIntegers(int value,
                                                                                             double deviance,
                                                                                             int offset,
                                                                                             int limit)
Returns all characteristics with the datatype xsd:integer and a value contained by the given range [value - deviance, value + deviance].

Overrides:
doGetIntegers in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
deviance - the maximum difference
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the characteristics within the given range

doGetIntegers

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetIntegers(int value,
                                                                                             int offset,
                                                                                             int limit,
                                                                                             java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics with the given value and the datatype xsd:integer.

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

Overrides:
doGetIntegers in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the characteristics within the given range with the integer value

doGetIntegers

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetIntegers(int value,
                                                                                             int offset,
                                                                                             int limit)
Returns all characteristics with the given value and the datatype xsd:integer.

Overrides:
doGetIntegers in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the characteristics within the given range with the integer value

doGetLongs

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetLongs(long value,
                                                                                          double deviance,
                                                                                          int offset,
                                                                                          int limit,
                                                                                          java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics with the datatype xsd:long and a value contained by the given range [value - deviance, value + deviance].

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

Overrides:
doGetLongs in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
deviance - the maximum difference
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the characteristics within the given range

doGetLongs

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetLongs(long value,
                                                                                          double deviance,
                                                                                          int offset,
                                                                                          int limit)
Returns all characteristics with the datatype xsd:long and a value contained by the given range [value - deviance, value + deviance].

Overrides:
doGetLongs in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
deviance - the maximum difference
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the characteristics within the given range

doGetLongs

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetLongs(long value,
                                                                                          int offset,
                                                                                          int limit,
                                                                                          java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics with the given value and the datatype xsd:long.

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

Overrides:
doGetLongs in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the characteristics within the given range with the long value

doGetLongs

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetLongs(long value,
                                                                                          int offset,
                                                                                          int limit)
Returns all characteristics with the given value and the datatype xsd:long.

Overrides:
doGetLongs in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the characteristics within the given range with the long value

doGetNames

protected java.util.List<org.tmapi.core.Name> doGetNames(int offset,
                                                         int limit,
                                                         java.util.Comparator<org.tmapi.core.Name> comparator)
Return all names contained by the current topic map.

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

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

doGetNames

protected java.util.List<org.tmapi.core.Name> doGetNames(int offset,
                                                         int limit)
Return all names contained by the current topic map.

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

doGetOccurrences

protected java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(int offset,
                                                                     int limit,
                                                                     java.util.Comparator<org.tmapi.core.Occurrence> comparator)
Return all occurrences contained by the current topic map.

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

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

doGetOccurrences

protected java.util.List<org.tmapi.core.Occurrence> doGetOccurrences(int offset,
                                                                     int limit)
Return all occurrences contained by the current topic map.

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

doGetUris

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetUris(java.net.URI value,
                                                                                         int offset,
                                                                                         int limit,
                                                                                         java.util.Comparator<de.topicmapslab.majortom.model.core.ICharacteristics> comparator)
Returns all characteristics with the given value and the datatype xsd:anyURI.

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

Overrides:
doGetUris in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
offset - the index of the first item
limit - the maximum count of returned values
comparator - the comparator
Returns:
the characteristics within the given range with the URI value

doGetUris

protected java.util.List<de.topicmapslab.majortom.model.core.ICharacteristics> doGetUris(java.net.URI value,
                                                                                         int offset,
                                                                                         int limit)
Returns all characteristics with the given value and the datatype xsd:anyURI.

Overrides:
doGetUris in class PagedLiteralIndexImpl<JdbcTopicMapStore>
Parameters:
value - the value
offset - the index of the first item
limit - the maximum count of returned values
Returns:
the characteristics within the given range with the URI value

doGetVariants

protected java.util.List<org.tmapi.core.Variant> doGetVariants(int offset,
                                                               int limit,
                                                               java.util.Comparator<org.tmapi.core.Variant> comparator)
Return all variants contained by the current topic map.

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

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

doGetVariants

protected java.util.List<org.tmapi.core.Variant> doGetVariants(int offset,
                                                               int limit)
Return all variants contained by the current topic map.

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