Class DatabaseConnectionManager

java.lang.Object
org.pentaho.di.shared.BaseSharedObjectsManager<org.pentaho.di.core.database.DatabaseMeta>
org.pentaho.di.shared.DatabaseConnectionManager
All Implemented Interfaces:
org.pentaho.di.core.bowl.CachingManager, DatabaseManagementInterface, SharedObjectsManagementInterface<org.pentaho.di.core.database.DatabaseMeta>

public class DatabaseConnectionManager extends BaseSharedObjectsManager<org.pentaho.di.core.database.DatabaseMeta> implements DatabaseManagementInterface
This class uses the SharedObjectsIO to retrieve and save shared objects. This is used by the UI.

This class caches the state of the underlying SharedObjectsIO, and does not re-read from the source. Only changes written through this interface will be reflected.

  • Field Details

    • DB_TYPE

      public static final String DB_TYPE
  • Constructor Details

    • DatabaseConnectionManager

      protected DatabaseConnectionManager(org.pentaho.di.shared.SharedObjectsIO sharedObjectsIO)
  • Method Details

    • getInstance

      public static DatabaseConnectionManager getInstance(org.pentaho.di.core.bowl.Bowl bowl)
      Create an instance of SharedObjectManager using the Bowl's SharedObjectIO
      Parameters:
      bowl -
      Returns:
    • createSharedObjectUsingNode

      protected org.pentaho.di.core.database.DatabaseMeta createSharedObjectUsingNode(Node node) throws org.pentaho.di.core.exception.KettleException
      Description copied from class: BaseSharedObjectsManager
      This method is called while populating the sharedObjectMap to create concrete SharedObjectInterface implementation class. This will be implemented by subclasses.
      Specified by:
      createSharedObjectUsingNode in class BaseSharedObjectsManager<org.pentaho.di.core.database.DatabaseMeta>
      Parameters:
      node -
      Returns:
      Throws:
      org.pentaho.di.core.exception.KettleException