Class ArrayContainsExpression
- java.lang.Object
-
- io.ebeaninternal.server.expression.AbstractExpression
-
- io.ebeaninternal.server.expression.ArrayContainsExpression
-
- All Implemented Interfaces:
Expression
,SpiExpression
public class ArrayContainsExpression extends AbstractExpression
Contains expression for ARRAY type.
-
-
Field Summary
-
Fields inherited from interface io.ebeaninternal.api.SpiExpression
SQL_FALSE, SQL_TRUE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBindValues(SpiExpressionRequest request)
Add the parameter values to be set against query.void
addSql(SpiExpressionRequest request)
Add some sql to the query.boolean
isSameByBind(SpiExpression other)
Return true if the expression is the same with respect to bind values.int
queryBindHash()
Return the hash value for the values that will be bound.void
queryPlanHash(StringBuilder builder)
Calculate a hash value used to identify a query for AutoTune tuning.void
writeDocQuery(DocQueryContext context)
Write the expression as an elastic search expression.-
Methods inherited from class io.ebeaninternal.server.expression.AbstractExpression
containsMany, copyForPlanKey, getIdEqualTo, naturalKey, nestedPath, prepareExpression, simplify, validate
-
-
-
-
Method Detail
-
writeDocQuery
public void writeDocQuery(DocQueryContext context) throws IOException
Description copied from interface:SpiExpression
Write the expression as an elastic search expression.- Throws:
IOException
-
queryPlanHash
public void queryPlanHash(StringBuilder builder)
Description copied from interface:SpiExpression
Calculate a hash value used to identify a query for AutoTune tuning.That is, if the hash changes then the query will be considered different from an AutoTune perspective and get different tuning.
-
queryBindHash
public int queryBindHash()
Description copied from interface:SpiExpression
Return the hash value for the values that will be bound.
-
isSameByBind
public boolean isSameByBind(SpiExpression other)
Description copied from interface:SpiExpression
Return true if the expression is the same with respect to bind values.
-
addSql
public void addSql(SpiExpressionRequest request)
Description copied from interface:SpiExpression
Add some sql to the query.This will contain ? as a place holder for each associated bind values.
The 'sql' added to the query can contain object property names rather than db tables and columns. This 'sql' is later parsed converting the logical property names to their full database column names.
- Parameters:
request
- the associated request.
-
addBindValues
public void addBindValues(SpiExpressionRequest request)
Description copied from interface:SpiExpression
Add the parameter values to be set against query. For each ? place holder there should be a corresponding value that is added to the bindList.- Parameters:
request
- the associated request.
-
-