public class MapExpression extends SQLExpression
SQLExpression.ColumnExpressionList
lowestOperator, mapping, parameterName, st, stmt, subExprs, table
Constructor and Description |
---|
MapExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
BooleanExpression |
eq(SQLExpression expr)
Method to return the expression for comparing a map with a value.
|
String |
getAliasForMapTable()
Accessor for the "map" table where this expression represents an alias set in the FROM clause, so already joined.
|
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 map with a value.
|
void |
setAliasForMapTable(String alias)
Method to set the alias for the "map" table (join table, or key table when value in key, or value table when key in value) when specified in FROM.
|
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, toSQLText
public MapExpression(SQLStatement stmt, SQLTable table, JavaTypeMapping mapping)
stmt
- The SQL Statementtable
- Table containing the map fieldmapping
- The java field mappingpublic void setAliasForMapTable(String alias)
alias
- The alias for the map tablepublic String getAliasForMapTable()
public SQLExpression invoke(String methodName, List args)
SQLExpression
invoke
in class SQLExpression
methodName
- name of the method to invokeargs
- Args to this method (if any)public BooleanExpression eq(SQLExpression expr)
eq
in class SQLExpression
expr
- The value to compare with.public BooleanExpression ne(SQLExpression expr)
ne
in class SQLExpression
expr
- The value to compare with.Copyright © 2017. All rights reserved.