org.datanucleus.store.mapped.expression
Class ArrayLiteral

java.lang.Object
  extended by org.datanucleus.store.mapped.expression.ScalarExpression
      extended by org.datanucleus.store.mapped.expression.ArrayExpression
          extended by org.datanucleus.store.mapped.expression.ArrayLiteral
All Implemented Interfaces:
Literal

public class ArrayLiteral
extends ArrayExpression
implements Literal

Representation of array expression. Either backed by ScalarExpressions, or by an array field.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.datanucleus.store.mapped.expression.ScalarExpression
ScalarExpression.DatastoreFieldExpression, ScalarExpression.DyadicOperator, ScalarExpression.ExpressionList, ScalarExpression.IllegalArgumentTypeException, ScalarExpression.IllegalOperationException, ScalarExpression.MethodInvocationException, ScalarExpression.MonadicOperator, ScalarExpression.Operator
 
Field Summary
 
Fields inherited from class org.datanucleus.store.mapped.expression.ScalarExpression
aliasIdentifier, checkForTypeAssignability, expressionList, FILTER, LOCALISER, lowestOperator, mapping, OP_ADD, OP_AND, OP_BETWEEN, OP_COM, OP_CONCAT, OP_DIV, OP_EQ, OP_GT, OP_GTEQ, OP_IN, OP_IS, OP_ISNOT, OP_LIKE, OP_LT, OP_LTEQ, OP_MOD, OP_MUL, OP_NEG, OP_NOT, OP_NOTEQ, OP_NOTIN, OP_NOTLIKE, OP_OR, OP_SUB, parameterName, PROJECTION, qs, st, te
 
Constructor Summary
protected ArrayLiteral(QueryExpression qs)
          Constructor
  ArrayLiteral(QueryExpression qs, JavaTypeMapping mapping, java.lang.Object literal)
          Constructor
  ArrayLiteral(QueryExpression qs, ScalarExpression[] expr)
          Constructor
 
Method Summary
 java.lang.Object getRawValue()
          Accessor for the "raw" value that this literal represents.
 java.lang.Object getValue()
          Accessor to the literal value
 void setRawValue(java.lang.Object val)
          Method to save a "raw" value that this literal represents.
 
Methods inherited from class org.datanucleus.store.mapped.expression.ArrayExpression
accessField, containsMethod, lengthMethod, sizeMethod
 
Methods inherited from class org.datanucleus.store.mapped.expression.ScalarExpression
add, and, as, assertValidTypeForParameterComparison, callMethod, cast, checkForTypeAssignability, com, div, encloseWithInParentheses, eor, eq, equals, getAlias, getConsistentTypeForParameterComparison, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, gt, gteq, in, instanceOf, ior, lt, lteq, mod, mul, neg, not, noteq, setParameterName, sub, toStatementText, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayLiteral

protected ArrayLiteral(QueryExpression qs)
Constructor

Parameters:
qs - The query statement

ArrayLiteral

public ArrayLiteral(QueryExpression qs,
                    ScalarExpression[] expr)
Constructor

Parameters:
qs - The query statement
expr - the array of expressions

ArrayLiteral

public ArrayLiteral(QueryExpression qs,
                    JavaTypeMapping mapping,
                    java.lang.Object literal)
Constructor

Parameters:
qs - The query statement
mapping - the JavaTypeMapping
literal - the array value
Method Detail

getValue

public java.lang.Object getValue()
Description copied from interface: Literal
Accessor to the literal value

Specified by:
getValue in interface Literal
Returns:
the value of the literal

setRawValue

public void setRawValue(java.lang.Object val)
Method to save a "raw" value that this literal represents. This value differs from the literal value since that is of the same type as this literal.

Specified by:
setRawValue in interface Literal
Parameters:
val - The raw value

getRawValue

public java.lang.Object getRawValue()
Accessor for the "raw" value that this literal represents. This value differs from the literal value since that is of the same type as this literal.

Specified by:
getRawValue in interface Literal
Returns:
The raw value


Copyright © 2010. All Rights Reserved.