mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
Extend orderBy signature
This commit is contained in:
parent
5cdb0e3112
commit
bdad1eaed2
@ -14,7 +14,7 @@
|
||||
package com.querydsl.sql;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
@ -80,7 +80,7 @@ public class WindowFirstLast<T> extends MutableExpressionBase<T> {
|
||||
|
||||
public WindowFirstLast<T> orderBy(OrderSpecifier<?>... orderBy) {
|
||||
value = null;
|
||||
this.orderBy.addAll(Arrays.asList(orderBy));
|
||||
Collections.addAll(this.orderBy, orderBy);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
package com.querydsl.sql;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
@ -167,7 +167,7 @@ public class WindowFunction<A> extends MutableExpressionBase<A> {
|
||||
|
||||
public WindowFunction<A> orderBy(OrderSpecifier<?>... orderBy) {
|
||||
value = null;
|
||||
this.orderBy.addAll(Arrays.asList(orderBy));
|
||||
Collections.addAll(this.orderBy, orderBy);
|
||||
return this;
|
||||
}
|
||||
|
||||
@ -179,7 +179,7 @@ public class WindowFunction<A> extends MutableExpressionBase<A> {
|
||||
|
||||
public WindowFunction<A> partitionBy(Expression<?>... partitionBy) {
|
||||
value = null;
|
||||
this.partitionBy.addAll(Arrays.asList(partitionBy));
|
||||
Collections.addAll(this.partitionBy, partitionBy);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
package com.querydsl.sql;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
@ -100,6 +101,18 @@ public class WithinGroup<T> extends SimpleOperation<T> {
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public OrderBy orderBy(OrderSpecifier<?> orderBy) {
|
||||
value = null;
|
||||
this.orderBy.add(orderBy);
|
||||
return this;
|
||||
}
|
||||
|
||||
public OrderBy orderBy(OrderSpecifier<?>... orderBy) {
|
||||
value = null;
|
||||
Collections.addAll(this.orderBy, orderBy);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public WithinGroup(Class<? extends T> type, Operator op) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user