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

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

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

origin: pentaho/pentaho-kettle

/**
 * Adds the databases from the job metadata to the combo box.
 *
 * @param wConnection
 *          the w connection
 */
public void addDatabases( CCombo wConnection ) {
 for ( int i = 0; i < jobMeta.nrDatabases(); i++ ) {
  DatabaseMeta ci = jobMeta.getDatabase( i );
  wConnection.add( ci.getName() );
 }
}
origin: pentaho/pentaho-kettle

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

private void getTableName() {
 // New class: SelectTableDialog
 int connr = wConnection.getSelectionIndex();
 if ( connr >= 0 ) {
  DatabaseMeta inf = jobMeta.getDatabase( connr );
  DatabaseExplorerDialog std = new DatabaseExplorerDialog( shell, SWT.NONE, inf, jobMeta.getDatabases() );
  std.setSelectedSchemaAndTable( wSchemaname.getText(), wTablename.getText() );
  if ( std.open() ) {
   // wSchemaname.setText(Const.NVL(std.getSchemaName(), ""));
   wTablename.setText( Const.NVL( std.getTableName(), "" ) );
  }
 } else {
  MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR );
  mb.setMessage( BaseMessages.getString( PKG, "JobMysqlBulkFile.ConnectionError2.DialogMessage" ) );
  mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) );
  mb.open();
 }
}
origin: pentaho/pentaho-kettle

public void addDatabases() {
 connections = new String[jobMeta.nrDatabases()];
 for ( int i = 0; i < jobMeta.nrDatabases(); i++ ) {
  DatabaseMeta ci = jobMeta.getDatabase( i );
  connections[i] = ci.getName();
 }
}
origin: pentaho/pentaho-kettle

private void getTableName() {
 // New class: SelectTableDialog
 int connr = wConnection.getSelectionIndex();
 if ( connr >= 0 ) {
  DatabaseMeta inf = jobMeta.getDatabase( connr );
  DatabaseExplorerDialog std = new DatabaseExplorerDialog( shell, SWT.NONE, inf, jobMeta.getDatabases() );
  std.setSelectedSchemaAndTable( wSchemaname.getText(), wTablename.getText() );
  if ( std.open() ) {
   wTablename.setText( Const.NVL( std.getTableName(), "" ) );
  }
 } else {
  MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR );
  mb.setMessage( BaseMessages.getString( PKG, "JobEntryWaitForSQL.ConnectionError2.DialogMessage" ) );
  mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) );
  mb.open();
 }
}
origin: pentaho/pentaho-kettle

DatabaseMeta dbMeta = getDatabase( i );
if ( props != null && props.areOnlyUsedConnectionsSavedToXML() ) {
 if ( usedDatabaseMetas.contains( dbMeta ) ) {
origin: pentaho/pentaho-kettle

private void getTableName() {
 // New class: SelectTableDialog
 int connr = wConnection.getSelectionIndex();
 if ( connr >= 0 ) {
  DatabaseMeta inf = jobMeta.getDatabase( connr );
  DatabaseExplorerDialog std = new DatabaseExplorerDialog( shell, SWT.NONE, inf, jobMeta.getDatabases() );
  std.setSelectedSchemaAndTable( wSchemaname.getText(), wTablename.getText() );
  if ( std.open() ) {
   wTablename.setText( Const.NVL( std.getTableName(), "" ) );
  }
 } else {
  MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR );
  mb.setMessage( BaseMessages.getString( PKG, "JobMssqlBulkLoad.ConnectionError2.DialogMessage" ) );
  mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) );
  mb.open();
 }
}
origin: pentaho/pentaho-kettle

public void getDatabases() {
 wFields.removeAll();
 for ( int i = 0; i < jobMeta.nrDatabases(); i++ ) {
  DatabaseMeta ci = jobMeta.getDatabase( i );
  if ( ci != null ) {
   wFields.add( new String[] { ci.getName(), "0", JobEntryCheckDbConnections.unitTimeDesc[0] } );
  }
 }
 wFields.removeEmptyRows();
 wFields.setRowNums();
 wFields.optWidth( true );
}
origin: pentaho/pentaho-kettle

private void getTableName() {
 // New class: SelectTableDialog
 int connr = wConnection.getSelectionIndex();
 if ( connr >= 0 ) {
  DatabaseMeta inf = jobMeta.getDatabase( connr );
  DatabaseExplorerDialog std = new DatabaseExplorerDialog( shell, SWT.NONE, inf, jobMeta.getDatabases() );
  std.setSelectedSchemaAndTable( wSchemaname.getText(), wTablename.getText() );
  if ( std.open() ) {
   wTablename.setText( Const.NVL( std.getTableName(), "" ) );
  }
 } else {
  MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR );
  mb.setMessage( BaseMessages.getString( PKG, "JobEntryEvalTableContent.ConnectionError2.DialogMessage" ) );
  mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) );
  mb.open();
 }
}
origin: pentaho/pentaho-kettle

DatabaseMeta meta = getDatabase( i );
stringList.add( new StringSearchResult( meta.getName(), meta, this,
  BaseMessages.getString( PKG, "JobMeta.SearchMetadata.DatabaseConnectionName" ) ) );
origin: pentaho/pentaho-kettle

private void getTableName() {
 // New class: SelectTableDialog
 int connr = wConnection.getSelectionIndex();
 if ( connr >= 0 ) {
  DatabaseMeta inf = jobMeta.getDatabase( connr );
  DatabaseExplorerDialog std = new DatabaseExplorerDialog( shell, SWT.NONE, inf, jobMeta.getDatabases() );
  std.setSelectedSchemaAndTable( wSchemaname.getText(), wTablename.getText() );
  if ( std.open() ) {
   wTablename.setText( Const.NVL( std.getTableName(), "" ) );
  }
 } else {
  MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR );
  mb.setMessage( BaseMessages.getString( PKG, "JobMysqlBulkLoad.ConnectionError2.DialogMessage" ) );
  mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) );
  mb.open();
 }
}
origin: pentaho/pentaho-kettle

  + ( i + 1 ) + "/" + jobMeta.nrDatabases() );
DatabaseMeta databaseMeta = jobMeta.getDatabase( i );
origin: pentaho/pentaho-kettle

 private void getTableName() {
  // New class: SelectTableDialog
  int connr = wConnection.getSelectionIndex();
  if ( connr >= 0 ) {
   DatabaseMeta inf = jobMeta.getDatabase( connr );

   DatabaseExplorerDialog std = new DatabaseExplorerDialog( shell, SWT.NONE, inf, jobMeta.getDatabases() );
   std.setSelectedSchemaAndTable( wSchemaname.getText(), wTablename.getText() );
   if ( std.open() ) {
    wSchemaname.setText( Const.NVL( std.getSchemaName(), "" ) );
    wTablename.setText( Const.NVL( std.getTableName(), "" ) );
   }
  } else {
   MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR );
   mb.setMessage( BaseMessages.getString( PKG, "System.Dialog.ConnectionError.DialogMessage" ) );
   mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) );
   mb.open();
  }

 }
}
origin: pentaho/pentaho-kettle

private void getTableName() {
 // New class: SelectTableDialog
 int connr = wConnection.getSelectionIndex();
 if ( connr >= 0 ) {
  DatabaseMeta inf = jobMeta.getDatabase( connr );
  DatabaseExplorerDialog std = new DatabaseExplorerDialog( shell, SWT.NONE, inf, jobMeta.getDatabases() );
  std.setSelectedSchemaAndTable( wSchemaname.getText(), wTablename.getText() );
  if ( std.open() ) {
   wSchemaname.setText( Const.NVL( std.getSchemaName(), "" ) );
   wTablename.setText( Const.NVL( std.getTableName(), "" ) );
  }
 } else {
  MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR );
  mb.setMessage( BaseMessages.getString( PKG, "JobEntryColumnsExist.ConnectionError.DialogMessage" ) );
  mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) );
  mb.open();
 }
}
origin: pentaho/pentaho-kettle

for ( JobMeta jobMeta : jobMetas ) {
 for ( int i = 0; i < jobMeta.nrDatabases(); i++ ) {
  jobMeta.getDatabase( i ).setObjectId( null );
org.pentaho.di.jobJobMetagetDatabase

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
  • addDatabase
  • addJobEntry
    Adds the job entry.
  • addJobHop
    Adds the job hop.
  • addJobEntry,
  • addJobHop,
  • addNote,
  • addParameterDefinition,
  • clearChanged,
  • findJobEntry,
  • getCreatedDate,
  • getCreatedUser,
  • 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
  • Github Copilot alternatives
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