de.topicmapslab.majortom.index
Class IndexImpl<T extends de.topicmapslab.majortom.model.store.ITopicMapStore>

java.lang.Object
  extended by de.topicmapslab.majortom.index.IndexImpl<T>
All Implemented Interfaces:
org.tmapi.index.Index
Direct Known Subclasses:
BaseCachedIndexImpl, InMemoryIdentityIndex, InMemoryRevisionIndex, InMemoryScopedIndex, InMemorySupertypeSubtypeIndex, InMemoryTypeInstanceIndex, JdbcRevisionIndex, PagedIndexImpl, RedisIdentityIndex, RedisLiteralIndex, RedisScopedIndex, RedisSupertypeSubtypeIndex, RedisTypeInstanceIndex, TransactionIdentityIndex, TransactionLiteralIndex, TransactionScopedIndex, TransactionSupertypeSubtypeIndex, TransactionTypeInstanceIndex

public abstract class IndexImpl<T extends de.topicmapslab.majortom.model.store.ITopicMapStore>
extends java.lang.Object
implements org.tmapi.index.Index

Author:
Sven Krosse

Field Summary
private  boolean open
          opening flag
private  T store
          the parent store
 
Constructor Summary
IndexImpl(T store)
          constructor
 
Method Summary
 void clear()
          
 void close()
          
protected  T getTopicMapStore()
          Returns the internal store reference
 boolean isAutoUpdated()
          
 boolean isOpen()
          
 void open()
          
 void reindex()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

store

private final T extends de.topicmapslab.majortom.model.store.ITopicMapStore store
the parent store


open

private boolean open
opening flag

Constructor Detail

IndexImpl

public IndexImpl(T store)
constructor

Parameters:
store - the store instance
Method Detail

close

public void close()

Specified by:
close in interface org.tmapi.index.Index

isAutoUpdated

public boolean isAutoUpdated()

Specified by:
isAutoUpdated in interface org.tmapi.index.Index

isOpen

public boolean isOpen()

Specified by:
isOpen in interface org.tmapi.index.Index

open

public void open()

Specified by:
open in interface org.tmapi.index.Index

clear

public void clear()


reindex

public void reindex()

Specified by:
reindex in interface org.tmapi.index.Index

getTopicMapStore

protected T getTopicMapStore()
Returns the internal store reference

Returns:
the store