Fixed KeyspaceCqlGeneratorTest.
This commit is contained in:
@@ -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()) {
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user