com.mysema.query.types.path
Class ListPath<E,Q extends SimpleExpression<E>>
java.lang.Object
com.mysema.query.types.ExpressionBase<D>
com.mysema.query.types.expr.SimpleExpression<C>
com.mysema.query.types.expr.CollectionExpressionBase<C,E>
com.mysema.query.types.path.CollectionPathBase<List<E>,E,Q>
com.mysema.query.types.path.ListPath<E,Q>
- Type Parameters:
E
- component typeQ
- component query type
- All Implemented Interfaces:
- CollectionExpression<List<E>,E>, ListExpression<E,Q>, Expression<List<E>>, ParametrizedExpression<List<E>>, Path<List<E>>, Serializable
public class ListPath<E,Q extends SimpleExpression<E>>
- extends CollectionPathBase<List<E>,E,Q>
- implements ListExpression<E,Q>
ListPath represents list paths
- Author:
- tiwe
- See Also:
- Serialized Form
Methods inherited from class com.mysema.query.types.expr.SimpleExpression |
as, as, count, countDistinct, eq, eq, in, in, in, isNotNull, isNull, ne, ne, notIn, notIn, notIn, when, when |
ListPath
public ListPath(Class<? super E> elementType,
Class<Q> queryType,
String variable)
ListPath
public ListPath(Class<? super E> elementType,
Class<Q> queryType,
Path<?> parent,
String property)
ListPath
public ListPath(Class<? super E> elementType,
Class<Q> queryType,
PathMetadata<?> metadata)
accept
public <R,C> R accept(Visitor<R,C> v,
C context)
- Description copied from interface:
Expression
- Accept the visitor with the given context
- Specified by:
accept
in interface Expression<List<E>>
- Returns:
any
public Q any()
- Specified by:
any
in class CollectionPathBase<List<E>,E,Q extends SimpleExpression<E>>
forListAccess
protected PathMetadata<Integer> forListAccess(int index)
forListAccess
protected PathMetadata<Integer> forListAccess(Expression<Integer> index)
equals
public boolean equals(Object o)
- Specified by:
equals
in class SimpleExpression<List<E>>
get
public Q get(Expression<Integer> index)
- Description copied from interface:
ListExpression
- Indexed access
- Specified by:
get
in interface ListExpression<E,Q extends SimpleExpression<E>>
- Returns:
- this.get(index)
- See Also:
List.get(int)
get
public Q get(int index)
- Description copied from interface:
ListExpression
- Indexed access
- Specified by:
get
in interface ListExpression<E,Q extends SimpleExpression<E>>
- Returns:
- this.get(index)
- See Also:
List.get(int)
getElementType
public Class<E> getElementType()
- Specified by:
getElementType
in class CollectionExpressionBase<List<E>,E>
getMetadata
public PathMetadata<?> getMetadata()
- Description copied from interface:
Path
- Get the metadata for this path
- Specified by:
getMetadata
in interface Path<List<E>>
- Returns:
getRoot
public Path<?> getRoot()
- Description copied from interface:
Path
- Get the root for this path
- Specified by:
getRoot
in interface Path<List<E>>
- Returns:
hashCode
public int hashCode()
- Overrides:
hashCode
in class SimpleExpression<List<E>>
getAnnotatedElement
public AnnotatedElement getAnnotatedElement()
- Description copied from interface:
Path
- Return the annotated element related to the given path
For property paths the annotated element contains the annotations of the
related field and/or getter method and for all others paths the annotated element
is the expression type.
- Specified by:
getAnnotatedElement
in interface Path<List<E>>
- Returns:
getParameter
public Class<?> getParameter(int index)
- Specified by:
getParameter
in interface ParametrizedExpression<List<E>>
- Returns:
Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.