org.pentaho.di.trans
Interface HasDatabasesInterface

All Known Implementing Classes:
JobMeta, TransMeta

public interface HasDatabasesInterface


Method Summary
 void addDatabase(DatabaseMeta databaseMeta)
          Add a database connection to the transformation.
 void addDatabase(int p, DatabaseMeta ci)
          Add a database connection to the transformation on a certain location.
 void addOrReplaceDatabase(DatabaseMeta databaseMeta)
          Add a database connection to the transformation if that connection didn't exists yet.
 DatabaseMeta findDatabase(String name)
          Searches the list of databases for a database with a certain name
 DatabaseMeta getDatabase(int i)
          Retrieves a database connection information a a certain location.
 List<DatabaseMeta> getDatabases()
          Get an ArrayList of defined DatabaseInfo objects.
 boolean haveConnectionsChanged()
          Checks whether or not the connections have changed.
 int indexOfDatabase(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<DatabaseMeta> databases)
           
 

Method Detail

getDatabases

List<DatabaseMeta> getDatabases()
Get an ArrayList of defined DatabaseInfo objects.

Returns:
an ArrayList of defined DatabaseInfo objects.

setDatabases

void setDatabases(List<DatabaseMeta> databases)
Parameters:
databases - The databases to set.

addDatabase

void addDatabase(DatabaseMeta databaseMeta)
Add a database connection to the transformation.

Parameters:
databaseMeta - The database connection information.

addOrReplaceDatabase

void addOrReplaceDatabase(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,
                 DatabaseMeta ci)
Add a database connection to the transformation on a certain location.

Parameters:
p - The location
ci - The database connection information.

getDatabase

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

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(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.