1 30 31 32 package org.hsqldb.persist; 33 34 import java.io.IOException ; 35 36 import org.hsqldb.rowio.RowInputInterface; 37 38 45 public interface PersistentStore { 46 47 int INT_STORE_SIZE = 4; 48 int LONG_STORE_SIZE = 8; 49 50 51 CachedObject get(int key); 52 53 54 CachedObject getKeep(int key); 55 56 int getStorageSize(int key); 57 58 59 void add(CachedObject object) throws IOException ; 60 61 62 void restore(CachedObject object) throws IOException ; 63 64 CachedObject get(RowInputInterface in) throws IOException ; 65 66 CachedObject getNewInstance(int size) throws IOException ; 67 68 69 void removePersistence(int i); 70 71 72 void remove(int i); 73 74 75 void release(int i); 76 77 78 void commit(CachedObject object); 79 } 80 | Popular Tags |