Class SingleCollectionLiteral
- java.lang.Object
-
- org.datanucleus.store.rdbms.sql.expression.SQLExpression
-
- org.datanucleus.store.rdbms.sql.expression.DelegatedExpression
-
- org.datanucleus.store.rdbms.sql.expression.SingleCollectionExpression
-
- org.datanucleus.store.rdbms.sql.expression.SingleCollectionLiteral
-
- All Implemented Interfaces:
SQLLiteral
public class SingleCollectionLiteral extends SingleCollectionExpression implements SQLLiteral
Cover-all literal to represent "single collection" mapped types. Note that we should split this up if we ever want to have methods on particular types. For example we could have OptionalExpression and provide methods "isPresent" and "get".
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
SQLExpression.ColumnExpressionList
-
-
Field Summary
-
Fields inherited from class org.datanucleus.store.rdbms.sql.expression.SingleCollectionExpression
wrappedExpressions
-
Fields inherited from class org.datanucleus.store.rdbms.sql.expression.DelegatedExpression
delegate
-
Fields inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
lowestOperator, mapping, parameterName, st, stmt, subExprs, table
-
-
Constructor Summary
Constructors Constructor Description SingleCollectionLiteral(SQLStatement stmt, JavaTypeMapping mapping, Object value, String parameterName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getValue()
Accessor to the literal valuevoid
setNotParameter()
Method to set this literal as not being a parameter.-
Methods inherited from class org.datanucleus.store.rdbms.sql.expression.SingleCollectionExpression
invoke
-
Methods inherited from class org.datanucleus.store.rdbms.sql.expression.DelegatedExpression
add, div, eq, ge, getDelegate, gt, isParameter, le, lt, mod, mul, ne, sub, toSQLText
-
Methods inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
and, bitAnd, bitOr, cast, com, distinct, encloseInParentheses, eor, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, in, ior, is, neg, not, setJavaTypeMapping, unDistinct
-
-
-
-
Constructor Detail
-
SingleCollectionLiteral
public SingleCollectionLiteral(SQLStatement stmt, JavaTypeMapping mapping, Object value, String parameterName)
-
-
Method Detail
-
getValue
public Object getValue()
Description copied from interface:SQLLiteral
Accessor to the literal value- Specified by:
getValue
in interfaceSQLLiteral
- Returns:
- the value of the literal
-
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 interfaceSQLLiteral
-
-