Class DropTableSpecification

java.lang.Object
org.springframework.data.cassandra.core.cql.keyspace.TableNameSpecification
org.springframework.data.cassandra.core.cql.keyspace.DropTableSpecification

public class DropTableSpecification extends TableNameSpecification
Object to configure a DROP TABLE specification.
Author:
Matthew T. Adams, Mark Paluch
  • Method Details

    • dropTable

      public static DropTableSpecification dropTable(String tableName)
      Entry point into the DropTableSpecification's fluent API tableName to drop a table. Convenient if imported statically.
      Parameters:
      tableName - must not be null or empty.
      Returns:
      a new DropTableSpecification.
    • dropTable

      public static DropTableSpecification dropTable(com.datastax.oss.driver.api.core.CqlIdentifier tableName)
      Entry point into the DropTableSpecification's fluent API given tableName to drop a table. Convenient if imported statically.
      Parameters:
      tableName - must not be null.
      Returns:
      a new DropTableSpecification.
    • ifExists

      public DropTableSpecification ifExists()
      Causes the inclusion of an IF EXISTS clause.
      Returns:
      this
      Since:
      2.1
    • ifExists

      public DropTableSpecification ifExists(boolean ifExists)
      Toggles the inclusion of an IF EXISTS clause.
      Returns:
      this
      Since:
      2.1
    • getIfExists

      public boolean getIfExists()