com.mysema.query.types
Class PathMetadataFactory

java.lang.Object
  extended by com.mysema.query.types.PathMetadataFactory

public final class PathMetadataFactory
extends Object

PathMetadataFactory is a factory class for Path construction

Author:
tiwe

Method Summary
static PathMetadata<Integer> forArrayAccess(Path<?> parent, Expression<Integer> index)
          Create a new PathMetadata for indexed array access
static PathMetadata<Integer> forArrayAccess(Path<?> parent, int index)
          Create a new PathMetadata for indexed array access
static PathMetadata<?> forCollectionAny(Path<?> parent)
          Create a new PathMetadata for collection any access
static
<T> PathMetadata<T>
forDelegate(Path<T> delegate)
          Create a new PathMetadata for delegate access
static PathMetadata<Integer> forListAccess(Path<?> parent, Expression<Integer> index)
          Create a new PathMetadata for indexed list access
static PathMetadata<Integer> forListAccess(Path<?> parent, int index)
          Create a new PathMetadata for indexed list access
static
<KT> PathMetadata<KT>
forMapAccess(Path<?> parent, Expression<KT> key)
          Create a new PathMetadata for key based map access
static
<KT> PathMetadata<KT>
forMapAccess(Path<?> parent, KT key)
          Create a new PathMetadata for for key based map access
static PathMetadata<String> forProperty(Path<?> parent, String property)
          Create a new PathMetadata for property access
static PathMetadata<String> forVariable(String variable)
          Create a new PathMetadata for a variable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

forArrayAccess

public static PathMetadata<Integer> forArrayAccess(Path<?> parent,
                                                   Expression<Integer> index)
Create a new PathMetadata for indexed array access

Parameters:
parent -
index -
Returns:

forArrayAccess

public static PathMetadata<Integer> forArrayAccess(Path<?> parent,
                                                   @Nonnegative
                                                   int index)
Create a new PathMetadata for indexed array access

Parameters:
parent -
index -
Returns:

forCollectionAny

public static PathMetadata<?> forCollectionAny(Path<?> parent)
Create a new PathMetadata for collection any access

Parameters:
parent -
Returns:

forDelegate

public static <T> PathMetadata<T> forDelegate(Path<T> delegate)
Create a new PathMetadata for delegate access

Parameters:
delegate -
Returns:

forListAccess

public static PathMetadata<Integer> forListAccess(Path<?> parent,
                                                  Expression<Integer> index)
Create a new PathMetadata for indexed list access

Parameters:
parent -
index -
Returns:

forListAccess

public static PathMetadata<Integer> forListAccess(Path<?> parent,
                                                  @Nonnegative
                                                  int index)
Create a new PathMetadata for indexed list access

Parameters:
parent -
index -
Returns:

forMapAccess

public static <KT> PathMetadata<KT> forMapAccess(Path<?> parent,
                                                 Expression<KT> key)
Create a new PathMetadata for key based map access

Parameters:
parent -
key -
Returns:

forMapAccess

public static <KT> PathMetadata<KT> forMapAccess(Path<?> parent,
                                                 KT key)
Create a new PathMetadata for for key based map access

Parameters:
parent -
key -
Returns:

forProperty

public static PathMetadata<String> forProperty(Path<?> parent,
                                               String property)
Create a new PathMetadata for property access

Parameters:
parent -
property -
Returns:

forVariable

public static PathMetadata<String> forVariable(String variable)
Create a new PathMetadata for a variable

Parameters:
variable -
Returns:


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