com.mysema.query.types
Interface Path<C>

All Known Implementing Classes:
NullExpr, PArray, PathBuilder, PathMixin, PBoolean, PCollection, PComparable, PDate, PDateTime, PEntity, PList, PMap, PNumber, PSet, PSimple, PString, PTime

public interface Path<C>

Path represents a path expression

Version:
$Id$
Author:
tiwe

Method Summary
 Expr<C> asExpr()
          Cast to Expr
 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.
 PathMetadata<?> getMetadata()
          Get the metadata for this path
 Path<?> getRoot()
          Get the root for this path
 Class<? extends C> getType()
          Get the type of this path
 EBoolean isNotNull()
          Create a this is not null expression
 EBoolean isNull()
          Create a this is null expression
 

Method Detail

asExpr

Expr<C> asExpr()
Cast to Expr

Returns:

getMetadata

PathMetadata<?> getMetadata()
Get the metadata for this path

Returns:

getRoot

Path<?> getRoot()
Get the root for this path

Returns:

getType

Class<? extends C> getType()
Get the type of this path

Returns:

isNotNull

EBoolean isNotNull()
Create a this is not null expression

Returns:

isNull

EBoolean isNull()
Create a this is null expression

Returns:

getAnnotatedElement

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.

Returns:


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