org.datanucleus.store.mapped.expression
Class ScalarExpression.ExpressionList

java.lang.Object
  extended by org.datanucleus.store.mapped.expression.ScalarExpression.ExpressionList
Enclosing class:
ScalarExpression

public class ScalarExpression.ExpressionList
extends java.lang.Object

Ordered list of expressions comma separated


Constructor Summary
ScalarExpression.ExpressionList()
           
 
Method Summary
 void addExpression(ScalarExpression expression)
          Add a new Expression to the list
 ScalarExpression getExpression(int index)
          Gets the expression in the index
 int size()
          Number of expressions enclosed in this Scalar Expression
 ScalarExpression[] toArray()
          Return an array of nested expressions
 java.lang.String toString()
          Returns an string with a serie of expression comma separated.
 void updateExpressionAlias()
          Convenience method for the situation where the alias of a single-field expression has been updated since adding the expression to the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScalarExpression.ExpressionList

public ScalarExpression.ExpressionList()
Method Detail

addExpression

public void addExpression(ScalarExpression expression)
Add a new Expression to the list

Parameters:
expression - in RDBMS datastore expressions can be columns

updateExpressionAlias

public void updateExpressionAlias()
Convenience method for the situation where the alias of a single-field expression has been updated since adding the expression to the list. Does nothing when there are more than 1 expression in the list.


getExpression

public ScalarExpression getExpression(int index)
Gets the expression in the index

Parameters:
index - the position for the expression in the list of expressions
Returns:
the expression in the index

size

public int size()
Number of expressions enclosed in this Scalar Expression

Returns:
number of expressions enclosed in this Scalar Expression

toString

public java.lang.String toString()
Returns an string with a serie of expression comma separated. BNF notation: [ expr [, expr] ]

Overrides:
toString in class java.lang.Object
Returns:
the expression list comma separated

toArray

public ScalarExpression[] toArray()
Return an array of nested expressions

Returns:
ScalarExpression[]


Copyright © 2010. All Rights Reserved.