Class AbstractTextExpression
- java.lang.Object
-
- io.ebeaninternal.server.expression.AbstractExpression
-
- io.ebeaninternal.server.expression.AbstractTextExpression
-
- All Implemented Interfaces:
Expression
,SpiExpression
- Direct Known Subclasses:
TextMatchExpression
,TextMultiMatchExpression
public abstract class AbstractTextExpression extends AbstractExpression
Base class for TextExpressions that are only executable by doc store.This means they can not be part of a SQL query nor do they use the built in query plan cache etc.
-
-
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.Object
getIdEqualTo(String idName)
Return the bind Id value if this is a "equal to" expression for the id property.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.-
Methods inherited from class io.ebeaninternal.server.expression.AbstractExpression
containsMany, copyForPlanKey, naturalKey, nestedPath, prepareExpression, simplify, validate
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.ebeaninternal.api.SpiExpression
writeDocQuery
-
-
-
-
Method Detail
-
getIdEqualTo
public Object getIdEqualTo(String idName)
Description copied from interface:SpiExpression
Return the bind Id value if this is a "equal to" expression for the id property.- Specified by:
getIdEqualTo
in interfaceSpiExpression
- Overrides:
getIdEqualTo
in classAbstractExpression
-
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.
-
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.
-
-