com.mysema.query.types
Class QBean<T>

java.lang.Object
  extended by com.mysema.query.types.ExpressionBase<T>
      extended by com.mysema.query.types.QBean<T>
Type Parameters:
T - bean type
All Implemented Interfaces:
Expression<T>, FactoryExpression<T>, Serializable

public class QBean<T>
extends ExpressionBase<T>
implements FactoryExpression<T>

QBean is a JavaBean populating projection type

Author:
tiwe
See Also:
Serialized Form

Constructor Summary
QBean(Class<T> type, boolean fieldAccess, Expression<?>... args)
           
QBean(Class<T> type, boolean fieldAccess, Map<String,? extends Expression<?>> bindings)
           
QBean(Class<T> type, Expression<?>... args)
           
QBean(Class<T> type, Map<String,? extends Expression<?>> bindings)
           
QBean(Path<T> type, boolean fieldAccess, Expression<?>... args)
           
QBean(Path<T> type, boolean fieldAccess, Map<String,? extends Expression<?>> bindings)
           
QBean(Path<T> type, Expression<?>... args)
           
QBean(Path<T> type, Map<String,? extends Expression<?>> bindings)
           
 
Method Summary
<R,C> R
accept(Visitor<R,C> v, C context)
          Accept the visitor with the given context
 Expression<T> as(Path<T> alias)
          Create an alias for the expression
 Expression<T> as(String alias)
          Create an alias for the expression
 boolean equals(Object obj)
           
 List<Expression<?>> getArgs()
          Get the invocation arguments
 int hashCode()
           
 T newInstance(Object... a)
          Create a projection with the given arguments
 
Methods inherited from class com.mysema.query.types.ExpressionBase
getType, 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

QBean

public QBean(Path<T> type,
             Expression<?>... args)

QBean

public QBean(Path<T> type,
             Map<String,? extends Expression<?>> bindings)

QBean

public QBean(Path<T> type,
             boolean fieldAccess,
             Expression<?>... args)

QBean

public QBean(Path<T> type,
             boolean fieldAccess,
             Map<String,? extends Expression<?>> bindings)

QBean

public QBean(Class<T> type,
             Map<String,? extends Expression<?>> bindings)

QBean

public QBean(Class<T> type,
             Expression<?>... args)

QBean

public QBean(Class<T> type,
             boolean fieldAccess,
             Expression<?>... args)

QBean

public QBean(Class<T> type,
             boolean fieldAccess,
             Map<String,? extends Expression<?>> bindings)
Method Detail

newInstance

public T newInstance(Object... a)
Description copied from interface: FactoryExpression
Create a projection with the given arguments

Specified by:
newInstance in interface FactoryExpression<T>
Returns:

as

public Expression<T> as(Path<T> alias)
Create an alias for the expression

Returns:

as

public Expression<T> as(String alias)
Create an alias for the expression

Returns:

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<T>
Type Parameters:
R - return type
C - context type
Parameters:
v - visitor
context - context of visit
Returns:

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getArgs

public List<Expression<?>> getArgs()
Description copied from interface: FactoryExpression
Get the invocation arguments

Specified by:
getArgs in interface FactoryExpression<T>
Returns:


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