org.pentaho.di.ui.spoon.delegates
Class SpoonDBDelegate

java.lang.Object
  extended by org.pentaho.di.ui.spoon.delegates.SpoonDelegate
      extended by org.pentaho.di.ui.spoon.delegates.SpoonDBDelegate

public class SpoonDBDelegate
extends SpoonDelegate


Field Summary
 
Fields inherited from class org.pentaho.di.ui.spoon.delegates.SpoonDelegate
loggingObject
 
Constructor Summary
SpoonDBDelegate(Spoon spoon)
           
 
Method Summary
 void clearDBCache(DatabaseMeta databaseMeta)
           
 void clipConnection(DatabaseMeta databaseMeta)
           
 boolean copyTable(DatabaseMeta sourceDBInfo, DatabaseMeta targetDBInfo, String tablename)
           
 void delConnection(HasDatabasesInterface hasDatabasesInterface, DatabaseMeta db)
          Delete a database connection
 void dupeConnection(HasDatabasesInterface hasDatabasesInterface, DatabaseMeta databaseMeta)
           
 void editConnection(DatabaseMeta databaseMeta)
           
 String[] exploreDB(DatabaseMeta databaseMeta, boolean aLook)
          return a schema, table combination from the explorer
 void getJobSQL(JobMeta jobMeta)
          Get & show the SQL required to run the loaded job entry...
 void getSQL()
           
 void getTransSQL(TransMeta transMeta)
          Get & show the SQL required to run the loaded transformation...
 void newConnection()
           
 void newConnection(HasDatabasesInterface hasDatabasesInterface)
           
 void saveConnection(DatabaseMeta db, String versionComment)
           
 void sqlConnection(DatabaseMeta databaseMeta)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpoonDBDelegate

public SpoonDBDelegate(Spoon spoon)
Method Detail

sqlConnection

public void sqlConnection(DatabaseMeta databaseMeta)

editConnection

public void editConnection(DatabaseMeta databaseMeta)

dupeConnection

public void dupeConnection(HasDatabasesInterface hasDatabasesInterface,
                           DatabaseMeta databaseMeta)

clipConnection

public void clipConnection(DatabaseMeta databaseMeta)

delConnection

public void delConnection(HasDatabasesInterface hasDatabasesInterface,
                          DatabaseMeta db)
Delete a database connection

Parameters:
name - The name of the database connection.

exploreDB

public String[] exploreDB(DatabaseMeta databaseMeta,
                          boolean aLook)
return a schema, table combination from the explorer

Parameters:
databaseMeta -
aLook -
Returns:
schema [0] and table [1]

clearDBCache

public void clearDBCache(DatabaseMeta databaseMeta)

getSQL

public void getSQL()

getTransSQL

public void getTransSQL(TransMeta transMeta)
Get & show the SQL required to run the loaded transformation...


getJobSQL

public void getJobSQL(JobMeta jobMeta)
Get & show the SQL required to run the loaded job entry...


copyTable

public boolean copyTable(DatabaseMeta sourceDBInfo,
                         DatabaseMeta targetDBInfo,
                         String tablename)

saveConnection

public void saveConnection(DatabaseMeta db,
                           String versionComment)

newConnection

public void newConnection()

newConnection

public void newConnection(HasDatabasesInterface hasDatabasesInterface)