|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.module.database.support.BaseJdbc2Node
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..
| 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 |
protected BaseJdbc2Node()
| Method Detail |
protected void init(java.util.Map disallowedValues,
XMLDatabaseReader parser)
disallowedValues - Map mapping disallowed table/fieldnames
to allowed alternatives.parser - The parser that reads the database configuration
from an XML file.
public int getSupportLevel(Constraint constraint,
SearchQuery query)
throws SearchQueryException
SearchQueryHandler
getSupportLevel in interface SearchQueryHandlerSearchQueryException
public int getSupportLevel(int feature,
SearchQuery query)
throws SearchQueryException
SearchQueryHandler
getSupportLevel in interface SearchQueryHandlerSearchQueryException
public java.util.List getNodes(SearchQuery query,
MMObjectBuilder builder)
throws SearchQueryException
SearchQueryHandler<step alias>.<field name>, where
the step alias is required to be of the form
<step tablename><x>, and
<x> is either empty or a single digit. Examples: images.number, images0.number,
images1.number
getNodes in interface SearchQueryHandlerquery - The search query.builder - The builder for the result nodes. Specify a
ResultBuilder
to get resultnodes.
ClusterBuilder
to get clusternodes.
SearchQueryExceptionResultNode,
ClusterNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||