Lines Matching +defs:db +defs:cursor
10 package db;
12 import com.sleepycat.db.*;
23 static final String database = "access.db";
44 db = new Database(database, null, config);
62 status = db.putNoOverwrite(null, key, data);
73 // Acquire a cursor for the database.
74 cursor = db.openCursor(null, null);
96 // Start with a fresh key each time, the db.get() routine returns
102 status = cursor.getSearchRecordNumber(key, data, null);
109 // Move the cursor a record forward.
110 status = cursor.getNext(key, data, null);
123 status = cursor.getRecordNumber(datano, null);
134 cursor.close();
135 cursor = null;
144 stats = (BtreeStats)db.getStats(null, null);
156 if (cursor != null) {
157 cursor.close();
158 cursor = null;
160 if (db != null) {
161 db.close();
162 db = null;
230 private Cursor cursor;
231 private Database db;