Package | Description |
---|---|
com.gentics.api.lib.datasource |
Package for datasource related classes and interfaces.
|
com.gentics.api.lib.expressionparser |
Package for classes and interfaces related to parsing and evaluating
of expressions.
|
com.gentics.api.lib.expressionparser.filtergenerator | |
com.gentics.api.lib.expressionparser.functions | |
com.gentics.api.lib.resolving |
Package for classes and interfaces related to property resolving.
|
Modifier and Type | Method and Description |
---|---|
DatasourceFilter |
ResolvableDatasource.createDatasourceFilter(Expression expression) |
DatasourceFilter |
Datasource.createDatasourceFilter(Expression expression)
Create a datasource filter for the given expression.
|
Modifier and Type | Class and Description |
---|---|
class |
EvaluationException
Exception that is thrown whenever the evaluation of any
EvaluableExpression fails. |
Modifier and Type | Method and Description |
---|---|
boolean |
EvaluableExpression.allowsNullValues(DatasourceFilter filter)
Checks wheter this expression allows null values.
|
Object |
EvaluableExpression.evaluate(ExpressionQueryRequest request,
int expectedValueType)
Evaluate the expression and return the value.
|
void |
ExpressionEvaluator.filter(Expression expression,
List<Resolvable> resolvables)
Filter the given list of resolvables with the given expression.
|
void |
EvaluableExpression.generateFilterPart(ExpressionQueryRequest request,
FilterPart filterPart,
int expectedValueType)
Generate the filter part for the evaluable expression.
|
int |
EvaluableExpression.getExpectedValueType(DatasourceFilter filter)
Get the value type which this expression is expected to return
|
boolean |
EvaluableExpression.isStatic(DatasourceFilter filter)
Check whether the evaluable expression (and all its sub parts) is static
or not.
|
boolean |
EvaluableExpression.isVariable(DatasourceFilter filter)
Check whether the evaluable expression (with its sub parts) contains a
variable part.
|
boolean |
ExpressionEvaluator.match(Expression expression)
Try to match the given expression (against the added resolvables)
|
boolean |
ExpressionEvaluator.match(Expression expression,
Resolvable matchedObject)
Try to match the given expression against the given object (and the added resolvables)
|
Modifier and Type | Class and Description |
---|---|
class |
FilterGeneratorException
Exception that might be thrown during the generation of a datasource filter.
|
Modifier and Type | Method and Description |
---|---|
void |
FilterPart.addFilterPartGenerator(FilterPartGenerator filterPartGenerator)
Add a filter part generator to the filter that generates a part of the
statement dynamically when the filter is used to fetch results from a
datasource.
|
void |
FilterPart.addFilterStatementPart(String statementPart)
Add a filter statement part
|
void |
FilterPart.addFilterStatementPart(String statementPart,
Object[] parameters)
Add a filter statement part together with some parameters (e.g.
|
void |
FilterPart.addFunctionToEvaluate(Function function,
int type,
EvaluableExpression[] operands,
int expectedValueType)
Add the given function to the filter for later evaluation.
|
void |
FilterPart.addLiteral(Object literal,
int expectedValueType)
Add the given literal to the filter.
|
void |
FilterPart.addPostProcessor(PostProcessor postProcessor,
EvaluableExpression data)
Add a post processor to this filter part
|
void |
DatasourceFilter.addPostProcessor(PostProcessor postProcessor,
EvaluableExpression data)
Add a post processor to this filter
|
void |
FilterPart.addResolvableObject(String expressionName,
int expectedValueType)
Add a resolvable object to the filter.
|
void |
FilterPart.addVariable(String expressionName,
int expectedValueType)
Add a variable to the filter.
|
void |
FilterPart.doPostProcessing(List<Resolvable> result,
ExpressionQueryRequest request)
Do post processing for this filter part.
|
void |
DatasourceFilter.doPostProcessing(List<Resolvable> result,
ExpressionQueryRequest request)
Do post processing of the result.
|
FilterPart |
FilterPartGenerator.getFilterPart(ExpressionQueryRequest request)
Method that is called by the filter when it finally merges all filter
parts to use the filter.
|
void |
FilterPart.mergeInto(MergedFilter mergedFilter)
Merge this filterpart into the merged filter (final step of filter
generation).
|
Modifier and Type | Method and Description |
---|---|
void |
PropertySetter.performAssignment(Expression expression)
Perform the given assignment expression
|
Copyright © 2017 Gentics Software. All Rights Reserved.