| | |
| | | * This class is a wrapper around the JE database object and provides basic |
| | | * read and write methods for entries. |
| | | */ |
| | | public abstract class DatabaseContainer implements Closeable |
| | | abstract class DatabaseContainer implements Closeable |
| | | { |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | |
| | | * @throws StorageRuntimeException If an error occurs while attempting to open |
| | | * the cursor. |
| | | */ |
| | | public Cursor openCursor(ReadableStorage txn) throws StorageRuntimeException |
| | | final Cursor openCursor(ReadableStorage txn) throws StorageRuntimeException |
| | | { |
| | | return txn.openCursor(treeName); |
| | | } |
| | |
| | | * |
| | | * @return JE database name for this database container. |
| | | */ |
| | | public TreeName getName() |
| | | final TreeName getName() |
| | | { |
| | | return treeName; |
| | | } |
| | |
| | | * |
| | | * @param name The database name to use for this container. |
| | | */ |
| | | void setName(TreeName name) |
| | | final void setName(TreeName name) |
| | | { |
| | | this.treeName = name; |
| | | } |