org.cassandraunit.model.ColumnMetadataModel 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 me.prettyprint.hector.api.ddl.ColumnIndexType;
import me.prettyprint.hector.api.ddl.ComparatorType;
import org.cassandraunit.type.GenericType;
/**
* @author Jeremy Sevellec
*/
public class ColumnMetadataModel {
private GenericType columnName = null;
private ComparatorType validationClass = null;
private ColumnIndexType columnIndexType = null;
private String indexName = null;
public ColumnMetadataModel() {
super();
}
public ColumnMetadataModel(GenericType columnName, ComparatorType validationClass, ColumnIndexType columnIndexType, String indexName) {
super();
this.columnName = columnName;
this.validationClass = validationClass;
this.setColumnIndexType(columnIndexType);
this.indexName = indexName;
}
public GenericType getColumnName() {
return columnName;
}
public void setColumnName(GenericType columnName) {
this.columnName = columnName;
}
public ComparatorType getValidationClass() {
return validationClass;
}
public void setValidationClass(ComparatorType validationClass) {
this.validationClass = validationClass;
}
public ColumnIndexType getColumnIndexType() {
return columnIndexType;
}
public void setColumnIndexType(ColumnIndexType columnIndexType) {
this.columnIndexType = columnIndexType;
}
public String getIndexName() {
return indexName;
}
public void setIndexName(String indexName) {
this.indexName = indexName;
}
}