com.mysema.query.types
Class Projections

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

public final class Projections
extends Object

Factory class for FactoryExpression instances

Author:
tiwe

Method Summary
static
<T> ArrayConstructorExpression<T>
array(Class<T[]> type, Expression<T>... exprs)
          Create a typed array projection for the given type and expressions
static
<T> QBean<T>
bean(Class<T> type, Expression<?>... exprs)
          Create a Bean populating projection for the given type and expressions
static
<T> QBean<T>
bean(Path<T> type, Expression<?>... exprs)
          Create a Bean populating projection for the given type and expressions
static
<T> ConstructorExpression<T>
constructor(Class<T> type, Expression<?>... exprs)
          Create a constructor invocation projection for the given type and expressions
static
<T> QBean<T>
fields(Class<T> type, Expression<?>... exprs)
          Create a field access based Bean populating projection for the given type and expressions
static
<T> QBean<T>
fields(Path<T> type, Expression<?>... exprs)
          Create a field access based Bean populating projection for the given type and expressions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

array

public static <T> ArrayConstructorExpression<T> array(Class<T[]> type,
                                                      Expression<T>... exprs)
Create a typed array projection for the given type and expressions

Type Parameters:
T -
Parameters:
type - type of the projection
exprs - arguments for the projection
Returns:

bean

public static <T> QBean<T> bean(Class<T> type,
                                Expression<?>... exprs)
Create a Bean populating projection for the given type and expressions

Type Parameters:
T -
Parameters:
type - type of the projection
exprs - arguments for the projection
Returns:

bean

public static <T> QBean<T> bean(Path<T> type,
                                Expression<?>... exprs)
Create a Bean populating projection for the given type and expressions

Type Parameters:
T -
Parameters:
type - type of the projection
exprs - arguments for the projection
Returns:

constructor

public static <T> ConstructorExpression<T> constructor(Class<T> type,
                                                       Expression<?>... exprs)
Create a constructor invocation projection for the given type and expressions

Type Parameters:
T -
Parameters:
type - type of the projection
exprs - arguments for the projection
Returns:

fields

public static <T> QBean<T> fields(Class<T> type,
                                  Expression<?>... exprs)
Create a field access based Bean populating projection for the given type and expressions

Type Parameters:
T -
Parameters:
type - type of the projection
exprs - arguments for the projection
Returns:

fields

public static <T> QBean<T> fields(Path<T> type,
                                  Expression<?>... exprs)
Create a field access based Bean populating projection for the given type and expressions

Type Parameters:
T -
Parameters:
type - type of the projection
exprs - arguments for the projection
Returns:


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