public class CollectionLiteral extends CollectionExpression implements SQLLiteral
SQLExpression.ColumnExpressionList
lowestOperator, mapping, parameterName, st, stmt, subExprs, table
Constructor and Description |
---|
CollectionLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for a collection literal with a value.
|
Modifier and Type | Method and Description |
---|---|
List<SQLExpression> |
getElementExpressions() |
Object |
getValue()
Accessor to the literal value
|
SQLExpression |
invoke(String methodName,
List args)
Invocation of a method on this expression.
|
void |
setNotParameter()
Method to set this literal as not being a parameter.
|
protected void |
setStatement() |
eq, ne
add, and, 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 CollectionLiteral(SQLStatement stmt, JavaTypeMapping mapping, Object value, String parameterName)
stmt
- SQL statementmapping
- The mapping to the Collectionvalue
- The transient Collection that is the value.parameterName
- Name of the parameter that this represents if any (as JDBC "?")public Object getValue()
SQLLiteral
getValue
in interface SQLLiteral
public List<SQLExpression> getElementExpressions()
public void setNotParameter()
SQLLiteral
setNotParameter
in interface SQLLiteral
protected void setStatement()
public SQLExpression invoke(String methodName, List args)
SQLExpression
invoke
in class CollectionExpression
methodName
- name of the method to invokeargs
- Args to this method (if any)Copyright © 2015. All rights reserved.