1 24 25 package com.mckoi.database; 26 27 import java.io.IOException ; 28 29 43 44 interface DataTableFile extends TableDataSource { 45 46 55 void create(DataTableDef def) throws IOException ; 56 57 75 boolean update(DataTableDef def) throws IOException ; 76 77 91 boolean doMaintenance() throws IOException ; 92 93 102 110 void load(String table_name, boolean read_only) throws IOException ; 111 112 118 void shutdown() throws IOException ; 119 120 127 void drop(); 128 129 136 void updateFile() throws IOException ; 137 138 143 void addRowsLock(); 144 145 149 void removeRowsLock(); 150 151 154 boolean hasRowsLocked(); 155 156 162 167 boolean isRowValid(int record_index) throws IOException ; 168 169 178 int addRow(RowData row_data) throws IOException ; 179 180 190 void removeRow(int row_index) throws IOException ; 191 192 199 202 long nextUniqueKey() throws IOException ; 203 204 } 205 | Popular Tags |