| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.backends.jeb; |
| | | |
| | |
| | | * @param environment A reference to the database environment in which the |
| | | * databases will be held. |
| | | * |
| | | * @throws DatabaseException If a problem occurs while loading the |
| | | * compressed schema definitions from the |
| | | * database. |
| | | * @throws DatabaseException If a database problem occurs while loading |
| | | * the compressed schema definitions from the |
| | | * database. |
| | | * @throws InitializationException If an error occurs while loading and |
| | | * processing the compressed schema |
| | | * definitions. |
| | | */ |
| | | public JECompressedSchema(Environment environment) |
| | | throws DatabaseException |
| | | throws DatabaseException, InitializationException |
| | | { |
| | | this.environment = environment; |
| | | |
| | |
| | | /** |
| | | * Loads the compressed schema information from the database. |
| | | * |
| | | * @throws DatabaseException If a problem occurs while loading the |
| | | * definitions from the database. |
| | | * @throws DatabaseException If a database error occurs while |
| | | * loading the definitions from the |
| | | * database. |
| | | * @throws InitializationException If an error occurs while loading |
| | | * and processing the definitions. |
| | | */ |
| | | private void load() |
| | | throws DatabaseException |
| | | throws DatabaseException, InitializationException |
| | | { |
| | | DatabaseConfig dbConfig = new DatabaseConfig(); |
| | | |
| | |
| | | |
| | | Message m = |
| | | ERR_JEB_COMPSCHEMA_CANNOT_DECODE_OC_TOKEN.get(ae.getMessage()); |
| | | throw new DatabaseException(m.toString(), ae); |
| | | throw new InitializationException(m, ae); |
| | | } |
| | | finally |
| | | { |
| | |
| | | |
| | | Message m = |
| | | ERR_JEB_COMPSCHEMA_CANNOT_DECODE_AD_TOKEN.get(ae.getMessage()); |
| | | throw new DatabaseException(m.toString(), ae); |
| | | throw new InitializationException(m, ae); |
| | | } |
| | | finally |
| | | { |