Skip to content

Commit 0c8e7d9

Browse files
committed
Adopt to newly introduced ParameterAccessor.getScrollPosition().
Closes #1696
1 parent ee80595 commit 0c8e7d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/org/springframework/data/couchbase/repository/query/N1qlCountQueryCreator.java

+6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import org.springframework.data.couchbase.core.convert.CouchbaseConverter;
2222
import org.springframework.data.couchbase.core.query.N1QLExpression;
2323
import org.springframework.data.domain.Pageable;
24+
import org.springframework.data.domain.ScrollPosition;
2425
import org.springframework.data.domain.Sort;
2526
import org.springframework.data.repository.query.ParameterAccessor;
2627
import org.springframework.data.repository.query.parser.PartTree;
@@ -50,6 +51,11 @@ public CountParameterAccessor(ParameterAccessor delegate) {
5051
this.delegate = delegate;
5152
}
5253

54+
@Override
55+
public ScrollPosition getScrollPosition() {
56+
return delegate.getScrollPosition();
57+
}
58+
5359
public Pageable getPageable() {
5460
return delegate.getPageable().isPaged() ? new CountPageable(delegate.getPageable()) : Pageable.unpaged();
5561
}

0 commit comments

Comments
 (0)