Browse Source

Applied some patches contributed by Sean


git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@48 f203690c-595d-4dc9-a70b-905162fa7fd2
tags/rel_1_1_4
Tim McCune 18 years ago
parent
commit
1519a21d5e

+ 1
- 9
src/java/com/healthmarketscience/jackcess/Column.java View File

@@ -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;

+ 2
- 2
src/java/com/healthmarketscience/jackcess/Table.java View File

@@ -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);
}

Loading…
Cancel
Save