org.datanucleus.jdo.query
Class ListExpressionImpl<T extends java.util.List<E>,E>

java.lang.Object
  extended by org.datanucleus.jdo.query.ExpressionImpl<T>
      extended by org.datanucleus.jdo.query.CollectionExpressionImpl<T,E>
          extended by org.datanucleus.jdo.query.ListExpressionImpl<T,E>
All Implemented Interfaces:
CollectionExpression<T,E>, Expression<T>, ListExpression<T,E>

public class ListExpressionImpl<T extends java.util.List<E>,E>
extends CollectionExpressionImpl<T,E>
implements ListExpression<T,E>

Implementation of a ListExpression.


Constructor Summary
ListExpressionImpl(java.lang.Class<T> cls, java.lang.String name, ExpressionType type)
           
ListExpressionImpl(PersistableExpression parent, java.lang.String name)
           
 
Method Summary
 Expression get(int pos)
          Method returning the element at this position in the List.
 Expression get(NumericExpression<java.lang.Integer> posExpr)
          Method returning the element at this position in the List.
 
Methods inherited from class org.datanucleus.jdo.query.CollectionExpressionImpl
contains, contains, isEmpty, size
 
Methods inherited from class org.datanucleus.jdo.query.ExpressionImpl
cast, count, countDistinct, eq, eq, getQueryExpression, instanceOf, isParameter, isVariable, ne, ne
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.datanucleus.query.typesafe.CollectionExpression
contains, contains, isEmpty, size
 
Methods inherited from interface org.datanucleus.query.typesafe.Expression
cast, count, countDistinct, eq, eq, instanceOf, ne, ne
 

Constructor Detail

ListExpressionImpl

public ListExpressionImpl(PersistableExpression parent,
                          java.lang.String name)

ListExpressionImpl

public ListExpressionImpl(java.lang.Class<T> cls,
                          java.lang.String name,
                          ExpressionType type)
Method Detail

get

public Expression get(int pos)
Description copied from interface: ListExpression
Method returning the element at this position in the List.

Specified by:
get in interface ListExpression<T extends java.util.List<E>,E>
Parameters:
pos - The position
Returns:
The element at this position in the List

get

public Expression get(NumericExpression<java.lang.Integer> posExpr)
Description copied from interface: ListExpression
Method returning the element at this position in the List.

Specified by:
get in interface ListExpression<T extends java.util.List<E>,E>
Parameters:
posExpr - The position expression
Returns:
The element at this position in the List


Copyright © 2011. All Rights Reserved.