Module spring.data.cassandra
Class DropKeyspaceSpecification
java.lang.Object
org.springframework.data.cassandra.core.cql.keyspace.KeyspaceActionSpecification
org.springframework.data.cassandra.core.cql.keyspace.DropKeyspaceSpecification
- All Implemented Interfaces:
CqlSpecification
public class DropKeyspaceSpecification
extends KeyspaceActionSpecification
implements CqlSpecification
Object to configure a
DROP KEYSPACE specification.- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionstatic DropKeyspaceSpecificationdropKeyspace(com.datastax.oss.driver.api.core.CqlIdentifier name) Create a newDropKeyspaceSpecificationfor the givenname.static DropKeyspaceSpecificationdropKeyspace(String name) Create a newDropKeyspaceSpecificationfor the givenname.static DropKeyspaceSpecificationDeprecated.booleanbooleaninthashCode()ifExists()Causes the inclusion of anIF EXISTSclause.ifExists(boolean ifExists) Toggles the inclusion of anIF EXISTSclause.Methods inherited from class org.springframework.data.cassandra.core.cql.keyspace.KeyspaceActionSpecification
canEqual, getName
-
Method Details
-
dropKeyspace
Create a newDropKeyspaceSpecificationfor the givenname.- Parameters:
name- must not be null or empty.- Returns:
- a new
DropKeyspaceSpecification.
-
dropKeyspace
Deprecated.since 3.0, usedropKeyspace(CqlIdentifier).Create a newDropKeyspaceSpecificationfor the givenname.- Parameters:
name- must not be null.- Returns:
- a new
DropKeyspaceSpecification.
-
dropKeyspace
public static DropKeyspaceSpecification dropKeyspace(com.datastax.oss.driver.api.core.CqlIdentifier name) Create a newDropKeyspaceSpecificationfor the givenname.- Parameters:
name- must not be null.- Returns:
- a new
DropKeyspaceSpecification. - Since:
- 3.0
-
ifExists
Causes the inclusion of anIF EXISTSclause.- Returns:
- this
-
ifExists
Toggles the inclusion of anIF EXISTSclause.- Returns:
- this
-
getIfExists
public boolean getIfExists() -
equals
- Overrides:
equalsin classKeyspaceActionSpecification
-
hashCode
public int hashCode()- Overrides:
hashCodein classKeyspaceActionSpecification
-
dropKeyspace(CqlIdentifier).