Tabnine Logo
JobMeta.addDatabase
Code IndexAdd Tabnine to your IDE (free)

How to use
addDatabase
method
in
org.pentaho.di.job.JobMeta

Best Java code snippets using org.pentaho.di.job.JobMeta.addDatabase (Showing top 8 results out of 315)

origin: pentaho/pentaho-kettle

 @Override
 public void widgetSelected( SelectionEvent e ) {
  DatabaseMeta databaseMeta = new DatabaseMeta();
  String connectionName = showDbDialogUnlessCancelledOrValid( databaseMeta, null );
  if ( connectionName != null ) {
   jobMeta.addDatabase( databaseMeta );
   reinitConnectionDropDown( wConnection, databaseMeta.getName() );
  }
 }
}
origin: pentaho/pentaho-kettle

 public void widgetSelected( SelectionEvent e ) {
  CreateDatabaseWizard cdw = new CreateDatabaseWizard();
  DatabaseMeta newDBInfo = cdw.createAndRunDatabaseWizard( shell, props, jobMeta.getDatabases() );
  if ( newDBInfo != null ) {
   jobMeta.addDatabase( newDBInfo );
   reinitConnectionDropDown( wConnection, newDBInfo.getName() );
  }
 }
} );
origin: pentaho/pentaho-kettle

 public void widgetSelected( SelectionEvent e ) {
  DatabaseMeta databaseMeta = jobMeta.findDatabase( wConnection.getText() );
  if ( databaseMeta != null ) {
   // cloning to avoid spoiling data on cancel or incorrect input
   DatabaseMeta clone = (DatabaseMeta) databaseMeta.clone();
   String connectionName = showDbDialogUnlessCancelledOrValid( clone, databaseMeta );
   if ( connectionName != null ) {
    // need to replace the old connection with a new one
    jobMeta.removeDatabase( jobMeta.indexOfDatabase( databaseMeta ) );
    jobMeta.addDatabase( clone );
    reinitConnectionDropDown( wConnection, connectionName );
   }
  }
 }
}
origin: pentaho/pentaho-kettle

dbMetaToReplace.setObjectId( repo.getDatabaseID( dbMetaToReplace.getName() ) );
jobMeta.removeDatabase( indexToReplace );
jobMeta.addDatabase( dbMetaToReplace );
origin: pentaho/pentaho-kettle

 public void widgetSelected( SelectionEvent e ) {
  DatabaseMeta databaseMeta = new DatabaseMeta();
  databaseMeta.shareVariablesWith( jobMeta );
  getDatabaseDialog().setDatabaseMeta( databaseMeta );
  if ( getDatabaseDialog().open() != null ) {
   jobMeta.addDatabase( getDatabaseDialog().getDatabaseMeta() );
   wLogconnection.add( getDatabaseDialog().getDatabaseMeta().getName() );
   wLogconnection.select( wLogconnection.getItemCount() - 1 );
  }
 }
} );
origin: pentaho/pentaho-kettle

jobMeta.addDatabase( oldDatabase );
origin: pentaho/pentaho-kettle

 addDatabase( dbcon );
} else {
 if ( !exist.isShared() ) {
   int idx = indexOfDatabase( exist );
   removeDatabase( idx );
   addDatabase( idx, dbcon );
origin: pentaho/big-data-plugin

/**
 * Open the Database Connection Dialog to edit
 *
 * @param database
 *          Database meta to edit
 * @param isNew
 *          Is this database meta new? If so and the user chooses to save the database connection we will make sure to
 *          save this into the job meta.
 */
protected void editDatabaseMeta( DatabaseMeta database, boolean isNew ) {
 database.shareVariablesWith( jobMeta );
 getDatabaseDialog().setDatabaseMeta( database );
 if ( getDatabaseDialog().open() != null ) {
  if ( isNew ) {
   jobMeta.addDatabase( getDatabaseDialog().getDatabaseMeta() );
  }
  suppressEventHandling = true;
  try {
   populateDatabases();
  } finally {
   suppressEventHandling = false;
  }
  setSelectedDatabaseConnection( createDatabaseItem( getDatabaseDialog().getDatabaseMeta().getName() ) );
  jobEntry.setUsedDbConnection( database );
 }
}
org.pentaho.di.jobJobMetaaddDatabase

Popular methods of JobMeta

  • environmentSubstitute
  • <init>
    Create a new JobMeta object by loading it from a a DOM node.
  • getName
  • findDatabase
  • getDatabases
  • getJobCopies
    Gets the job copies.
  • getParameterDefault
  • getXML
  • setName
  • addJobEntry
    Adds the job entry.
  • addJobHop
    Adds the job hop.
  • addNote
  • addJobHop,
  • addNote,
  • addParameterDefinition,
  • clearChanged,
  • findJobEntry,
  • getCreatedDate,
  • getCreatedUser,
  • getDatabase,
  • getExtendedDescription

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • JComboBox (javax.swing)
  • JFileChooser (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now