DATACASS-677 - Adapt to API changes in Commons.
This commit is contained in:
@@ -15,9 +15,6 @@
|
||||
*/
|
||||
package org.springframework.data.cassandra.repository.query;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.data.cassandra.core.cql.QueryOptions;
|
||||
import org.springframework.data.cassandra.core.mapping.CassandraSimpleTypeHolder;
|
||||
import org.springframework.data.cassandra.core.mapping.CassandraType;
|
||||
@@ -38,8 +35,6 @@ import com.datastax.driver.core.DataType;
|
||||
public class CassandraParametersParameterAccessor extends ParametersParameterAccessor
|
||||
implements CassandraParameterAccessor {
|
||||
|
||||
private final List<Object> values;
|
||||
|
||||
/**
|
||||
* Create a new {@link CassandraParametersParameterAccessor}.
|
||||
*
|
||||
@@ -49,8 +44,6 @@ public class CassandraParametersParameterAccessor extends ParametersParameterAcc
|
||||
public CassandraParametersParameterAccessor(CassandraQueryMethod method, Object... values) {
|
||||
|
||||
super(method.getParameters(), values);
|
||||
|
||||
this.values = Arrays.asList(values);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -95,7 +88,7 @@ public class CassandraParametersParameterAccessor extends ParametersParameterAcc
|
||||
*/
|
||||
@Override
|
||||
public Object[] getValues() {
|
||||
return this.values.toArray();
|
||||
return super.getValues();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
||||
@@ -86,6 +86,15 @@ class ConvertingParameterAccessor implements CassandraParameterAccessor {
|
||||
return this.delegate.getDynamicProjection();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.springframework.data.repository.query.ParameterAccessor#findDynamicProjection()
|
||||
*/
|
||||
@Nullable
|
||||
@Override
|
||||
public Class<?> findDynamicProjection() {
|
||||
return this.delegate.findDynamicProjection();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.springframework.data.repository.query.ParameterAccessor#getBindableValue(int)
|
||||
*/
|
||||
|
||||
@@ -88,6 +88,12 @@ class StubParameterAccessor implements CassandraParameterAccessor {
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public Class<?> findDynamicProjection() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getBindableValue(int index) {
|
||||
return values[index];
|
||||
|
||||
Reference in New Issue
Block a user