|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mysema.query.types.ExpressionBase<Tuple>
com.mysema.query.types.QTuple
public class QTuple
QTuple represents a projection of type Tuple
Usage example:
List<Tuple> result = query.from(employee).list(new QTuple(employee.firstName, employee.lastName));
for (Tuple row : result) {
System.out.println("firstName " + row.get(employee.firstName));
System.out.println("lastName " + row.get(employee.lastName));
}
| Constructor Summary | |
|---|---|
QTuple(Expression<?>... args)
Create a new QTuple instance |
|
QTuple(Expression<?>[]... args)
Create a new QTuple instance |
|
| Method Summary | ||
|---|---|---|
|
accept(Visitor<R,C> v,
C context)
Accept the visitor with the given context |
|
boolean |
equals(Object obj)
|
|
List<Expression<?>> |
getArgs()
Get the invocation arguments |
|
Tuple |
newInstance(Object... a)
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 QTuple(Expression<?>... args)
args - public QTuple(Expression<?>[]... args)
args - | Method Detail |
|---|
public Tuple newInstance(Object... a)
FactoryExpression
newInstance in interface FactoryExpression<Tuple>
public <R,C> R accept(Visitor<R,C> v,
C context)
Expression
accept in interface Expression<Tuple>R - return typeC - context typev - visitorcontext - context of visit
public boolean equals(Object obj)
equals in class Objectpublic List<Expression<?>> getArgs()
FactoryExpression
getArgs in interface FactoryExpression<Tuple>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||