| | |
| | | this.config = config; |
| | | this.env = env; |
| | | |
| | | // Instantiate database and cursor lists |
| | | // Instantiate the list of database handles. |
| | | databases = new ArrayList<Database>(); |
| | | |
| | | // Instantiate indexes for id2children and id2subtree. |
| | |
| | | } |
| | | |
| | | /** |
| | | * Remove from disk all the databases in this entryContainer. |
| | | * |
| | | * @throws DatabaseException If an error occurs while attempting to delete any |
| | | * database. |
| | | */ |
| | | private void removeAllDatabases() throws DatabaseException |
| | | { |
| | | for(Database database : databases) |
| | | { |
| | | String name = database.getDatabaseName(); |
| | | env.removeDatabase(null, name); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * This method constructs a container name from a base DN. Only alphanumeric |
| | | * characters are preserved, all other characters are replaced with an |
| | | * underscore. |