Creating Database Registry#

IDBSubsystem subsystem = CMS.getSubsystem(IDBSubsystem.SUB_ID);
IDBRegistry registry = new DBRegistry();
registry.init(subsystem, null);

Creating Database Session#

IDBSubsystem subsystem = CMS.getSubsystem(IDBSubsystem.SUB_ID);
IDBSSession session = mDBService.createSession();
...
session.close();

Creating Database Record#

IDBObj record = new DBRecord();
record.set(attribute, value);

Adding Database Record#

String dn = ...;
IDBObj record = ...;
session.add(dn, record);

Reading Database Record#

String dn = ...;
IDBObj record = session.read(dn);

Deleting Database Record#

String dn = ...;
session.delete(dn);

See Also#