|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.storage.search.legacy.ConstraintParser
Parser, tries to parse a SQL-search-condition for a query to a
Constraint object.
This class is provided for the sole purpose of alignment of old code with
the new SearchQuery framework,
and should not be called by new code.
A SQL-search-condition can be one of these forms:
'A string value'
123.456
'123.456'
See StringSearchConstraint for more info on string-search constraints.
A search condition that is not of one of these forms will be converted to a
LegacyConstraint, i.e.
in that case the search condition string will not be interpreted, but
instead be used "as-is".
Each time this occurs is logged with priority service to
category org.mmbase.storage.search.legacyConstraintParser.fallback.
| Constructor Summary | |
ConstraintParser(SearchQuery query)
Creates a new instance of ConstraintParser |
|
| Method Summary | |
static StepField |
getField(java.lang.String token,
java.util.List steps)
Creates StepField corresponding to field indicated by
token, of one of the specified steps. |
Constraint |
toConstraint(java.lang.String sqlConstraint)
Parses SQL-search-condition, and produces a corresponding Constraint object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConstraintParser(SearchQuery query)
| Method Detail |
public static StepField getField(java.lang.String token,
java.util.List steps)
StepField corresponding to field indicated by
token, of one of the specified steps.
A field can be one of these forms:
token - The token.steps - The steps.
public Constraint toConstraint(java.lang.String sqlConstraint)
Constraint object.
See above for the format of a
SQL-search-condition.
sqlConstraint - The non-null SQL constraint string.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||