aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/healthmarketscience/jackcess/JetFormat.java
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2006-09-08 18:48:32 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2006-09-08 18:48:32 +0000
commitabd574dd1afe6bf7bb33f5e05c9ecfec624401bd (patch)
tree1759bb5ba8abb5960d8f86974188718772042b38 /src/java/com/healthmarketscience/jackcess/JetFormat.java
parentd89f63cae748a3e4f51185e392607ecd63c71a15 (diff)
downloadjackcess-abd574dd1afe6bf7bb33f5e05c9ecfec624401bd.tar.gz
jackcess-abd574dd1afe6bf7bb33f5e05c9ecfec624401bd.zip
clean up lots of cruft around datatypes; add more sanity checking on table creation; fix free space calculations
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@105 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/java/com/healthmarketscience/jackcess/JetFormat.java')
-rw-r--r--src/java/com/healthmarketscience/jackcess/JetFormat.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/JetFormat.java b/src/java/com/healthmarketscience/jackcess/JetFormat.java
index ec5c73e..22b03c8 100644
--- a/src/java/com/healthmarketscience/jackcess/JetFormat.java
+++ b/src/java/com/healthmarketscience/jackcess/JetFormat.java
@@ -98,7 +98,6 @@ public abstract class JetFormat {
public final int OFFSET_REFERENCE_MAP_PAGE_NUMBERS;
public final int OFFSET_FREE_SPACE;
- public final int OFFSET_DATA_ROW_LOCATION_BLOCK;
public final int OFFSET_NUM_ROWS_ON_DATA_PAGE;
public final int OFFSET_LVAL_ROW_LOCATION_BLOCK;
@@ -182,7 +181,6 @@ public abstract class JetFormat {
OFFSET_REFERENCE_MAP_PAGE_NUMBERS = defineOffsetReferenceMapPageNumbers();
OFFSET_FREE_SPACE = defineOffsetFreeSpace();
- OFFSET_DATA_ROW_LOCATION_BLOCK = defineOffsetDataRowLocationBlock();
OFFSET_NUM_ROWS_ON_DATA_PAGE = defineOffsetNumRowsOnDataPage();
OFFSET_LVAL_ROW_LOCATION_BLOCK = defineOffsetLvalRowLocationBlock();
@@ -245,7 +243,6 @@ public abstract class JetFormat {
protected abstract int defineOffsetReferenceMapPageNumbers();
protected abstract int defineOffsetFreeSpace();
- protected abstract int defineOffsetDataRowLocationBlock();
protected abstract int defineOffsetNumRowsOnDataPage();
protected abstract int defineOffsetLvalRowLocationBlock();
@@ -271,7 +268,7 @@ public abstract class JetFormat {
protected int definePageSize() { return 4096; }
- protected int defineMaxRowSize() { return PAGE_SIZE - 18; }
+ protected int defineMaxRowSize() { return PAGE_SIZE - 16; }
protected int defineOffsetNextTableDefPage() { return 4; }
protected int defineOffsetNumRows() { return 16; }
@@ -309,7 +306,6 @@ public abstract class JetFormat {
protected int defineOffsetReferenceMapPageNumbers() { return 1; }
protected int defineOffsetFreeSpace() { return 2; }
- protected int defineOffsetDataRowLocationBlock() { return 14; }
protected int defineOffsetNumRowsOnDataPage() { return 12; }
protected int defineOffsetLvalRowLocationBlock() { return 10; }