Lines Matching refs:database

37  * This class is a wrapper around the JE database object and provides basic
48 * The database entryContainer.
53 * The JE database configuration.
58 * The name of the database within the entryContainer.
68 * A JE database handle opened through this database
71 private Database database;
76 * @param name The name of the entry database.
78 * @param entryContainer The entryContainer of the entry database.
79 * @throws DatabaseException if a JE database error occurs.
91 * Opens a JE database in this database container. If the provided
92 * database configuration is transactional, a transaction will be
95 * @throws DatabaseException if a JE database error occurs while
102 // Open the database under a transaction.
107 database = env.openDatabase(txn, name, dbConfig);
110 TRACER.debugVerbose("JE database %s opened. txnid=%d",
111 database.getDatabaseName(),
124 database = env.openDatabase(null, name, dbConfig);
127 TRACER.debugVerbose("JE database %s opened. txnid=none",
128 database.getDatabaseName());
134 * Flush any cached database information to disk and close the
135 * database container.
137 * The database container should not be closed while other processes
139 * while cursors handles into the database remain open, or
140 * transactions that include operations on the database have not yet
152 database.sync();
154 database.close();
155 database = null;
159 TRACER.debugInfo("Closed database %s", name);
164 * Replace or insert a record into a JE database, with optional debug logging.
176 OperationStatus status = database.put(txn, key, data);
179 TRACER.debugJEAccess(DebugLogLevel.VERBOSE, status, database,
186 * Read a record from a JE database, with optional debug logging. This is a
201 OperationStatus status = database.get(txn, key, data, lockMode);
204 TRACER.debugJEAccess(DebugLogLevel.VERBOSE, status, database, txn, key,
211 * Insert a record into a JE database, with optional debug logging. This is a
223 OperationStatus status = database.putNoOverwrite(txn, key, data);
226 TRACER.debugJEAccess(DebugLogLevel.VERBOSE, status, database, txn, key,
233 * Delete a record from a JE database, with optional debug logging. This is a
244 OperationStatus status = database.delete(txn, key);
247 TRACER.debugJEAccess(DebugLogLevel.VERBOSE, status, database, txn,
254 * Open a JE cursor on the JE database. This is a simple wrapper around
256 * @param txn A JE database transaction to be used by the cursor,
266 return database.openCursor(txn, cursorConfig);
270 * Open a JE disk ordered cursor on the JE database. This is a
280 return database.openCursor(cursorConfig);
285 * Get the count of key/data pairs in the database in a JE database.
287 * @return The count of key/data pairs in the database.
292 long count = database.count();
296 database, null, null, null);
311 * Get the JE database name for this database container.
313 * @return JE database name for this database container.
321 * Preload the database into cache.
325 * @throws DatabaseException If an JE database error occurs
331 return database.preload(config);
335 * Set the JE database name to use for this container.
337 * @param name The database name to use for this container.