T - bean typepublic class QBean<T> extends ExpressionBase<T> implements FactoryExpression<T>
Example
QEmployee employee = QEmployee.employee;
List<EmployeeInfo> result = query.from(employee)
.where(employee.valid.eq(true))
.list(new QBean<EmployeeInfo>(EmployeeInfo.class, employee.firstName, employee.lastName));
| Constructor and Description |
|---|
QBean(Class<T> type,
boolean fieldAccess,
Expression<?>... args)
Create a new QBean instance
|
QBean(Class<T> type,
boolean fieldAccess,
Map<String,? extends Expression<?>> bindings)
Create a new QBean instance
|
QBean(Class<T> type,
Expression<?>... args)
Create a new QBean instance
|
QBean(Class<T> type,
Map<String,? extends Expression<?>> bindings)
Create a new QBean instance
|
QBean(Path<T> type,
boolean fieldAccess,
Expression<?>... args)
Create a new QBean instance
|
QBean(Path<T> type,
boolean fieldAccess,
Map<String,? extends Expression<?>> bindings)
Create a new QBean instance
|
QBean(Path<T> type,
Expression<?>... args)
Create a new QBean instance
|
QBean(Path<T> type,
Map<String,? extends Expression<?>> bindings)
Create a new QBean instance
|
| Modifier and Type | Method and Description |
|---|---|
<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
|
T |
newInstance(Object... a)
Create a projection with the given arguments
|
getType, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypepublic QBean(Path<T> type, Expression<?>... args)
type - args - public QBean(Path<T> type, Map<String,? extends Expression<?>> bindings)
type - bindings - public QBean(Path<T> type, boolean fieldAccess, Expression<?>... args)
type - fieldAccess - args - public QBean(Path<T> type, boolean fieldAccess, Map<String,? extends Expression<?>> bindings)
type - fieldAccess - bindings - public QBean(Class<T> type, Map<String,? extends Expression<?>> bindings)
type - bindings - public QBean(Class<T> type, Expression<?>... args)
type - args - public QBean(Class<T> type, boolean fieldAccess, Expression<?>... args)
type - fieldAccess - args - public QBean(Class<T> type, boolean fieldAccess, Map<String,? extends Expression<?>> bindings)
type - fieldAccess - bindings - public T newInstance(Object... a)
FactoryExpressionnewInstance in interface FactoryExpression<T>public Expression<T> as(Path<T> alias)
public Expression<T> as(String alias)
public <R,C> R accept(Visitor<R,C> v, C context)
Expressionaccept in interface Expression<T>R - return typeC - context typev - visitorcontext - context of visitpublic List<Expression<?>> getArgs()
FactoryExpressiongetArgs in interface FactoryExpression<T>Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.