Migrating BTree tables and BTree Connector to System Store
You can learn to migrate BTree tables and BTree Connector to System Store.
The BTree Connector is deprecated, and is now only provided as an unsupported example. Therefore, you might decide to move the way your Delta information is maintained from the old Btree objects to Delta Tables in the System Store. The best strategy for doing this is engineering a situation where your Delta information is empty (for example, establishing a new baseline) and then switch from the Btree objects to the System Store Delta Tables. Note that the parameter that used to hold the filename of the Btree objects now indicates a table name in a database, so some editing of this value might be required.
Changing a solution to use the System Store Connector instead of the BTree Connector for storing IBM® Security Verify Directory Integrator Entries is straight forward since both connectors follow the same logic when specifying Key Attribute Name and Selection Mode attributes. The only difference is that instead of the underlying BTree databas,e the System Store Connector has to use predefined a database (for example the embedded Derby database) and specify a table to store into.
Storing other Java™ objects using the System Store Connector differs significantly from storing them with BTree and will require more elaborate transformation. The following solution, which puts Java objects in the underlying BTree database, cannot be directly applied to the System Store Connector, since it does not provide direct access to the backend database:
scripts var bt = system.getConnector("btreedb");
bt.initialze (null); var db = bt.getDatabase();
db.insert ("my key", new java.lang.String("my value"));
var value = db.search ("my key"); value = value + " - modified";
db.replace ("my key", value);
Instead of this the standard methods (put()
, find()
and modify()
) from the Connector API can be used, but the object should be first wrapped into an Entry object, which subsequently can be stored in the System
Store.