@@ -48,13 +48,14 @@ public class DeleteOptions extends WriteOptions {
4848 private final @ Nullable Filter ifCondition ;
4949
5050 private DeleteOptions (@ Nullable ConsistencyLevel consistencyLevel , ExecutionProfileResolver executionProfileResolver ,
51- @ Nullable CqlIdentifier keyspace , @ Nullable Integer pageSize , @ Nullable ConsistencyLevel serialConsistencyLevel ,
51+ @ Nullable Boolean idempotent , @ Nullable CqlIdentifier keyspace , @ Nullable Integer pageSize ,
52+ @ Nullable CqlIdentifier routingKeyspace , @ Nullable ByteBuffer routingKey ,
53+ @ Nullable ConsistencyLevel serialConsistencyLevel ,
5254 Duration timeout , Duration ttl , @ Nullable Long timestamp , @ Nullable Boolean tracing , boolean ifExists ,
53- @ Nullable Filter ifCondition , @ Nullable Boolean idempotent , @ Nullable CqlIdentifier routingKeyspace ,
54- @ Nullable ByteBuffer routingKey ) {
55+ @ Nullable Filter ifCondition ) {
5556
56- super (consistencyLevel , executionProfileResolver , keyspace , pageSize , serialConsistencyLevel , timeout , ttl ,
57- timestamp , tracing , idempotent , routingKeyspace , routingKey );
57+ super (consistencyLevel , executionProfileResolver , idempotent , keyspace , pageSize , routingKeyspace , routingKey ,
58+ serialConsistencyLevel , timeout , ttl , timestamp , tracing );
5859
5960 this .ifExists = ifExists ;
6061 this .ifCondition = ifCondition ;
@@ -201,6 +202,16 @@ public DeleteOptionsBuilder fetchSize(int fetchSize) {
201202 return this ;
202203 }
203204
205+ /* (non-Javadoc)
206+ * @see org.springframework.data.cassandra.core.cql.WriteOptions.WriteOptionsBuilder#idempotent(boolean)
207+ */
208+ @ Override
209+ public DeleteOptionsBuilder idempotent (boolean idempotent ) {
210+
211+ super .idempotent (idempotent );
212+ return this ;
213+ }
214+
204215 /* (non-Javadoc)
205216 * @see org.springframework.data.cassandra.core.cql.WriteOptions.WriteOptionsBuilder#keyspace()
206217 */
@@ -243,6 +254,26 @@ public DeleteOptionsBuilder readTimeout(long readTimeout, TimeUnit timeUnit) {
243254 return this ;
244255 }
245256
257+ /* (non-Javadoc)
258+ * @see org.springframework.data.cassandra.core.cql.QueryOptions.QueryOptionsBuilder#routingKeyspace(com.datastax.oss.driver.api.core.CqlIdentifier)
259+ */
260+ @ Override
261+ public DeleteOptionsBuilder routingKeyspace (CqlIdentifier routingKeyspace ) {
262+
263+ super .routingKeyspace (routingKeyspace );
264+ return this ;
265+ }
266+
267+ /* (non-Javadoc)
268+ * @see org.springframework.data.cassandra.core.cql.QueryOptions.QueryOptionsBuilder#routingKeyspace(java.nio.ByteBuffer)
269+ */
270+ @ Override
271+ public DeleteOptionsBuilder routingKey (ByteBuffer routingKey ) {
272+
273+ super .routingKey (routingKey );
274+ return this ;
275+ }
276+
246277 /* (non-Javadoc)
247278 * @see org.springframework.data.cassandra.core.cql.QueryOptions.QueryOptionsBuilder#serialConsistencyLevel(com.datastax.oss.driver.api.core.ConsistencyLevel)
248279 */
@@ -292,16 +323,6 @@ public DeleteOptionsBuilder withTracing() {
292323 return this ;
293324 }
294325
295- /* (non-Javadoc)
296- * @see org.springframework.data.cassandra.core.cql.WriteOptions.WriteOptionsBuilder#idempotent(boolean)
297- */
298- @ Override
299- public DeleteOptionsBuilder idempotent (boolean idempotent ) {
300-
301- super .idempotent (idempotent );
302- return this ;
303- }
304-
305326 /* (non-Javadoc)
306327 * @see org.springframework.data.cassandra.core.cql.WriteOptions.WriteOptionsBuilder#ttl(int)
307328 */
@@ -331,26 +352,6 @@ public DeleteOptionsBuilder timestamp(Instant timestamp) {
331352 return this ;
332353 }
333354
334- /* (non-Javadoc)
335- * @see org.springframework.data.cassandra.core.cql.QueryOptions.QueryOptionsBuilder#routingKeyspace(com.datastax.oss.driver.api.core.CqlIdentifier)
336- */
337- @ Override
338- public DeleteOptionsBuilder routingKeyspace (CqlIdentifier routingKeyspace ) {
339-
340- super .routingKeyspace (routingKeyspace );
341- return this ;
342- }
343-
344- /* (non-Javadoc)
345- * @see org.springframework.data.cassandra.core.cql.QueryOptions.QueryOptionsBuilder#routingKeyspace(java.nio.ByteBuffer)
346- */
347- @ Override
348- public DeleteOptionsBuilder routingKey (ByteBuffer routingKey ) {
349-
350- super .routingKey (routingKey );
351- return this ;
352- }
353-
354355 /**
355356 * Use light-weight transactions by applying {@code IF EXISTS}. Replaces a previous {@link #ifCondition(Filter)}.
356357 *
@@ -412,9 +413,9 @@ public DeleteOptionsBuilder ifCondition(Filter condition) {
412413 */
413414 public DeleteOptions build () {
414415
415- return new DeleteOptions (this .consistencyLevel , this .executionProfileResolver , this .keyspace , this .pageSize ,
416- this .serialConsistencyLevel , this .timeout , this .ttl , this .timestamp , this .tracing , this .ifExists ,
417- this .ifCondition , this .idempotent , this .routingKeyspace , this .routingKey );
416+ return new DeleteOptions (this .consistencyLevel , this .executionProfileResolver , this .idempotent , this .keyspace ,
417+ this .pageSize , this .routingKeyspace , this .routingKey , this .serialConsistencyLevel , this .timeout , this .ttl ,
418+ this .timestamp , this .tracing , this .ifExists , this .ifCondition );
418419 }
419420 }
420421}
0 commit comments