Examples of DropKeyspaceCqlGenerator


Examples of org.springframework.cassandra.core.cql.generator.DropKeyspaceCqlGenerator

      return DropKeyspaceSpecification.dropKeyspace().name(name);
    }

    @Override
    public DropKeyspaceCqlGenerator generator() {
      return new DropKeyspaceCqlGenerator(specification);
    }
View Full Code Here

Examples of org.springframework.cassandra.core.cql.generator.DropKeyspaceCqlGenerator

        Iterator<?> i = specs.iterator();
        while (i.hasNext()) {
          KeyspaceActionSpecification<?> spec = (KeyspaceActionSpecification<?>) i.next();
          String cql = (spec instanceof CreateKeyspaceSpecification) ? new CreateKeyspaceCqlGenerator(
              (CreateKeyspaceSpecification) spec).toCql() : new DropKeyspaceCqlGenerator(
              (DropKeyspaceSpecification) spec).toCql();

          template.execute(cql);
        }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.