Class DropTableSpecification

java.lang.Object
org.springframework.data.cassandra.core.cql.keyspace.TableNameSpecification
org.springframework.data.cassandra.core.cql.keyspace.DropTableSpecification
All Implemented Interfaces:
CqlSpecification

public class DropTableSpecification extends TableNameSpecification implements CqlSpecification
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.
    • dropTable

      public static DropTableSpecification dropTable(@Nullable com.datastax.oss.driver.api.core.CqlIdentifier keyspace, 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. Uses the default keyspace if keyspace is null; otherwise, of the keyspace is not {@link null}, then the table name is prefixed with keyspace.
      Parameters:
      keyspace - can be null.
      tableName - must not be null.
      Returns:
      a new DropTableSpecification.
      Since:
      4.4
    • 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()