git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@48 f203690c-595d-4dc9-a70b-905162fa7fd2tags/rel_1_1_4
@@ -157,15 +157,7 @@ public class Column implements Comparable<Column> { | |||
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; |
@@ -129,7 +129,7 @@ public class Table { | |||
/** | |||
* @return All of the columns in this table (unmodifiable List) | |||
*/ | |||
public List getColumns() { | |||
public List<Column> getColumns() { | |||
return Collections.unmodifiableList(_columns); | |||
} | |||
/** | |||
@@ -142,7 +142,7 @@ public class Table { | |||
/** | |||
* @return All of the Indexes on this table (unmodifiable List) | |||
*/ | |||
public List getIndexes() { | |||
public List<Index> getIndexes() { | |||
return Collections.unmodifiableList(_indexes); | |||
} | |||