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) |
SemiFullTextQuery(java.lang.String rootAlias,
EntityI rootEntity,
boolean onlyDetermineRawOQLClauses) |
| 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<java.lang.Object> 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<java.lang.Object> args,
java.lang.String[] must,
java.lang.String[] may,
java.lang.String[] mustnt) |
void |
appendConstraints(java.lang.StringBuilder sb,
java.util.List<java.lang.Object> args,
java.lang.String[] must,
java.lang.String[] may,
java.lang.String[] mustnt,
boolean includeDefaults) |
boolean |
isFallback() |
boolean |
setFallback(boolean b) |
public static final java.lang.String ROOT_ALIAS
public SemiFullTextQuery(java.lang.String rootAlias,
EntityI rootEntity)
public SemiFullTextQuery(java.lang.String rootAlias,
EntityI rootEntity,
boolean onlyDetermineRawOQLClauses)
rootAlias - the identifier which is used in the query for the "root" entity to be queriedrootEntity - the entity to be queriedonlyDetermineRawOQLClauses - flag to determine what to use for a special case when building a query, depends on if
the "withInterface" configuration is usedpublic boolean setFallback(boolean b)
public boolean isFallback()
public void addPath(java.lang.String s)
throws OQLSyntaxException
OQLSyntaxExceptionpublic java.util.List<java.lang.String> appendConstraints(java.lang.StringBuilder sb,
java.util.List<java.lang.Object> 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<java.lang.Object> args,
java.lang.String[] must,
java.lang.String[] may,
java.lang.String[] mustnt)
public void appendConstraints(java.lang.StringBuilder sb,
java.util.List<java.lang.Object> args,
java.lang.String[] must,
java.lang.String[] may,
java.lang.String[] mustnt,
boolean includeDefaults)
Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.