public class QMap extends ExpressionBase<Map<Expression<?>,?>> implements FactoryExpression<Map<Expression<?>,?>>
Usage example
List<Map<Expression<?>,?> result = query.from(employee).list(new QMap(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 and Description |
|---|
QMap(Expression<?>... args)
Create a new QMap instance
|
QMap(Expression<?>[]... args)
Create a new QMap instance
|
QMap(com.google.common.collect.ImmutableList<Expression<?>> args)
Create a new QMap instance
|
| Modifier and Type | Method and Description |
|---|---|
<R,C> R |
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
|
Map<Expression<?>,?> |
newInstance(Object... args)
Create a projection with the given arguments
|
getType, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypepublic QMap(Expression<?>... args)
args - public QMap(com.google.common.collect.ImmutableList<Expression<?>> args)
args - public QMap(Expression<?>[]... args)
args - @Nullable public <R,C> R accept(Visitor<R,C> v, C context)
Expressionaccept in interface Expression<Map<Expression<?>,?>>R - return typeC - context typev - visitorcontext - context of visitpublic List<Expression<?>> getArgs()
FactoryExpressiongetArgs in interface FactoryExpression<Map<Expression<?>,?>>@Nullable public Map<Expression<?>,?> newInstance(Object... args)
FactoryExpressionnewInstance in interface FactoryExpression<Map<Expression<?>,?>>Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.