Adopt to newly introduced ParameterAccessor.getScrollPosition().

Closes #1361
This commit is contained in:
Mark Paluch
2023-03-16 15:13:53 +01:00
parent 6de9009f77
commit 542bd8f314
2 changed files with 14 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ import org.springframework.data.cassandra.core.mapping.CassandraPersistentProper
import org.springframework.data.cassandra.core.mapping.CassandraType;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Range;
import org.springframework.data.domain.ScrollPosition;
import org.springframework.data.domain.Sort;
import org.springframework.lang.Nullable;
@@ -49,6 +50,12 @@ class ConvertingParameterAccessor implements CassandraParameterAccessor {
this.delegate = delegate;
}
@Nullable
@Override
public ScrollPosition getScrollPosition() {
return delegate.getScrollPosition();
}
@Override
public Pageable getPageable() {
return this.delegate.getPageable();

View File

@@ -22,6 +22,7 @@ import org.springframework.data.cassandra.core.convert.CassandraConverter;
import org.springframework.data.cassandra.core.cql.QueryOptions;
import org.springframework.data.cassandra.core.mapping.CassandraType;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.ScrollPosition;
import org.springframework.data.domain.Sort;
import org.springframework.data.repository.query.ParameterAccessor;
import org.springframework.lang.Nullable;
@@ -70,6 +71,12 @@ class StubParameterAccessor implements CassandraParameterAccessor {
return null;
}
@Nullable
@Override
public ScrollPosition getScrollPosition() {
return null;
}
@Override
public Pageable getPageable() {
return null;