Module spring.data.cassandra
Class CqlGenerator
java.lang.Object
org.springframework.data.cassandra.core.cql.generator.CqlGenerator
Entrypoint for CQL generation of
CqlSpecification objects representing DML statements such as table creations
or keyspace drops. For example:
DropUserTypeSpecification spec = SpecificationBuilder.dropType("address");
String cql = CqlGenerator.toCql(spec);
- Since:
- 4.4
- Author:
- Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringtoCql(CqlSpecification specification) Entrypoint for CQL generation ofCqlSpecificationobjects.
-
Method Details
-
toCql
Entrypoint for CQL generation ofCqlSpecificationobjects.- Parameters:
specification- the CQL specification to generate CQL for.- Returns:
- the generated CQL from
CqlSpecification.
-