public class QMap extends FactoryExpressionBase<Map<Expression<?>,?>>
QMap
represents a projection of type Map
Usage example
List<Map<Expression<?>,?> result = query.from(employee).select(Projections.map(employee.firstName, employee.lastName)).fetch();
for (Tuple row : result) {
System.out.println("firstName " + row.get(employee.firstName));
System.out.println("lastName " + row.get(employee.lastName));
}
Modifier | Constructor and Description |
---|---|
protected |
QMap(Expression<?>... args)
Create a new QMap instance
|
protected |
QMap(Expression<?>[]... args)
Create a new QMap instance
|
protected |
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
|
skipNulls
getType, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getType
protected QMap(Expression<?>... args)
args
- protected QMap(com.google.common.collect.ImmutableList<Expression<?>> args)
args
- protected QMap(Expression<?>[]... args)
args
- @Nullable public <R,C> R accept(Visitor<R,C> v, C context)
Expression
R
- return typeC
- context typev
- visitorcontext
- context of visitpublic List<Expression<?>> getArgs()
FactoryExpression
public boolean equals(Object obj)
equals
in class FactoryExpressionBase<Map<Expression<?>,?>>
@Nullable public Map<Expression<?>,?> newInstance(Object... args)
FactoryExpression
args
- row argumentsCopyright © 2007–2016 Querydsl. All rights reserved.