Skip navigation links

Package com.prosyst.mprm.backend.database.tree

The interface of this package is used to maintain the data in the database for the tree structure of gateways database.

See: Description

Package com.prosyst.mprm.backend.database.tree Description

The interface of this package is used to maintain the data in the database for the tree structure of gateways database.
It provides the ability to add, remove and update nodes in tree structure of gateways.
It also provides the ability to use transactions to maintain the data in the tree database.

The TreeDatabase is accessible to the other bundles as a service on the backend framework through the methods defined by the OSGi Framework specification.

Example :

import com.prosyst.mprm.backend.database.tree.TreeDatabase;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;

.....

  public TreeDatabase getTreeDatabase(BundleContext context) {
    TreeDatabase td = null;
    ServiceReference tdRef = context.getServiceReference("com.prosyst.mprm.backend.database.tree.TreeDatabase");
    if (tdRef != null) {
      td = (TreeDatabase)context.getService(tdRef);
    }
    return td;
  }

.....

Skip navigation links

Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.