java.lang.Object
io.ebeaninternal.server.expression.IdInExpression
- All Implemented Interfaces:
Expression,SpiExpression,IdInCommon
In a collection of ID values.
-
Field Summary
Fields inherited from interface io.ebeaninternal.api.SpiExpression
SQL_FALSE, SQL_TRUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBindValues(SpiExpressionBind request) Add the parameter values to be set against query.voidaddSql(SpiExpressionRequest request) Add some sql to the query.voidaddSqlNoAlias(SpiExpressionRequest request) For use with deleting non-attached detail beans during stateless update.voidcontainsMany(BeanDescriptor<?> desc, ManyWhereJoins manyWhereJoin) Process "Many" properties populating ManyWhereJoins.Return a copy of the expression for use in the query plan key.getIdEqualTo(String idName) Return the bind Id value if this is a "equal to" expression for the id property.idValues()Return the ids this expression is looking to fetch.booleanisSameByBind(SpiExpression other) Return true if the expression is the same with respect to bind values.booleannaturalKey(NaturalKeyQueryData<?> data) Check for match to a natural key query returning false if it doesn't match.voidprefixProperty(String path) Apply property prefix when filterMany expressions included into main query.voidprepareExpression(BeanQueryRequest<?> request) Prepare the expression.voidBuild the key for bind values of the query.voidqueryPlanHash(StringBuilder builder) Incorporates the number of ID values to bind.intRemove Ids that where obtained from l2 cache.voidsimplify()Simplify nested expressions if possible.voidvalidate(SpiExpressionValidation validation) Validate all the properties/paths associated with this expression.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.ebeaninternal.api.SpiExpression
copy
-
Constructor Details
-
IdInExpression
-
-
Method Details
-
idValues
Description copied from interface:IdInCommonReturn the ids this expression is looking to fetch.- Specified by:
idValuesin interfaceIdInCommon
-
removeIds
Description copied from interface:IdInCommonRemove Ids that where obtained from l2 cache. Don't fetch these from DB.- Specified by:
removeIdsin interfaceIdInCommon
-
prepareExpression
Description copied from interface:SpiExpressionPrepare the expression. For example, compile sub-query expressions etc.- Specified by:
prepareExpressionin interfaceSpiExpression
-
containsMany
Description copied from interface:SpiExpressionProcess "Many" properties populating ManyWhereJoins.Predicates on Many properties require an extra independent join clause.
- Specified by:
containsManyin interfaceSpiExpression
-
validate
Description copied from interface:SpiExpressionValidate all the properties/paths associated with this expression.- Specified by:
validatein interfaceSpiExpression
-
addBindValues
Description copied from interface:SpiExpressionAdd the parameter values to be set against query. For each ? place holder there should be a corresponding value that is added to the bindList.- Specified by:
addBindValuesin interfaceSpiExpression- Parameters:
request- the associated request.
-
addSqlNoAlias
For use with deleting non-attached detail beans during stateless update. -
addSql
Description copied from interface:SpiExpressionAdd 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.
- Specified by:
addSqlin interfaceSpiExpression- Parameters:
request- the associated request.
-
queryPlanHash
Incorporates the number of ID values to bind.- Specified by:
queryPlanHashin interfaceSpiExpression
-
queryBindKey
Description copied from interface:SpiExpressionBuild the key for bind values of the query.- Specified by:
queryBindKeyin interfaceSpiExpression
-
isSameByBind
Description copied from interface:SpiExpressionReturn true if the expression is the same with respect to bind values.- Specified by:
isSameByBindin interfaceSpiExpression
-
prefixProperty
Description copied from interface:SpiExpressionApply property prefix when filterMany expressions included into main query.- Specified by:
prefixPropertyin interfaceSpiExpression
-
naturalKey
Description copied from interface:SpiExpressionCheck for match to a natural key query returning false if it doesn't match.- Specified by:
naturalKeyin interfaceSpiExpression
-
simplify
public void simplify()Description copied from interface:SpiExpressionSimplify nested expressions if possible.- Specified by:
simplifyin interfaceSpiExpression
-
getIdEqualTo
Description copied from interface:SpiExpressionReturn the bind Id value if this is a "equal to" expression for the id property.- Specified by:
getIdEqualToin interfaceSpiExpression
-
copyForPlanKey
Description copied from interface:SpiExpressionReturn a copy of the expression for use in the query plan key.- Specified by:
copyForPlanKeyin interfaceSpiExpression
-