org.datanucleus.store.rdbms.sql.expression
Class ArrayLiteral
java.lang.Object
org.datanucleus.store.rdbms.sql.expression.SQLExpression
org.datanucleus.store.rdbms.sql.expression.ArrayExpression
org.datanucleus.store.rdbms.sql.expression.ArrayLiteral
- All Implemented Interfaces:
- SQLLiteral
public class ArrayLiteral
- extends ArrayExpression
- implements SQLLiteral
Representation of array literal.
|
Constructor Summary |
ArrayLiteral(SQLStatement stmt,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
java.lang.Object value,
boolean parameter)
Constructor for an array literal with a value. |
| Methods inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression |
add, and, cast, checkForAndCorrectParameterComparison, com, div, encloseInParentheses, eor, ge, getJavaTypeMapping, getNumberOfSubExpressions, getSQLStatement, getSQLTable, gt, in, ior, is, isParameter, le, lt, mod, mul, neg, not, sub, toSQLText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayLiteral
public ArrayLiteral(SQLStatement stmt,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
java.lang.Object value,
boolean parameter)
- Constructor for an array literal with a value.
- Parameters:
stmt - The SQL statementmapping - the mapping to usevalue - the array valueparameter - Whether this is a parameter (JDBC "?")
getValue
public java.lang.Object getValue()
- Description copied from interface:
SQLLiteral
- Accessor to the literal value
- Specified by:
getValue in interface SQLLiteral
- Returns:
- the value of the literal
getElementExpressions
public java.util.List<SQLExpression> getElementExpressions()
setNotParameter
public void setNotParameter()
- Description copied from interface:
SQLLiteral
- Method to set this literal as not being a parameter.
If the literal if not currently a parameter then does nothing.
Updates any underlying SQL to have the value.
- Specified by:
setNotParameter in interface SQLLiteral
setStatement
protected void setStatement()
Copyright © 2009. All Rights Reserved.