public class CollectionExpression extends SQLExpression
When navigated through using contains(expr), the elements of the collection are relationally joined onto the query statement.
As this is a Collection Expression it works equally for Sets and Lists, and we use CollectionStore as the backing store interface, so that ListStore and SetStore are equally applicable.
SQLExpression.ColumnExpressionListlowestOperator, mapping, parameterName, st, stmt, subExprs, table| Constructor and Description |
|---|
CollectionExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping)
Constructor for an SQL expression for a (field) mapping in a specified table.
|
| Modifier and Type | Method and Description |
|---|---|
BooleanExpression |
eq(SQLExpression expr)
Method to return the expression for comparing a collection with a value.
|
SQLExpression |
invoke(String methodName,
List args)
Invocation of a method on this expression.
|
BooleanExpression |
ne(SQLExpression expr)
Method to return the expression for comparing a collection with a value.
|
add, and, bitAnd, bitOr, cast, com, distinct, div, encloseInParentheses, eor, ge, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, gt, in, ior, is, isParameter, le, lt, mod, mul, neg, not, setJavaTypeMapping, sub, toSQLTextpublic CollectionExpression(SQLStatement stmt, SQLTable table, JavaTypeMapping mapping)
stmt - The statementtable - The table in the statementmapping - The mapping for the fieldpublic SQLExpression invoke(String methodName, List args)
SQLExpressioninvoke in class SQLExpressionmethodName - name of the method to invokeargs - Args to this method (if any)public BooleanExpression eq(SQLExpression expr)
eq in class SQLExpressionexpr - The value to compare with.public BooleanExpression ne(SQLExpression expr)
ne in class SQLExpressionexpr - The value to compare with.Copyright © 2020. All rights reserved.