Module spring.data.cassandra
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 Summary
Modifier and TypeMethodDescriptionstatic DropUserTypeSpecificationdropType(com.datastax.oss.driver.api.core.CqlIdentifier typeName) Entry point into theDropUserTypeSpecification's fluent API giventypeNameto drop a type.static DropUserTypeSpecificationdropType(com.datastax.oss.driver.api.core.CqlIdentifier keyspace, com.datastax.oss.driver.api.core.CqlIdentifier typeName) Entry point into theDropUserTypeSpecification's fluent API giventypeNameto drop a type.static DropUserTypeSpecificationEntry point into theDropUserTypeSpecification's fluent API giventypeNameto 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
getKeyspace, getName
-
Method Details
-
dropType
Entry point into theDropUserTypeSpecification's fluent API giventypeNameto drop a type. Convenient if imported statically.- Parameters:
typeName- must not benullor empty.- Returns:
- a new
DropUserTypeSpecification.
-
dropType
public static DropUserTypeSpecification dropType(com.datastax.oss.driver.api.core.CqlIdentifier typeName) Entry point into theDropUserTypeSpecification's fluent API giventypeNameto drop a type. Convenient if imported statically.- Parameters:
typeName- must not benullor 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 theDropUserTypeSpecification's fluent API giventypeNameto drop a type. Convenient if imported statically. Uses the default keyspace ifkeyspaceis null; otherwise, of thekeyspaceis not {@link null}, then the UDT name is prefixed withkeyspace.- Parameters:
keyspace- can benull.typeName- must not benullor empty.- Returns:
- a new
DropUserTypeSpecification. - Since:
- 4.4
-
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.
-