org.datanucleus.store.rdbms.sql.expression
Class ArrayExpression

java.lang.Object
  extended by org.datanucleus.store.rdbms.sql.expression.SQLExpression
      extended by org.datanucleus.store.rdbms.sql.expression.ArrayExpression
Direct Known Subclasses:
ArrayLiteral

public class ArrayExpression
extends SQLExpression

Representation of array expression.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
SQLExpression.ColumnExpressionList
 
Field Summary
protected  List<SQLExpression> elementExpressions
          Expressions for all elements in the array.
 
Fields inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
LOCALISER, lowestOperator, mapping, parameterName, st, stmt, subExprs, table
 
Constructor Summary
ArrayExpression(SQLStatement stmt, org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping, SQLExpression[] exprs)
          Constructor for an SQL expression for an array expression specified in the query.
ArrayExpression(SQLStatement stmt, SQLTable table, org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
          Constructor for an SQL expression for a (field) mapping in a specified table.
 
Method Summary
 BooleanExpression eq(SQLExpression expr)
          Equality operator (equals to)
 List<SQLExpression> getElementExpressions()
           
 SQLExpression invoke(String methodName, List args)
          Invocation of a method on this expression.
 BooleanExpression ne(SQLExpression expr)
          Not equality operator (not equals to)
 
Methods inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
add, and, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elementExpressions

protected List<SQLExpression> elementExpressions
Expressions for all elements in the array.

Constructor Detail

ArrayExpression

public ArrayExpression(SQLStatement stmt,
                       SQLTable table,
                       org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
Constructor for an SQL expression for a (field) mapping in a specified table.

Parameters:
stmt - The statement
table - The table in the statement
mapping - The mapping for the field

ArrayExpression

public ArrayExpression(SQLStatement stmt,
                       org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
                       SQLExpression[] exprs)
Constructor for an SQL expression for an array expression specified in the query.

Parameters:
stmt - The statement
mapping - The mapping for the field
exprs - element expressions
Method Detail

getElementExpressions

public List<SQLExpression> getElementExpressions()

invoke

public SQLExpression invoke(String methodName,
                            List args)
Description copied from class: SQLExpression
Invocation of a method on this expression.

Overrides:
invoke in class SQLExpression
Parameters:
methodName - name of the method to invoke
args - Args to this method (if any)
Returns:
the converted value

eq

public BooleanExpression eq(SQLExpression expr)
Description copied from class: SQLExpression
Equality operator (equals to)

Overrides:
eq in class SQLExpression
Parameters:
expr - the right-hand operand
Returns:
The type of an equality expression is a boolean

ne

public BooleanExpression ne(SQLExpression expr)
Description copied from class: SQLExpression
Not equality operator (not equals to)

Overrides:
ne in class SQLExpression
Parameters:
expr - the right-hand operand
Returns:
The type of an equality expression is a boolean


Copyright © 2012. All Rights Reserved.