Class SingleCollectionExpression
- java.lang.Object
-
- org.datanucleus.store.rdbms.sql.expression.SQLExpression
-
- org.datanucleus.store.rdbms.sql.expression.DelegatedExpression
-
- org.datanucleus.store.rdbms.sql.expression.SingleCollectionExpression
-
- Direct Known Subclasses:
OptionalExpression
,SingleCollectionLiteral
public class SingleCollectionExpression extends DelegatedExpression
Cover-all expression 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 Modifier and Type Field Description protected SQLExpression[]
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 SingleCollectionExpression(SQLStatement stmt, SQLTable table, JavaTypeMapping mapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SQLExpression
invoke(String methodName, List args)
Allow the methods to be invoked directly in the wrapped type.-
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
-
-
-
-
Field Detail
-
wrappedExpressions
protected SQLExpression[] wrappedExpressions
-
-
Constructor Detail
-
SingleCollectionExpression
public SingleCollectionExpression(SQLStatement stmt, SQLTable table, JavaTypeMapping mapping)
-
-
Method Detail
-
invoke
public SQLExpression invoke(String methodName, List args)
Allow the methods to be invoked directly in the wrapped type.- Overrides:
invoke
in classDelegatedExpression
- Parameters:
methodName
- name of the method to invokeargs
- Args to this method (if any)- Returns:
- the converted value
-
-