1 34 package smallsql.database; 35 36 import java.sql.*; 37 38 45 class TableStorePageInsert extends TableStorePage { 46 47 final private StorePageLink link = new StorePageLink(); 48 49 TableStorePageInsert(SSConnection con, Table table, int lockType){ 50 super( con, table, lockType, -1); 51 link.page = this; 52 link.filePos = fileOffset; 53 } 54 55 56 59 final long commit() throws SQLException{ 60 long result = super.commit(); 61 link.filePos = fileOffset; 62 link.page = null; 63 return result; 64 } 65 66 67 70 final StorePageLink getLink(){ 71 return link; 72 } 73 } 74 | Popular Tags |