de.topicmapslab.majortom.database.jdbc.index
Class JdbcSupertypeSubtypeIndex

java.lang.Object
  extended by de.topicmapslab.majortom.index.IndexImpl<T>
      extended by de.topicmapslab.majortom.index.core.BaseCachedIndexImpl<T>
          extended by de.topicmapslab.majortom.index.core.BaseCachedSupertypeSubtypeIndexImpl<T>
              extended by de.topicmapslab.majortom.index.nonpaged.CachedSupertypeSubtypeIndexImpl<JdbcTopicMapStore>
                  extended by de.topicmapslab.majortom.database.jdbc.index.JdbcSupertypeSubtypeIndex
All Implemented Interfaces:
de.topicmapslab.majortom.model.event.ITopicMapListener, de.topicmapslab.majortom.model.index.IIndex, de.topicmapslab.majortom.model.index.ISupertypeSubtypeIndex, org.tmapi.index.Index

public class JdbcSupertypeSubtypeIndex
extends CachedSupertypeSubtypeIndexImpl<JdbcTopicMapStore>

Author:
Sven Krosse

Nested Class Summary
 
Nested classes/interfaces inherited from class de.topicmapslab.majortom.index.core.BaseCachedSupertypeSubtypeIndexImpl
BaseCachedSupertypeSubtypeIndexImpl.Type
 
Constructor Summary
JdbcSupertypeSubtypeIndex(JdbcTopicMapStore store)
          constructor
 
Method Summary
 java.util.Collection<org.tmapi.core.Topic> doGetDirectSubtypes(org.tmapi.core.Topic type)
          Returns all topic types being a direct subtype of the given topic type.
 java.util.Collection<org.tmapi.core.Topic> doGetDirectSupertypes(org.tmapi.core.Topic type)
          Returns all topic types being a direct supertype of the given topic type.
 java.util.Collection<org.tmapi.core.Topic> doGetSubtypes()
          Returns all topic types being a subtype of a topic type contained by the topic map.
 java.util.Collection<org.tmapi.core.Topic> doGetSubtypes(java.util.Collection<? extends org.tmapi.core.Topic> types)
          
 java.util.Collection<org.tmapi.core.Topic> doGetSubtypes(java.util.Collection<? extends org.tmapi.core.Topic> types, boolean all)
          Returns all topic types being a subtype of at least one given type or of every given topic type.
 java.util.Collection<org.tmapi.core.Topic> doGetSubtypes(org.tmapi.core.Topic... types)
          
 java.util.Collection<org.tmapi.core.Topic> doGetSubtypes(org.tmapi.core.Topic type)
          Returns all topic types being a subtype of the given topic type.
 java.util.Collection<org.tmapi.core.Topic> doGetSupertypes()
          Returns all topic types being a supertype of a topic type contained by the topic map.
 java.util.Collection<org.tmapi.core.Topic> doGetSupertypes(java.util.Collection<? extends org.tmapi.core.Topic> types)
          
 java.util.Collection<org.tmapi.core.Topic> doGetSupertypes(java.util.Collection<? extends org.tmapi.core.Topic> types, boolean all)
          Returns all topic types being a supertype of at least one given type or of every given topic type.
 java.util.Collection<org.tmapi.core.Topic> doGetSupertypes(org.tmapi.core.Topic... types)
          
 java.util.Collection<org.tmapi.core.Topic> doGetSupertypes(org.tmapi.core.Topic type)
          Returns all topic types being a supertype of the given topic type.If the type is null the method returns all topics which have no super-types.
 
Methods inherited from class de.topicmapslab.majortom.index.nonpaged.CachedSupertypeSubtypeIndexImpl
getDirectSubtypes, getDirectSupertypes, getSubtypes, getSubtypes, getSubtypes, getSubtypes, getSubtypes, getSupertypes, getSupertypes, getSupertypes, getSupertypes, getSupertypes
 
Methods inherited from class de.topicmapslab.majortom.index.core.BaseCachedSupertypeSubtypeIndexImpl
cache, cache, cacheNumberOfConstructs, clear, clearCache, close, open, 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, open, reindex
 

Constructor Detail

JdbcSupertypeSubtypeIndex

public JdbcSupertypeSubtypeIndex(JdbcTopicMapStore store)
constructor

Parameters:
store - the topic map store
Method Detail

doGetDirectSubtypes

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

Specified by:
doGetDirectSubtypes in class CachedSupertypeSubtypeIndexImpl<JdbcTopicMapStore>
Parameters:
type - the topic type
Returns:
a Collection of all subtypes of the given type within the given range

doGetDirectSupertypes

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

Specified by:
doGetDirectSupertypes in class CachedSupertypeSubtypeIndexImpl<JdbcTopicMapStore>
Parameters:
type - the topic type
Returns:
a Collection of all supertypes of the given type within the given range

doGetSubtypes

public java.util.Collection<org.tmapi.core.Topic> doGetSubtypes()
Returns all topic types being a subtype of a topic type contained by the topic map.

Specified by:
doGetSubtypes in class CachedSupertypeSubtypeIndexImpl<JdbcTopicMapStore>
Returns:
a Collection of all subtypes within the given range

doGetSubtypes

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

Specified by:
doGetSubtypes in class CachedSupertypeSubtypeIndexImpl<JdbcTopicMapStore>
Parameters:
type - the topic type
Returns:
a Collection of all subtypes of the given type within the given range

doGetSubtypes

public java.util.Collection<org.tmapi.core.Topic> doGetSubtypes(org.tmapi.core.Topic... types)


doGetSubtypes

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


doGetSubtypes

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

Specified by:
doGetSubtypes in class CachedSupertypeSubtypeIndexImpl<JdbcTopicMapStore>
Parameters:
types - the topic types
all - flag indicates if the found topic types should be an subtype of every given type
Returns:
a Collection of all subtypes of at least one of the given type within the given range

doGetSupertypes

public java.util.Collection<org.tmapi.core.Topic> doGetSupertypes()
Returns all topic types being a supertype of a topic type contained by the topic map.

Specified by:
doGetSupertypes in class CachedSupertypeSubtypeIndexImpl<JdbcTopicMapStore>
Returns:
a Collection of all supertypes within the given range

doGetSupertypes

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

Specified by:
doGetSupertypes in class CachedSupertypeSubtypeIndexImpl<JdbcTopicMapStore>
Parameters:
type - the topic type
Returns:
a Collection of all supertypes of the given type within the given range

doGetSupertypes

public java.util.Collection<org.tmapi.core.Topic> doGetSupertypes(org.tmapi.core.Topic... types)


doGetSupertypes

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


doGetSupertypes

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

Specified by:
doGetSupertypes in class CachedSupertypeSubtypeIndexImpl<JdbcTopicMapStore>
Parameters:
types - the topic types
all - flag indicates if the found topic types should be an supertype of every given type
Returns:
a Collection of all supertypes of at least one of the given type within the given range