Class RDBMSSearcher
java.lang.Object
net.ontopia.topicmaps.impl.utils.AbstractIndex
net.ontopia.infoset.fulltext.impl.rdbms.RDBMSSearcher
- All Implemented Interfaces:
SearcherIF,IndexIF
INTERNAL: A generic RDBMS fulltext searcher implementation. Note that the class
only accepts an RDBMS topic map in its constructor.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static String[]protected intprotected static final intprotected static final intprotected static final intprotected static final intprotected RDBMSTopicMapTransaction -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()INTERNAL: Releases resources associated with this searcher.protected StringescapeQuery(String query) getIndex()INTERNAL: Method used by IndexManagerIF to manage index creation.protected Object[]getParameters(String query, TopicMapIF topicmap) INTERNAL: Override this method if the parameters to be used by the query is different from the default.booleanvoidrefresh()INTERNAL: Performs a query on an index.
-
Field Details
-
FT_PLATFORM_GENERIC
protected static final int FT_PLATFORM_GENERIC- See Also:
-
FT_PLATFORM_ORACLE_TEXT
protected static final int FT_PLATFORM_ORACLE_TEXT- See Also:
-
FT_PLATFORM_TSEARCH2
protected static final int FT_PLATFORM_TSEARCH2- See Also:
-
FT_PLATFORM_SQLSERVER
protected static final int FT_PLATFORM_SQLSERVER- See Also:
-
tmtxn
-
ft_platform
protected int ft_platform -
fnames
-
-
Constructor Details
-
RDBMSSearcher
-
RDBMSSearcher
-
-
Method Details
-
search
Description copied from interface:SearcherIFINTERNAL: Performs a query on an index. The actual query syntax is search engine dependent.- Specified by:
searchin interfaceSearcherIF- Throws:
IOException
-
escapeQuery
-
getParameters
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
Description copied from interface:SearcherIFINTERNAL: Releases resources associated with this searcher.- Specified by:
closein interfaceSearcherIF- Throws:
IOException
-
getIndex
Description copied from class:AbstractIndexINTERNAL: 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:
getIndexin classAbstractIndex- Returns:
- Index instance.
-
isAutoUpdated
public boolean isAutoUpdated() -
refresh
public void refresh()
-