Package org.springframework.cassandra.core.cql.generator

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


  public static abstract class CreateKeyspaceTest extends
      KeyspaceOperationCqlGeneratorTest<CreateKeyspaceSpecification, CreateKeyspaceCqlGenerator> {

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


        template = system == null ? null : new CqlTemplate(system);

        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

Related Classes of org.springframework.cassandra.core.cql.generator.CreateKeyspaceCqlGenerator

Copyright © 2018 www.massapicom. 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.