gran.app.adapter.kernel.index
Class BaseIndexAdapter

java.lang.Object
  extended bygran.app.adapter.kernel.index.BaseIndexAdapter
All Implemented Interfaces:
Adapter, IndexAdapter, KernelAdapter

public class BaseIndexAdapter
extends java.lang.Object
implements IndexAdapter


Constructor Summary
BaseIndexAdapter()
           
 
Method Summary
 void deleteTaskImpl(java.lang.String id)
           
 java.lang.String getDescription()
          Get description of adapter as plain text
 java.lang.String getEncoding()
           
 void indexImpl()
           
 void indexTaskImpl(java.lang.String id)
           
 boolean init()
          Initialize adapter.
 void reIndexTaskImpl(java.lang.String id)
           
 java.util.ArrayList searchImpl(java.lang.String word, java.lang.String keyword, java.util.ArrayList ret)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseIndexAdapter

public BaseIndexAdapter()
Method Detail

getEncoding

public java.lang.String getEncoding()

init

public boolean init()
Description copied from interface: Adapter
Initialize adapter. TrackStudio calls this method during startup.

Specified by:
init in interface Adapter
Returns:
true when adapter initialized, false otherwise.

getDescription

public java.lang.String getDescription()
Description copied from interface: Adapter
Get description of adapter as plain text

Specified by:
getDescription in interface Adapter

indexImpl

public void indexImpl()
               throws gran.exception.GranException
Specified by:
indexImpl in interface IndexAdapter
Throws:
gran.exception.GranException

searchImpl

public java.util.ArrayList searchImpl(java.lang.String word,
                                      java.lang.String keyword,
                                      java.util.ArrayList ret)
                               throws gran.exception.GranException
Specified by:
searchImpl in interface IndexAdapter
Throws:
gran.exception.GranException

reIndexTaskImpl

public void reIndexTaskImpl(java.lang.String id)
Specified by:
reIndexTaskImpl in interface IndexAdapter

indexTaskImpl

public void indexTaskImpl(java.lang.String id)
Specified by:
indexTaskImpl in interface IndexAdapter

deleteTaskImpl

public void deleteTaskImpl(java.lang.String id)
Specified by:
deleteTaskImpl in interface IndexAdapter


Copyright © 2002-2003 TrackStudio, Ltd. All Rights Reserved.