org.apache.ignite.cache.store.cassandra.session.transaction

## Class DeleteMutation

- java.lang.Object
- - org.apache.ignite.cache.store.cassandra.session.transaction.BaseMutation
  - - org.apache.ignite.cache.store.cassandra.session.transaction.DeleteMutation

- All Implemented Interfaces:
    Mutation

      public class DeleteMutation
      extends BaseMutation

  Mutation which deletes object from Cassandra.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DeleteMutation(Object key, String table, PersistenceController ctrl)` Creates instance of delete mutation operation.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `com.datastax.driver.core.BoundStatement` | `bindStatement(com.datastax.driver.core.PreparedStatement statement)` Binds prepared statement to current Cassandra session.
    `String` | `getStatement()` Returns unbind CLQ statement for to be executed.
    `boolean` | `tableExistenceRequired()` Indicates if Cassandra tables existence is required for this operation.

    - ### Methods inherited from class org.apache.ignite.cache.store.cassandra.session.transaction.BaseMutation

      `controller, getPersistenceSettings, getTable`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DeleteMutation

          public DeleteMutation(Object key,
                                String table,
                                PersistenceController ctrl)

      Creates instance of delete mutation operation.
      Parameters:
        `key` - Ignite cache key of the object which should be deleted.
        `table` - Cassandra table which should be used for the mutation.
        `ctrl` - Persistence controller to use.

  - ### Method Detail

    - #### tableExistenceRequired

          public boolean tableExistenceRequired()

      Indicates if Cassandra tables existence is required for this operation.
      Returns:
        `true` true if table existence required.

    - #### getStatement

          public String getStatement()

      Returns unbind CLQ statement for to be executed.
      Returns:
        Unbind CQL statement.

    - #### bindStatement

          public com.datastax.driver.core.BoundStatement bindStatement(com.datastax.driver.core.PreparedStatement statement)

      Binds prepared statement to current Cassandra session.
      Parameters:
        `statement` - Statement.
      Returns:
        Bounded statement.

2021 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.10.0
Release Date | : March 10 2021