java.lang.Object
io.ebeaninternal.server.expression.DefaultExpressionRequest
- All Implemented Interfaces:
SpiExpressionBind,SpiExpressionRequest,DbExpressionRequest
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultExpressionRequest(SpiOrmQueryRequest<?> queryRequest, DeployParser deployParser, Binder binder, SpiExpressionList<?> expressionList) DefaultExpressionRequest(BeanDescriptor<?> beanDescriptor) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBindEncryptKey(Object bindValue) Add an encryption key to bind to this request.voidaddBindValue(Object bindValue) Add a bind value to this request.append(char c) Append to the expression sql without any parsing.Append to the expression sql without any parsing.voidappendInExpression(boolean not, List<Object> bindValues) Append IN expression taking into account platform and type support for Multi-value.voidappendLike(boolean rawLikeExpression) Append the database platform like clause.voidbind(io.ebeaninternal.server.bind.DataBind dataBind) Bind the values from the underlying expression list.bindLog()Return the ordered list of bind values for all expressions in this request.buildSql()Build sql for the underlying expression list.Return the bean descriptor for the root type.escapeLikeString(String value) Escapes a string to use it as exact match in Like clause.intIncrements the parameter index and returns that value.Append to the expression sql with logical property parsing to db columns with logical path prefix.parseDeploy(String logicalProp) Parse the logical property name to the deployment name.Return the DB specific handler for JSON and ARRAY expressions.Append to the expression sql with logical property parsing to db columns with logical path prefix.Return the associated QueryRequest.sql()Return the accumulated expression sql for all expressions in this request.
-
Constructor Details
-
DefaultExpressionRequest
public DefaultExpressionRequest(SpiOrmQueryRequest<?> queryRequest, DeployParser deployParser, Binder binder, SpiExpressionList<?> expressionList) -
DefaultExpressionRequest
-
-
Method Details
-
buildSql
Build sql for the underlying expression list. -
bind
Bind the values from the underlying expression list.- Throws:
SQLException
-
platformHandler
Description copied from interface:SpiExpressionRequestReturn the DB specific handler for JSON and ARRAY expressions.- Specified by:
platformHandlerin interfaceSpiExpressionRequest
-
parseDeploy
Description copied from interface:SpiExpressionRequestParse the logical property name to the deployment name.- Specified by:
parseDeployin interfaceSpiExpressionRequest
-
appendLike
public void appendLike(boolean rawLikeExpression) Append the database platform like clause.- Specified by:
appendLikein interfaceSpiExpressionRequest
-
escapeLikeString
Description copied from interface:SpiExpressionBindEscapes a string to use it as exact match in Like clause.- Specified by:
escapeLikeStringin interfaceSpiExpressionBind
-
nextParameter
public int nextParameter()Increments the parameter index and returns that value.- Specified by:
nextParameterin interfaceSpiExpressionRequest
-
descriptor
Description copied from interface:SpiExpressionBindReturn the bean descriptor for the root type.- Specified by:
descriptorin interfaceSpiExpressionBind
-
queryRequest
Description copied from interface:SpiExpressionRequestReturn the associated QueryRequest.- Specified by:
queryRequestin interfaceSpiExpressionRequest
-
append
Description copied from interface:SpiExpressionRequestAppend to the expression sql without any parsing.- Specified by:
appendin interfaceDbExpressionRequest- Specified by:
appendin interfaceSpiExpressionRequest
-
append
Description copied from interface:SpiExpressionRequestAppend to the expression sql without any parsing.- Specified by:
appendin interfaceDbExpressionRequest- Specified by:
appendin interfaceSpiExpressionRequest
-
property
Description copied from interface:SpiExpressionRequestAppend to the expression sql with logical property parsing to db columns with logical path prefix.This is a fast path case when expression is a bean property path and falls back to using parse() when that isn't the case.
- Specified by:
propertyin interfaceDbExpressionRequest- Specified by:
propertyin interfaceSpiExpressionRequest
-
parse
Description copied from interface:SpiExpressionRequestAppend to the expression sql with logical property parsing to db columns with logical path prefix.- Specified by:
parsein interfaceSpiExpressionRequest
-
addBindEncryptKey
Description copied from interface:SpiExpressionBindAdd an encryption key to bind to this request.- Specified by:
addBindEncryptKeyin interfaceSpiExpressionBind
-
addBindValue
Description copied from interface:SpiExpressionBindAdd a bind value to this request.- Specified by:
addBindValuein interfaceSpiExpressionBind
-
bindLog
-
sql
Description copied from interface:SpiExpressionRequestReturn the accumulated expression sql for all expressions in this request.- Specified by:
sqlin interfaceSpiExpressionRequest
-
bindValues
Description copied from interface:SpiExpressionRequestReturn the ordered list of bind values for all expressions in this request.- Specified by:
bindValuesin interfaceSpiExpressionRequest
-
appendInExpression
Description copied from interface:SpiExpressionRequestAppend IN expression taking into account platform and type support for Multi-value.- Specified by:
appendInExpressionin interfaceSpiExpressionRequest
-