Interface HasDatabasesInterface

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addDatabase​(int p, org.pentaho.di.core.database.DatabaseMeta ci)
      Add a database connection to the transformation on a certain location.
      void addDatabase​(org.pentaho.di.core.database.DatabaseMeta databaseMeta)
      Add a database connection to the transformation.
      void addOrReplaceDatabase​(org.pentaho.di.core.database.DatabaseMeta databaseMeta)
      Add a database connection to the transformation if that connection didn't exists yet.
      org.pentaho.di.core.database.DatabaseMeta findDatabase​(String name)
      Searches the list of databases for a database with a certain name
      org.pentaho.di.core.database.DatabaseMeta getDatabase​(int i)
      Retrieves a database connection information a a certain location.
      List<org.pentaho.di.core.database.DatabaseMeta> getDatabases()
      Get an ArrayList of defined DatabaseInfo objects.
      boolean haveConnectionsChanged()
      Checks whether or not the connections have changed.
      int indexOfDatabase​(org.pentaho.di.core.database.DatabaseMeta ci)
      Find the location of database
      int nrDatabases()
      Count the nr of databases in the transformation.
      void removeDatabase​(int i)
      Removes a database from the transformation on a certain location.
      void setDatabases​(List<org.pentaho.di.core.database.DatabaseMeta> databases)  
    • Method Detail

      • getDatabases

        List<org.pentaho.di.core.database.DatabaseMeta> getDatabases()
        Get an ArrayList of defined DatabaseInfo objects.
        Returns:
        an ArrayList of defined DatabaseInfo objects.
      • setDatabases

        void setDatabases​(List<org.pentaho.di.core.database.DatabaseMeta> databases)
        Parameters:
        databases - The databases to set.
      • addDatabase

        void addDatabase​(org.pentaho.di.core.database.DatabaseMeta databaseMeta)
        Add a database connection to the transformation.
        Parameters:
        databaseMeta - The database connection information.
      • addOrReplaceDatabase

        void addOrReplaceDatabase​(org.pentaho.di.core.database.DatabaseMeta databaseMeta)
        Add a database connection to the transformation if that connection didn't exists yet. Otherwise, replace the connection in the transformation
        Parameters:
        databaseMeta - The database connection information.
      • addDatabase

        void addDatabase​(int p,
                         org.pentaho.di.core.database.DatabaseMeta ci)
        Add a database connection to the transformation on a certain location.
        Parameters:
        p - The location
        ci - The database connection information.
      • getDatabase

        org.pentaho.di.core.database.DatabaseMeta getDatabase​(int i)
        Retrieves a database connection information a a certain location.
        Parameters:
        i - The database number.
        Returns:
        The database connection information.
      • removeDatabase

        void removeDatabase​(int i)
        Removes a database from the transformation on a certain location.
        Parameters:
        i - The location
      • nrDatabases

        int nrDatabases()
        Count the nr of databases in the transformation.
        Returns:
        The nr of databases
      • findDatabase

        org.pentaho.di.core.database.DatabaseMeta findDatabase​(String name)
        Searches the list of databases for a database with a certain name
        Parameters:
        name - The name of the database connection
        Returns:
        The database connection information or null if nothing was found.
      • indexOfDatabase

        int indexOfDatabase​(org.pentaho.di.core.database.DatabaseMeta ci)
        Find the location of database
        Parameters:
        ci - The database queried
        Returns:
        The location of the database, -1 if nothing was found.
      • haveConnectionsChanged

        boolean haveConnectionsChanged()
        Checks whether or not the connections have changed.
        Returns:
        True if the connections have been changed.