SecondaryDatabase
. Note that the associations between primary and secondary databases are not stored persistently. Whenever a primary database is opened for write access by the application, the appropriate associated secondary databases should also be opened by the application. This is necessary to ensure data integrity when changes are made to the primary database.
@param txn For a transactional database, an explicit transaction may bespecified, or null may be specified to use auto-commit. For a non-transactional database, null must be specified. @param databaseName The name of the database. @param primaryDatabase the primary database with which the secondarydatabase will be associated. The primary database must not be configured for duplicates. @param dbConfig The secondary database attributes. If null, defaultattributes are used. @return Database handle. @throws DatabaseExistsException if the database already exists and the{@code DatabaseConfig ExclusiveCreate} parameter is true. @throws DatabaseNotFoundException if the database does not exist and the{@code DatabaseConfig AllowCreate} parameter is false. @throws OperationFailureException if one of the
|
|
|
|