com.mysema.query.types.path
Class CollectionPath<E,Q extends SimpleExpression<? super E>>

java.lang.Object
  extended by com.mysema.query.types.expr.DslExpression<T>
      extended by com.mysema.query.types.expr.CollectionExpressionBase<C,E>
          extended by com.mysema.query.types.path.CollectionPathBase<Collection<E>,E,Q>
              extended by com.mysema.query.types.path.CollectionPath<E,Q>
Type Parameters:
E - component type
Q - component query type
All Implemented Interfaces:
CollectionExpression<Collection<E>,E>, Expression<Collection<E>>, ParametrizedExpression<Collection<E>>, Path<Collection<E>>, Serializable

public class CollectionPath<E,Q extends SimpleExpression<? super E>>
extends CollectionPathBase<Collection<E>,E,Q>

CollectionPath represents collection paths

Author:
tiwe
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.expr.DslExpression
mixin
 
Constructor Summary
CollectionPath(Class<? super E> type, Class<Q> queryType, Path<?> parent, String property)
           
CollectionPath(Class<? super E> type, Class<Q> queryType, PathMetadata<?> metadata)
           
CollectionPath(Class<? super E> type, Class<Q> queryType, PathMetadata<?> metadata, PathInits inits)
           
CollectionPath(Class<? super E> type, Class<Q> queryType, String variable)
           
 
Method Summary
<R,C> R
accept(Visitor<R,C> v, C context)
          Accept the visitor with the given context
 Q any()
           
 AnnotatedElement getAnnotatedElement()
          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.
 Class<E> getElementType()
           
 PathMetadata<?> getMetadata()
          Get the metadata for this path
 Class<?> getParameter(int index)
           
 Path<?> getRoot()
          Get the root for this path
 
Methods inherited from class com.mysema.query.types.path.CollectionPathBase
newInstance
 
Methods inherited from class com.mysema.query.types.expr.CollectionExpressionBase
contains, contains, isEmpty, isNotEmpty, size
 
Methods inherited from class com.mysema.query.types.expr.DslExpression
as, as, equals, getType, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mysema.query.types.Expression
getType
 

Constructor Detail

CollectionPath

public CollectionPath(Class<? super E> type,
                      Class<Q> queryType,
                      String variable)

CollectionPath

public CollectionPath(Class<? super E> type,
                      Class<Q> queryType,
                      Path<?> parent,
                      String property)

CollectionPath

public CollectionPath(Class<? super E> type,
                      Class<Q> queryType,
                      PathMetadata<?> metadata)

CollectionPath

public CollectionPath(Class<? super E> type,
                      Class<Q> queryType,
                      PathMetadata<?> metadata,
                      PathInits inits)
Method Detail

accept

public final <R,C> R accept(Visitor<R,C> v,
                            C context)
Description copied from interface: Expression
Accept the visitor with the given context

Type Parameters:
R - return type
C - context type
Parameters:
v - visitor
context - context of visit
Returns:

any

public Q any()
Specified by:
any in class CollectionPathBase<Collection<E>,E,Q extends SimpleExpression<? super E>>

getElementType

public Class<E> getElementType()
Specified by:
getElementType in class CollectionExpressionBase<Collection<E>,E>

getMetadata

public PathMetadata<?> getMetadata()
Description copied from interface: Path
Get the metadata for this path

Returns:

getRoot

public Path<?> getRoot()
Description copied from interface: Path
Get the root for this path

Returns:

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.

Returns:

getParameter

public Class<?> getParameter(int index)
Returns:


Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.