Class DropUserTypeSpecification
java.lang.Object
org.springframework.data.cassandra.core.cql.keyspace.UserTypeNameSpecification
org.springframework.data.cassandra.core.cql.keyspace.DropUserTypeSpecification
Object to configure a
DROP TYPE
specification.- Since:
- 1.5
- Author:
- Fabio J. Mendes, Mark Paluch
- See Also:
-
CqlIdentifier
-
Method Summary
Modifier and TypeMethodDescriptionstatic DropUserTypeSpecification
dropType
(com.datastax.oss.driver.api.core.CqlIdentifier name) Entry point into theDropUserTypeSpecification
's fluent API givenname
to drop a type.static DropUserTypeSpecification
Entry point into theDropUserTypeSpecification
's fluent API givenname
to drop a type.boolean
ifExists()
Enables the inclusion of anIF EXISTS
clause.ifExists
(boolean ifExists) Sets the inclusion of anIF EXISTS
clause.Methods inherited from class org.springframework.data.cassandra.core.cql.keyspace.UserTypeNameSpecification
getName
-
Method Details
-
dropType
Entry point into theDropUserTypeSpecification
's fluent API givenname
to drop a type. Convenient if imported statically.- Parameters:
name
- must not benull
or empty.- Returns:
- a new
DropUserTypeSpecification
.
-
dropType
public static DropUserTypeSpecification dropType(com.datastax.oss.driver.api.core.CqlIdentifier name) Entry point into theDropUserTypeSpecification
's fluent API givenname
to drop a type. Convenient if imported statically.- Parameters:
name
- must not benull
or empty.- Returns:
- a new
DropUserTypeSpecification
.
-
ifExists
Enables the inclusion of anIF EXISTS
clause.- Returns:
- this
DropUserTypeSpecification
.
-
ifExists
Sets the inclusion of anIF EXISTS
clause.- Parameters:
ifExists
- true to include anIF EXISTS
clause, false to omit theIF NOT EXISTS
clause.- Returns:
- this
DropUserTypeSpecification
.
-
getIfExists
public boolean getIfExists()- Returns:
- true if the
IF EXISTS
clause is included.
-