Class DropKeyspaceSpecification
java.lang.Object
org.springframework.data.cassandra.core.cql.keyspace.KeyspaceActionSpecification
org.springframework.data.cassandra.core.cql.keyspace.DropKeyspaceSpecification
Object to configure a
DROP KEYSPACE
specification.- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionstatic DropKeyspaceSpecification
dropKeyspace
(com.datastax.oss.driver.api.core.CqlIdentifier name) Create a newDropKeyspaceSpecification
for the givenname
.static DropKeyspaceSpecification
dropKeyspace
(String name) Create a newDropKeyspaceSpecification
for the givenname
.static DropKeyspaceSpecification
Deprecated.boolean
boolean
int
hashCode()
ifExists()
Causes the inclusion of anIF EXISTS
clause.ifExists
(boolean ifExists) Toggles the inclusion of anIF EXISTS
clause.Methods inherited from class org.springframework.data.cassandra.core.cql.keyspace.KeyspaceActionSpecification
canEqual, getName
-
Method Details
-
dropKeyspace
Create a newDropKeyspaceSpecification
for the givenname
.- Parameters:
name
- must not be null or empty.- Returns:
- a new
DropKeyspaceSpecification
.
-
dropKeyspace
Deprecated.since 3.0, usedropKeyspace(CqlIdentifier)
.Create a newDropKeyspaceSpecification
for 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 newDropKeyspaceSpecification
for the givenname
.- Parameters:
name
- must not be null.- Returns:
- a new
DropKeyspaceSpecification
. - Since:
- 3.0
-
ifExists
Causes the inclusion of anIF EXISTS
clause.- Returns:
- this
-
ifExists
Toggles the inclusion of anIF EXISTS
clause.- Returns:
- this
-
getIfExists
public boolean getIfExists() -
equals
- Overrides:
equals
in classKeyspaceActionSpecification
-
hashCode
public int hashCode()- Overrides:
hashCode
in classKeyspaceActionSpecification
-
dropKeyspace(CqlIdentifier)
.