org.cassandraunit.model.KeyspaceModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cassandra-unit Show documentation
Show all versions of cassandra-unit Show documentation
Test framework to develop with Cassandra
package org.cassandraunit.model;
import java.util.ArrayList;
import java.util.List;
/**
* @author Jeremy Sevellec
*/
public class KeyspaceModel {
private String name;
private int replicationFactor = 1;
private StrategyModel strategy = StrategyModel.SIMPLE_STRATEGY;
private List columnFamilies = new ArrayList();
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getReplicationFactor() {
return replicationFactor;
}
public void setReplicationFactor(int replicationFactor) {
this.replicationFactor = replicationFactor;
}
public void setStrategy(StrategyModel strategy) {
this.strategy = strategy;
}
public StrategyModel getStrategy() {
return strategy;
}
public void setColumnFamilies(List columnFamilies) {
this.columnFamilies = columnFamilies;
}
public List getColumnFamilies() {
return columnFamilies;
}
}