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 DropUserTypeSpecificationdropType(com.datastax.oss.driver.api.core.CqlIdentifier name) Entry point into theDropUserTypeSpecification's fluent API givennameto drop a type.static DropUserTypeSpecificationEntry point into theDropUserTypeSpecification's fluent API givennameto drop a type.booleanifExists()Enables the inclusion of anIF EXISTSclause.ifExists(boolean ifExists) Sets the inclusion of anIF EXISTSclause.Methods inherited from class org.springframework.data.cassandra.core.cql.keyspace.UserTypeNameSpecification
getName
-
Method Details
-
dropType
Entry point into theDropUserTypeSpecification's fluent API givennameto drop a type. Convenient if imported statically.- Parameters:
name- must not benullor 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 givennameto drop a type. Convenient if imported statically.- Parameters:
name- must not benullor empty.- Returns:
- a new
DropUserTypeSpecification.
-
ifExists
Enables the inclusion of anIF EXISTSclause.- Returns:
- this
DropUserTypeSpecification.
-
ifExists
Sets the inclusion of anIF EXISTSclause.- Parameters:
ifExists- true to include anIF EXISTSclause, false to omit theIF NOT EXISTSclause.- Returns:
- this
DropUserTypeSpecification.
-
getIfExists
public boolean getIfExists()- Returns:
- true if the
IF EXISTSclause is included.
-