|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mysema.query.types.ExpressionBase<T>
com.mysema.query.types.ConstructorExpression<T>
T - expression typepublic class ConstructorExpression<T>
ConstructorExpression represents a constructor invocation
Example
QEmployee employee = QEmployee.employee;
List<EmployeeInfo> result = query.from(employee)
.where(employee.valid.eq(true))
.list(ConstructorExpression.create(EmployeeInfo.class, employee.firstName, employee.lastName));
| Constructor Summary | |
|---|---|
ConstructorExpression(Class<T> type,
Class<?>[] paramTypes,
Expression<?>... args)
|
|
ConstructorExpression(Class<T> type,
Class<?>[] paramTypes,
List<Expression<?>> args)
|
|
| Method Summary | ||
|---|---|---|
|
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 |
|
static
|
create(Class<D> type,
Expression<?>... args)
|
|
boolean |
equals(Object obj)
|
|
List<Expression<?>> |
getArgs()
Get the invocation arguments |
|
T |
newInstance(Object... args)
Create a projection with the given arguments |
|
| Methods inherited from class com.mysema.query.types.ExpressionBase |
|---|
getType, hashCode, 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 |
|---|
public ConstructorExpression(Class<T> type,
Class<?>[] paramTypes,
Expression<?>... args)
public ConstructorExpression(Class<T> type,
Class<?>[] paramTypes,
List<Expression<?>> args)
| Method Detail |
|---|
public static <D> ConstructorExpression<D> create(Class<D> type,
Expression<?>... args)
public Expression<T> as(Path<T> alias)
public Expression<T> as(String alias)
public <R,C> R accept(Visitor<R,C> v,
C context)
Expression
accept in interface Expression<T>R - return typeC - context typev - visitorcontext - context of visit
public boolean equals(Object obj)
equals in class Objectpublic final List<Expression<?>> getArgs()
FactoryExpression
getArgs in interface FactoryExpression<T>public T newInstance(Object... args)
FactoryExpression
newInstance in interface FactoryExpression<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||