public void setType(DataType type) {
_type = type;
setLength((short) size());
- if (type == DataType.BOOLEAN || type == DataType.BYTE ||
- type == DataType.INT || type == DataType.LONG ||
- type == DataType.DOUBLE || type == DataType.FLOAT ||
- type == DataType.SHORT_DATE_TIME)
- {
- setVariableLength(false);
- } else if (type == DataType.BINARY || type == DataType.TEXT) {
- setVariableLength(true);
- }
+ setVariableLength(type.isVariableLength());
}
public DataType getType() {
return _type;
/**
* @return All of the columns in this table (unmodifiable List)
*/
- public List getColumns() {
+ public List<Column> getColumns() {
return Collections.unmodifiableList(_columns);
}
/**
/**
* @return All of the Indexes on this table (unmodifiable List)
*/
- public List getIndexes() {
+ public List<Index> getIndexes() {
return Collections.unmodifiableList(_indexes);
}