Fixed KeyspaceCqlGeneratorTest.

This commit is contained in:
john-mcpeek
2013-12-17 08:24:26 -05:00
parent 8cfd144149
commit 90c71dbd12
3 changed files with 1 additions and 30 deletions

View File

@@ -64,7 +64,7 @@ public class CreateKeyspaceCqlGenerator extends KeyspaceCqlGenerator<CreateKeysp
// option preamble
boolean first = true;
cql.append(" WITH ");
cql.append("WITH ");
// end option preamble
if (!options.isEmpty()) {

View File

@@ -33,11 +33,6 @@ public interface KeyspaceDescriptor {
* Returns the name of the table as an identifier or quoted identifier as appropriate.
*/
String getNameAsIdentifier();
/**
* Returns the replication strategy.
*/
Boolean getDurableWrites();
/**
* Returns an unmodifiable {@link Map} of keyspace options.

View File

@@ -24,28 +24,4 @@ package org.springframework.cassandra.core.keyspace;
* @author John McPeek
*/
public class KeyspaceSpecification<T> extends KeyspaceOptionsSpecification<KeyspaceSpecification<T>> implements KeyspaceDescriptor {
private Boolean durableWrites;
/**
* @param durableWrites the durableWrites to set
*/
@SuppressWarnings( "unchecked" )
public T durableWrites(Boolean durableWrites) {
this.durableWrites = durableWrites;
return (T) this;
}
@Override
public Boolean getDurableWrites() {
return durableWrites;
}
/**
* @param durableWrites the durableWrites to set
*/
public void setDurableWrites(Boolean durableWrites) {
this.durableWrites = durableWrites;
}
}