org.mmbase.module.database.support
Class BaseJdbc2Node

java.lang.Object
  extended byorg.mmbase.module.database.support.BaseJdbc2Node
All Implemented Interfaces:
SearchQueryHandler
Direct Known Subclasses:
MMMckoiNode, MMSQL92Node, Sql92SingleFields, Support2Storage

Deprecated. This code is scheduled for removal once MMBase has been fully converted to the new StorageManager implementation.

public abstract class BaseJdbc2Node
extends java.lang.Object
implements SearchQueryHandler

This class serves as baseclass for database support classes. It implements the SearchQueryHandler interface by delegating all calls to this interface to a BasicQueryHandler instance. Call init() to initialize the instance. based on the database configuration XML file..

Since:
MMBase-1.7
Version:
$Id: BaseJdbc2Node.java,v 1.3 2004/01/27 12:04:47 pierre Exp $
Author:
Rob van Maris

Field Summary
 
Fields inherited from interface org.mmbase.storage.search.SearchQueryHandler
FEATURE_MAX_NUMBER, FEATURE_OFFSET, SUPPORT_NONE, SUPPORT_NORMAL, SUPPORT_OPTIMAL, SUPPORT_WEAK
 
Constructor Summary
protected BaseJdbc2Node()
          Deprecated. Creates a new instance of BaseJdbc2Node
 
Method Summary
 java.util.List getNodes(SearchQuery query, MMObjectBuilder builder)
          Deprecated. Processes a search query, returns the result as a list of nodes.
 int getSupportLevel(Constraint constraint, SearchQuery query)
          Deprecated. Gets the level at which a constraint is supported for a query by this handler.
 int getSupportLevel(int feature, SearchQuery query)
          Deprecated. Gets the level at which a feature is supported for a query by this handler.
protected  void init(java.util.Map disallowedValues, XMLDatabaseReader parser)
          Deprecated. Initializes the instance, based on the database configuration XML file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseJdbc2Node

protected BaseJdbc2Node()
Deprecated. 
Creates a new instance of BaseJdbc2Node

Method Detail

init

protected void init(java.util.Map disallowedValues,
                    XMLDatabaseReader parser)
Deprecated. 
Initializes the instance, based on the database configuration XML file.

Parameters:
disallowedValues - Map mapping disallowed table/fieldnames to allowed alternatives.
parser - The parser that reads the database configuration from an XML file.

getSupportLevel

public int getSupportLevel(Constraint constraint,
                           SearchQuery query)
                    throws SearchQueryException
Deprecated. 
Description copied from interface: SearchQueryHandler
Gets the level at which a constraint is supported for a query by this handler. This is one of either: Given the choice, the query handler with the highest level of support is prefered.

Specified by:
getSupportLevel in interface SearchQueryHandler
Throws:
SearchQueryException

getSupportLevel

public int getSupportLevel(int feature,
                           SearchQuery query)
                    throws SearchQueryException
Deprecated. 
Description copied from interface: SearchQueryHandler
Gets the level at which a feature is supported for a query by this handler. This is one of either: Given the choice, the query handler with the highest level of support is prefered.

Specified by:
getSupportLevel in interface SearchQueryHandler
Throws:
SearchQueryException

getNodes

public java.util.List getNodes(SearchQuery query,
                               MMObjectBuilder builder)
                        throws SearchQueryException
Deprecated. 
Description copied from interface: SearchQueryHandler
Processes a search query, returns the result as a list of nodes. Depending on the specified builder, the results will be:

Specified by:
getNodes in interface SearchQueryHandler
Parameters:
query - The search query.
builder - The builder for the result nodes. Specify a ResultBuilder to get resultnodes. ClusterBuilder to get clusternodes.
Returns:
The resulting nodes.
Throws:
SearchQueryException
See Also:
ResultNode, ClusterNode


MMBase build 1.7.1.20041002