Class ArrayExpression
java.lang.Object
org.datanucleus.store.rdbms.sql.expression.SQLExpression
org.datanucleus.store.rdbms.sql.expression.ArrayExpression
- Direct Known Subclasses:
ArrayLiteral
Representation of array expression.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
SQLExpression.ColumnExpressionList
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List
<SQLExpression> Expressions for all elements in the array.Fields inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
lowestOperator, mapping, parameterName, st, stmt, subExprs, table
-
Constructor Summary
ConstructorsConstructorDescriptionArrayExpression
(SQLStatement stmt, JavaTypeMapping mapping, SQLExpression[] exprs) Constructor for an SQL expression for an array expression specified in the query.ArrayExpression
(SQLStatement stmt, SQLTable table, JavaTypeMapping mapping) Constructor for an SQL expression for a (field) mapping in a specified table. -
Method Summary
Modifier and TypeMethodDescriptioneq
(SQLExpression expr) Equality operator (equals to)invoke
(String methodName, List<SQLExpression> args) Invocation of a method on this expression.ne
(SQLExpression expr) Not equality operator (not equals to)Methods inherited from class org.datanucleus.store.rdbms.sql.expression.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
-
elementExpressions
Expressions for all elements in the array.
-
-
Constructor Details
-
ArrayExpression
Constructor for an SQL expression for a (field) mapping in a specified table.- Parameters:
stmt
- The statementtable
- The table in the statementmapping
- The mapping for the field
-
ArrayExpression
Constructor for an SQL expression for an array expression specified in the query.- Parameters:
stmt
- The statementmapping
- The mapping for the fieldexprs
- element expressions
-
-
Method Details
-
getElementExpressions
-
invoke
Description copied from class:SQLExpression
Invocation of a method on this expression.- Overrides:
invoke
in classSQLExpression
- Parameters:
methodName
- name of the method to invokeargs
- Args to this method (if any)- Returns:
- the converted value
-
eq
Description copied from class:SQLExpression
Equality operator (equals to)- Overrides:
eq
in classSQLExpression
- Parameters:
expr
- the right-hand operand- Returns:
- The type of an equality expression is a boolean
-
ne
Description copied from class:SQLExpression
Not equality operator (not equals to)- Overrides:
ne
in classSQLExpression
- Parameters:
expr
- the right-hand operand- Returns:
- The type of an equality expression is a boolean
-