net.ontopia.topicmaps.impl.rdbms.index
Class OccurrenceIndex

java.lang.Object
  extended by net.ontopia.topicmaps.impl.utils.AbstractIndex
      extended by net.ontopia.topicmaps.impl.rdbms.index.RDBMSIndex
          extended by net.ontopia.topicmaps.impl.rdbms.index.OccurrenceIndex
All Implemented Interfaces:
IndexIF, OccurrenceIndexIF

public class OccurrenceIndex
extends RDBMSIndex
implements OccurrenceIndexIF

INTERNAL: The rdbms occurrence index implementation.


Method Summary
 java.util.Collection<OccurrenceIF> getOccurrences(java.lang.String value)
          INTERNAL: Gets all occurrences that have the specified value independent of datatype.
 java.util.Collection<OccurrenceIF> getOccurrences(java.lang.String value, LocatorIF datatype)
          INTERNAL: Gets all occurrences that have the specified value and datatype.
 java.util.Collection<OccurrenceIF> getOccurrencesByPrefix(java.lang.String prefix)
          INTERNAL: Gets all occurrences of any datatype that have a value starting with the specified prefix.
 java.util.Collection<OccurrenceIF> getOccurrencesByPrefix(java.lang.String prefix, LocatorIF datatype)
          INTERNAL: Gets all occurrences that have the specifed datatype and a value starting with the specified prefix.
 java.util.Iterator<OccurrenceIF> getValuesGreaterThanOrEqual(java.lang.String value)
          INTERNAL: Gets all occurrence values that are greather than or equal to the given value.
 java.util.Iterator<OccurrenceIF> getValuesSmallerThanOrEqual(java.lang.String value)
          INTERNAL: Gets all occurrence values that are smaller than or equal to the given value.
 
Methods inherited from class net.ontopia.topicmaps.impl.rdbms.index.RDBMSIndex
executeQuery, getIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOccurrences

public java.util.Collection<OccurrenceIF> getOccurrences(java.lang.String value)
Description copied from interface: OccurrenceIndexIF
INTERNAL: Gets all occurrences that have the specified value independent of datatype.

Specified by:
getOccurrences in interface OccurrenceIndexIF
Returns:
A collection of OccurrenceIF objects.

getOccurrences

public java.util.Collection<OccurrenceIF> getOccurrences(java.lang.String value,
                                                         LocatorIF datatype)
Description copied from interface: OccurrenceIndexIF
INTERNAL: Gets all occurrences that have the specified value and datatype.

Specified by:
getOccurrences in interface OccurrenceIndexIF
Returns:
A collection of OccurrenceIF objects.

getOccurrencesByPrefix

public java.util.Collection<OccurrenceIF> getOccurrencesByPrefix(java.lang.String prefix)
Description copied from interface: OccurrenceIndexIF
INTERNAL: Gets all occurrences of any datatype that have a value starting with the specified prefix.

Specified by:
getOccurrencesByPrefix in interface OccurrenceIndexIF
Returns:
A collection of OccurrenceIF objects.

getOccurrencesByPrefix

public java.util.Collection<OccurrenceIF> getOccurrencesByPrefix(java.lang.String prefix,
                                                                 LocatorIF datatype)
Description copied from interface: OccurrenceIndexIF
INTERNAL: Gets all occurrences that have the specifed datatype and a value starting with the specified prefix.

Specified by:
getOccurrencesByPrefix in interface OccurrenceIndexIF
Returns:
A collection of OccurrenceIF objects.

getValuesGreaterThanOrEqual

public java.util.Iterator<OccurrenceIF> getValuesGreaterThanOrEqual(java.lang.String value)
Description copied from interface: OccurrenceIndexIF
INTERNAL: Gets all occurrence values that are greather than or equal to the given value.

Specified by:
getValuesGreaterThanOrEqual in interface OccurrenceIndexIF

getValuesSmallerThanOrEqual

public java.util.Iterator<OccurrenceIF> getValuesSmallerThanOrEqual(java.lang.String value)
Description copied from interface: OccurrenceIndexIF
INTERNAL: Gets all occurrence values that are smaller than or equal to the given value.

Specified by:
getValuesSmallerThanOrEqual in interface OccurrenceIndexIF


Copyright © 2000-2012 Ontopia.