Class NameIndex
- java.lang.Object
-
- net.ontopia.topicmaps.impl.utils.AbstractIndex
-
- net.ontopia.topicmaps.impl.rdbms.index.RDBMSIndex
-
- net.ontopia.topicmaps.impl.rdbms.index.NameIndex
-
- All Implemented Interfaces:
IndexIF
,NameIndexIF
public class NameIndex extends RDBMSIndex implements NameIndexIF
INTERNAL: The rdbms name index implementation.
-
-
Field Summary
-
Fields inherited from class net.ontopia.topicmaps.impl.rdbms.index.RDBMSIndex
imanager, transaction
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<TopicNameIF>
getTopicNames(String value)
PUBLIC: Gets all topic names that have the given name value (in any scope).Collection<TopicNameIF>
getTopicNames(String value, TopicIF topicNameType)
PUBLIC: Gets all topic names that have the given name value (in any scope) and topicNameType.Collection<VariantNameIF>
getVariants(String value)
INTERNAL: Gets all variants that have the specified value independent of datatype.Collection<VariantNameIF>
getVariants(String value, LocatorIF datatype)
INTERNAL: Gets all variants that have the specified value and datatype.-
Methods inherited from class net.ontopia.topicmaps.impl.rdbms.index.RDBMSIndex
executeQuery, getIndex, getTopicMap
-
-
-
-
Method Detail
-
getTopicNames
public Collection<TopicNameIF> getTopicNames(String value)
Description copied from interface:NameIndexIF
PUBLIC: Gets all topic names that have the given name value (in any scope).- Specified by:
getTopicNames
in interfaceNameIndexIF
- Parameters:
value
- A string; the value of a topic name.- Returns:
- A collection of TopicNameIF objects with the given name value.
-
getTopicNames
public Collection<TopicNameIF> getTopicNames(String value, TopicIF topicNameType)
Description copied from interface:NameIndexIF
PUBLIC: Gets all topic names that have the given name value (in any scope) and topicNameType.- Specified by:
getTopicNames
in interfaceNameIndexIF
- Parameters:
value
- A string; the value of a topic nametopicNameType
- A TopicIF; the type of a topic name- Returns:
- A collection of TopicNameIF objects with the given name value and type.
-
getVariants
public Collection<VariantNameIF> getVariants(String value)
Description copied from interface:NameIndexIF
INTERNAL: Gets all variants that have the specified value independent of datatype.- Specified by:
getVariants
in interfaceNameIndexIF
- Returns:
- A collection of VariantNameIF objects.
-
getVariants
public Collection<VariantNameIF> getVariants(String value, LocatorIF datatype)
Description copied from interface:NameIndexIF
INTERNAL: Gets all variants that have the specified value and datatype.- Specified by:
getVariants
in interfaceNameIndexIF
- Returns:
- A collection of VariantNameIF objects.
-
-