net.ontopia.infoset.fulltext.impl.rdbms
Class RDBMSSearcher

java.lang.Object
  extended by net.ontopia.topicmaps.impl.utils.AbstractIndex
      extended by net.ontopia.infoset.fulltext.impl.rdbms.RDBMSSearcher
All Implemented Interfaces:
SearcherIF, IndexIF

public class RDBMSSearcher
extends AbstractIndex
implements SearcherIF

INTERNAL: A generic RDBMS fulltext searcher implementation. Note that the class only accepts an RDBMS topic map in its constructor.


Field Summary
protected static java.lang.String[] fnames
           
protected  int ft_platform
           
protected static int FT_PLATFORM_GENERIC
           
protected static int FT_PLATFORM_ORACLE_TEXT
           
protected static int FT_PLATFORM_SQLSERVER
           
protected static int FT_PLATFORM_TSEARCH2
           
protected  RDBMSTopicMapTransaction tmtxn
           
 
Constructor Summary
RDBMSSearcher(TopicMapIF topicmap)
           
RDBMSSearcher(TopicMapTransactionIF txn)
           
 
Method Summary
 void close()
          INTERNAL: Releases resources associated with this searcher.
protected  java.lang.String escapeQuery(java.lang.String query)
           
 IndexIF getIndex()
          INTERNAL: Method used by IndexManagerIF to manage index creation.
protected  java.lang.Object[] getParameters(java.lang.String query, TopicMapIF topicmap)
          INTERNAL: Override this method if the parameters to be used by the query is different from the default.
 boolean isAutoUpdated()
           
 void refresh()
           
 SearchResultIF search(java.lang.String query)
          INTERNAL: Performs a query on an index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FT_PLATFORM_GENERIC

protected static final int FT_PLATFORM_GENERIC
See Also:
Constant Field Values

FT_PLATFORM_ORACLE_TEXT

protected static final int FT_PLATFORM_ORACLE_TEXT
See Also:
Constant Field Values

FT_PLATFORM_TSEARCH2

protected static final int FT_PLATFORM_TSEARCH2
See Also:
Constant Field Values

FT_PLATFORM_SQLSERVER

protected static final int FT_PLATFORM_SQLSERVER
See Also:
Constant Field Values

tmtxn

protected RDBMSTopicMapTransaction tmtxn

ft_platform

protected int ft_platform

fnames

protected static java.lang.String[] fnames
Constructor Detail

RDBMSSearcher

public RDBMSSearcher(TopicMapIF topicmap)

RDBMSSearcher

public RDBMSSearcher(TopicMapTransactionIF txn)
Method Detail

search

public SearchResultIF search(java.lang.String query)
                      throws java.io.IOException
Description copied from interface: SearcherIF
INTERNAL: Performs a query on an index. The actual query syntax is search engine dependent.

Specified by:
search in interface SearcherIF
Throws:
java.io.IOException

escapeQuery

protected java.lang.String escapeQuery(java.lang.String query)

getParameters

protected java.lang.Object[] getParameters(java.lang.String query,
                                           TopicMapIF topicmap)
INTERNAL: Override this method if the parameters to be used by the query is different from the default. If the parameter types are different or the order is different this method must be overridden.


close

public void close()
           throws java.io.IOException
Description copied from interface: SearcherIF
INTERNAL: Releases resources associated with this searcher.

Specified by:
close in interface SearcherIF
Throws:
java.io.IOException

getIndex

public IndexIF getIndex()
Description copied from class: AbstractIndex
INTERNAL: Method used by IndexManagerIF to manage index creation. The idea behind this method is for the index itself to decide whether to create a new instance every time or the same one.

Specified by:
getIndex in class AbstractIndex
Returns:
Index instance.

isAutoUpdated

public boolean isAutoUpdated()

refresh

public void refresh()


Copyright © 2000-2012 Ontopia.