Class DropUserTypeSpecification

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

public class DropUserTypeSpecification extends UserTypeNameSpecification implements CqlSpecification
Object to configure a DROP TYPE specification.
Since:
1.5
Author:
Fabio J. Mendes, Mark Paluch
See Also:
  • CqlIdentifier
  • Method Details

    • dropType

      public static DropUserTypeSpecification dropType(String typeName)
      Entry point into the DropUserTypeSpecification's fluent API given typeName to drop a type. Convenient if imported statically.
      Parameters:
      typeName - must not be null or empty.
      Returns:
      a new DropUserTypeSpecification.
    • dropType

      public static DropUserTypeSpecification dropType(com.datastax.oss.driver.api.core.CqlIdentifier typeName)
      Entry point into the DropUserTypeSpecification's fluent API given typeName to drop a type. Convenient if imported statically.
      Parameters:
      typeName - must not be null or empty.
      Returns:
      a new DropUserTypeSpecification.
    • dropType

      public static DropUserTypeSpecification dropType(@Nullable com.datastax.oss.driver.api.core.CqlIdentifier keyspace, com.datastax.oss.driver.api.core.CqlIdentifier typeName)
      Entry point into the DropUserTypeSpecification's fluent API given typeName to drop a type. Convenient if imported statically. Uses the default keyspace if keyspace is null; otherwise, of the keyspace is not {@link null}, then the UDT name is prefixed with keyspace.
      Parameters:
      keyspace - can be null.
      typeName - must not be null or empty.
      Returns:
      a new DropUserTypeSpecification.
      Since:
      4.4
    • ifExists

      public DropUserTypeSpecification ifExists()
      Enables the inclusion of an IF EXISTS clause.
      Returns:
      this DropUserTypeSpecification.
    • ifExists

      public DropUserTypeSpecification ifExists(boolean ifExists)
      Sets the inclusion of an IF EXISTS clause.
      Parameters:
      ifExists - true to include an IF EXISTS clause, false to omit the IF NOT EXISTS clause.
      Returns:
      this DropUserTypeSpecification.
    • getIfExists

      public boolean getIfExists()
      Returns:
      true if the IF EXISTS clause is included.