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
Representation of array literal.
-
Nested Class Summary
Nested classes/interfaces inherited from class SQLExpression
SQLExpression.ColumnExpressionList -
Field Summary
FieldsFields inherited from class ArrayExpression
elementExpressionsFields inherited from class SQLExpression
lowestOperator, mapping, parameterName, st, stmt, subExprs, table -
Constructor Summary
ConstructorsConstructorDescriptionArrayLiteral(SQLStatement stmt, JavaTypeMapping mapping, Object value, String parameterName) Constructor for an array literal with a value. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Accessor to the literal valuevoidMethod to set this literal as not being a parameter.protected voidMethods inherited from class ArrayExpression
eq, getElementExpressions, invoke, neMethods inherited from class SQLExpression
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, unDistinct
-
Field Details
-
value
value of the array
-
-
Constructor Details
-
ArrayLiteral
Constructor for an array literal with a value.- Parameters:
stmt- The SQL statementmapping- the mapping to usevalue- the array valueparameterName- Name of the parameter that this represents if any (as JDBC "?")
-
-
Method Details
-
getValue
Description copied from interface:SQLLiteralAccessor to the literal value- Specified by:
getValuein interfaceSQLLiteral- Returns:
- the value of the literal
-
setNotParameter
public void setNotParameter()Description copied from interface:SQLLiteralMethod 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:
setNotParameterin interfaceSQLLiteral
-
setStatement
protected void setStatement()
-