public class SemiFullTextQuery
extends java.lang.Object
SemiFullTextQueryBuilder
from the de.ipcon.db.query package
.
This class is embedded here to facilitate reusing the oql engine's code.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ROOT_ALIAS |
Constructor and Description |
---|
SemiFullTextQuery(java.lang.String rootAlias,
EntityI rootEntity) |
Modifier and Type | Method and Description |
---|---|
void |
addPath(java.lang.String s)
Adds an attribute path that should also be queried.
|
java.util.List<java.lang.String> |
appendConstraints(java.lang.StringBuilder sb,
java.util.List args,
java.lang.String terms)
Appends appropriate OQL "where" clauses for the given user input (search terms, raw OQL clauses) to the given
StringBuilder and fills the given List with the associated, "extracted" parameter values. |
void |
appendConstraints(java.lang.StringBuilder sb,
java.util.List args,
java.lang.String[] must,
java.lang.String[] may,
java.lang.String[] mustnt) |
void |
appendConstraints(java.lang.StringBuilder sb,
java.util.List args,
java.lang.String[] must,
java.lang.String[] may,
java.lang.String[] mustnt,
boolean includeDefaults) |
public static final java.lang.String ROOT_ALIAS
public SemiFullTextQuery(java.lang.String rootAlias, EntityI rootEntity)
public void addPath(java.lang.String s) throws OQLSyntaxException
OQLSyntaxException
public java.util.List<java.lang.String> appendConstraints(java.lang.StringBuilder sb, java.util.List args, java.lang.String terms)
StringBuilder
and fills the given List
with the associated, "extracted" parameter values.sb
- the StringBuilder
which will get the appropriate contraints appendedargs
- a List
which will be filled with the parameter values to use (probably for comparisons)
in the resulting queryterms
- the (probably user entered) text search terms (including possibly "must" and "mustnt" modifiers) as
well as additional raw OQL "where" clauses (that is anything TextQueryLexer
can handle)terms
, if anypublic void appendConstraints(java.lang.StringBuilder sb, java.util.List args, java.lang.String[] must, java.lang.String[] may, java.lang.String[] mustnt)
public void appendConstraints(java.lang.StringBuilder sb, java.util.List args, java.lang.String[] must, java.lang.String[] may, java.lang.String[] mustnt, boolean includeDefaults)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.