mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
renamed operation
This commit is contained in:
parent
445a6c3967
commit
c6839b3d48
@ -34,7 +34,7 @@ public class JavaTemplates extends Templates {
|
||||
add(Ops.ARRAY_SIZE, "{0}.length");
|
||||
|
||||
// map
|
||||
add(Ops.MAP_ISEMPTY, "{0}.isEmpty()");
|
||||
add(Ops.MAP_IS_EMPTY, "{0}.isEmpty()");
|
||||
add(Ops.MAP_SIZE, "{0}.size()");
|
||||
add(Ops.CONTAINS_KEY, "{0}.containsKey({1})");
|
||||
add(Ops.CONTAINS_VALUE, "{0}.containsValue({1})");
|
||||
|
||||
@ -58,7 +58,7 @@ public interface Ops {
|
||||
Operator<Boolean> CONTAINS_KEY = new OperatorImpl<Boolean>("CONTAINS_KEY",OBJECT_X_2);
|
||||
Operator<Boolean> CONTAINS_VALUE = new OperatorImpl<Boolean>("CONTAINS_VALUE",OBJECT_X_2);
|
||||
Operator<Number> MAP_SIZE = new OperatorImpl<Number>("MAP_SIZE",Object.class);
|
||||
Operator<Boolean> MAP_ISEMPTY = new OperatorImpl<Boolean>("MAP_ISEMPTY",Object.class);
|
||||
Operator<Boolean> MAP_IS_EMPTY = new OperatorImpl<Boolean>("MAP_IS_EMPTY",Object.class);
|
||||
|
||||
// Boolean
|
||||
Operator<Boolean> AND = new OperatorImpl<Boolean>("AND",BOOLEAN_X_2);
|
||||
|
||||
@ -50,7 +50,7 @@ public class Templates {
|
||||
|
||||
// map
|
||||
add(Ops.MAP_SIZE, "size({0})");
|
||||
add(Ops.MAP_ISEMPTY, "empty({0})");
|
||||
add(Ops.MAP_IS_EMPTY, "empty({0})");
|
||||
add(Ops.CONTAINS_KEY, "containsKey({0},{1})");
|
||||
add(Ops.CONTAINS_VALUE, "containsValue({0},{1})");
|
||||
|
||||
|
||||
@ -63,7 +63,7 @@ public abstract class MapExpressionBase<K,V> extends SimpleExpression<Map<K,V>>
|
||||
@Override
|
||||
public final BooleanExpression isEmpty() {
|
||||
if (empty == null){
|
||||
empty = BooleanOperation.create(Ops.MAP_ISEMPTY, this);
|
||||
empty = BooleanOperation.create(Ops.MAP_IS_EMPTY, this);
|
||||
}
|
||||
return empty;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user