Java Examples for de.uni_luebeck.inb.krabbenhoeft.eQTL.entities.InvalidColumnException
The following java examples will help you to understand the usage of de.uni_luebeck.inb.krabbenhoeft.eQTL.entities.InvalidColumnException. These source code samples are taken from different open source projects.
Example 1
Project: eQTL-GWT-Cassandra-master File: CassandraEntityContainer.java View source code |
protected ColumnForDataSetLayer ensureColumnExistsAndHasType(Map<String, ColumnForDataSetLayer> name2column, String propertyName, ColumType columType) {
if (!name2column.containsKey(propertyName))
throw new InvalidColumnException(propertyName);
final ColumnForDataSetLayer column = name2column.get(propertyName);
if (column.getType() != columType)
throw new InvalidTypeException(propertyName, columType);
return column;
}