/** * Checks if the log level is debug. * * @return true, if the log level is debug, false otherwise */ public boolean isDebug() { return log.isDebug(); }
public boolean isDebug() { return log.isDebug(); }
public boolean isDebug() { return log.isDebug(); }
private void getInfo( GetPreviousRowFieldMeta inf ) { int nrkeys = wFields.nrNonEmpty(); inf.allocate( nrkeys ); if ( log.isDebug() ) { logDebug( BaseMessages .getString( PKG, "GetPreviousRowFieldDialog.Log.FoundFields", String.valueOf( nrkeys ) ) ); } //CHECKSTYLE:Indentation:OFF for ( int i = 0; i < nrkeys; i++ ) { TableItem item = wFields.getNonEmpty( i ); inf.getFieldInStream()[i] = item.getText( 1 ); inf.getFieldOutStream()[i] = item.getText( 2 ); } stepname = wStepname.getText(); // return value }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( log.isDebug() ) { logDebug( BaseMessages.getString( PKG, "DetectLastRowDialog.Log.GettingKeyInfo" ) ); } if ( input.getResultFieldName() != null ) { wResult.setText( input.getResultFieldName() ); } wStepname.selectAll(); wStepname.setFocus(); }
private void getInfo( StringCutMeta inf ) { int nrkeys = wFields.nrNonEmpty(); inf.allocate( nrkeys ); if ( log.isDebug() ) { logDebug( BaseMessages.getString( PKG, "StringCutDialog.Log.FoundFields", String.valueOf( nrkeys ) ) ); } //CHECKSTYLE:Indentation:OFF for ( int i = 0; i < nrkeys; i++ ) { TableItem item = wFields.getNonEmpty( i ); inf.getFieldInStream()[i] = item.getText( 1 ); inf.getFieldOutStream()[i] = item.getText( 2 ); inf.getCutFrom()[i] = item.getText( 3 ); inf.getCutTo()[i] = item.getText( 4 ); } stepname = wStepname.getText(); // return value }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( log.isDebug() ) { logDebug( BaseMessages.getString( PKG, "ProcessFilesDialog.Log.GettingKeyInfo" ) ); } if ( input.getDynamicSourceFileNameField() != null ) { wSourceFileNameField.setText( input.getDynamicSourceFileNameField() ); } if ( input.getDynamicTargetFileNameField() != null ) { wTargetFileNameField.setText( input.getDynamicTargetFileNameField() ); } wOperation.setText( ProcessFilesMeta.getOperationTypeDesc( input.getOperationType() ) ); wAddResult.setSelection( input.isaddTargetFileNametoResult() ); wOverwriteTarget.setSelection( input.isOverwriteTargetFile() ); wCreateParentFolder.setSelection( input.isCreateParentFolder() ); wSimulate.setSelection( input.isSimulate() ); wStepname.selectAll(); wStepname.setFocus(); }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( log.isDebug() ) { logDebug( BaseMessages.getString( PKG, "DynamicSQLRowDialog.Log.GettingKeyInfo" ) ); } wSQL.setText( Const.NVL( input.getSql(), "" ) ); wLimit.setText( "" + input.getRowLimit() ); wOuter.setSelection( input.isOuterJoin() ); wuseVars.setSelection( input.isVariableReplace() ); if ( input.getSQLFieldName() != null ) { wSQLFieldName.setText( input.getSQLFieldName() ); } wqueryOnlyOnChange.setSelection( input.isQueryOnlyOnChange() ); if ( input.getDatabaseMeta() != null ) { wConnection.setText( input.getDatabaseMeta().getName() ); } else if ( transMeta.nrDatabases() == 1 ) { wConnection.setText( transMeta.getDatabase( 0 ).getName() ); } wStepname.selectAll(); wStepname.setFocus(); }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( log.isDebug() ) { log.logDebug( toString(), BaseMessages.getString( PKG, "ZipFileDialog.Log.GettingKeyInfo" ) ); } if ( input.getBaseFolderField() != null ) { wBaseFolderField.setText( input.getBaseFolderField() ); } if ( input.getDynamicSourceFileNameField() != null ) { wSourceFileNameField.setText( input.getDynamicSourceFileNameField() ); } if ( input.getDynamicTargetFileNameField() != null ) { wTargetFileNameField.setText( input.getDynamicTargetFileNameField() ); } wOperation.setText( ZipFileMeta.getOperationTypeDesc( input.getOperationType() ) ); if ( input.getMoveToFolderField() != null ) { wMoveToFolderField.setText( input.getMoveToFolderField() ); } wAddResult.setSelection( input.isaddTargetFileNametoResult() ); wOverwriteZipEntry.setSelection( input.isOverwriteZipEntry() ); wCreateParentFolder.setSelection( input.isCreateParentFolder() ); wKeepFolders.setSelection( input.isKeepSouceFolder() ); wStepname.selectAll(); wStepname.setFocus(); }
private void getInfo( DeleteMeta inf ) { // Table ktable = wKey.table; int nrkeys = wKey.nrNonEmpty(); inf.allocate( nrkeys ); inf.setCommitSize( wCommit.getText() ); if ( log.isDebug() ) { logDebug( BaseMessages.getString( PKG, "DeleteDialog.Log.FoundKeys", String.valueOf( nrkeys ) ) ); } //CHECKSTYLE:Indentation:OFF for ( int i = 0; i < nrkeys; i++ ) { TableItem item = wKey.getNonEmpty( i ); inf.getKeyLookup()[i] = item.getText( 1 ); inf.getKeyCondition()[i] = item.getText( 2 ); inf.getKeyStream()[i] = item.getText( 3 ); inf.getKeyStream2()[i] = item.getText( 4 ); } inf.setSchemaName( wSchema.getText() ); inf.setTableName( wTable.getText() ); inf.setDatabaseMeta( transMeta.findDatabase( wConnection.getText() ) ); stepname = wStepname.getText(); // return value }
private void getInfo( MySQLBulkLoaderMeta inf ) { int nrfields = wReturn.nrNonEmpty(); inf.allocate( nrfields ); inf.setEnclosure( wEnclosure.getText() ); inf.setDelimiter( wDelimiter.getText() ); inf.setEscapeChar( wEscapeChar.getText() ); inf.setEncoding( wCharSet.getText() ); inf.setReplacingData( wReplace.getSelection() ); inf.setIgnoringErrors( wIgnore.getSelection() ); inf.setLocalFile( wLocal.getSelection() ); inf.setBulkSize( wBulkSize.getText() ); if ( log.isDebug() ) { logDebug( BaseMessages.getString( PKG, "MySQLBulkLoaderDialog.Log.FoundFields", "" + nrfields ) ); } //CHECKSTYLE:Indentation:OFF for ( int i = 0; i < nrfields; i++ ) { TableItem item = wReturn.getNonEmpty( i ); inf.getFieldTable()[i] = item.getText( 1 ); inf.getFieldStream()[i] = item.getText( 2 ); inf.getFieldFormatType()[i] = MySQLBulkLoaderMeta.getFieldFormatType( item.getText( 3 ) ); } inf.setSchemaName( wSchema.getText() ); inf.setTableName( wTable.getText() ); inf.setDatabaseMeta( transMeta.findDatabase( wConnection.getText() ) ); inf.setFifoFileName( wFifoFile.getText() ); stepname = wStepname.getText(); // return value }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( log.isDebug() ) { logDebug( BaseMessages.getString( PKG, "TableExistsDialog.Log.GettingKeyInfo" ) ); } if ( input.getDatabase() != null ) { wConnection.setText( input.getDatabase().getName() ); } else if ( transMeta.nrDatabases() == 1 ) { wConnection.setText( transMeta.getDatabase( 0 ).getName() ); } if ( input.getDynamicTablenameField() != null ) { wTableName.setText( input.getDynamicTablenameField() ); } if ( input.getSchemaname() != null ) { wSchemaname.setText( input.getSchemaname() ); } if ( input.getResultFieldName() != null ) { wResult.setText( input.getResultFieldName() ); } wStepname.selectAll(); wStepname.setFocus(); }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( log.isDebug() ) { logDebug( BaseMessages.getString( PKG, "MonetDBBulkLoaderDialog.Log.GettingKeyInfo" ) ); } wBufferSize.setText( "" + input.getBufferSize() ); if ( input.getSchemaName() != null ) { wSchema.setText( input.getSchemaName() ); } if ( input.getTableName() != null ) { wTable.setText( input.getTableName() ); } if ( input.getDbConnectionName() != null ) { wConnection.setText( input.getDbConnectionName() ); } wStepname.selectAll(); wStepname.setFocus(); }
/** * Copy information from the meta-data input to the dialog fields. */ public void getData() { if ( log.isDebug() ) { logDebug( BaseMessages.getString( PKG, "FlattenerDialog.Log.GettingKeyInfo" ) ); } if ( input.getFieldName() != null ) { wField.setText( input.getFieldName() ); } if ( input.getTargetField() != null ) { for ( int i = 0; i < input.getTargetField().length; i++ ) { TableItem item = wFields.table.getItem( i ); if ( input.getTargetField()[i] != null ) { item.setText( 1, input.getTargetField()[i] ); } } } wFields.setRowNums(); wFields.optWidth( true ); wStepname.selectAll(); wStepname.setFocus(); }
private void getTableName() { DatabaseMeta inf = null; // New class: SelectTableDialog int connr = wConnection.getSelectionIndex(); if ( connr >= 0 ) { inf = transMeta.getDatabase( connr ); } if ( inf != null ) { if ( log.isDebug() ) { logDebug( BaseMessages.getString( PKG, "GPBulkLoaderDialog.Log.LookingAtConnection" ) + inf.toString() ); } DatabaseExplorerDialog std = new DatabaseExplorerDialog( shell, SWT.NONE, inf, transMeta.getDatabases() ); std.setSelectedSchemaAndTable( wSchema.getText(), wTable.getText() ); if ( std.open() ) { wSchema.setText( Const.NVL( std.getSchemaName(), "" ) ); wTable.setText( Const.NVL( std.getTableName(), "" ) ); } } else { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage( BaseMessages.getString( PKG, "GPBulkLoaderDialog.InvalidConnection.DialogMessage" ) ); mb.setText( BaseMessages.getString( PKG, "GPBulkLoaderDialog.InvalidConnection.DialogTitle" ) ); mb.open(); } }
private void getTableName() { // New class: SelectTableDialog int connr = wConnection.getSelectionIndex(); if ( connr >= 0 ) { DatabaseMeta inf = transMeta.getDatabase( connr ); if ( log.isDebug() ) { logDebug( BaseMessages.getString( PKG, "TableOutputDialog.Log.LookingAtConnection", inf.toString() ) ); } DatabaseExplorerDialog std = new DatabaseExplorerDialog( shell, SWT.NONE, inf, transMeta.getDatabases() ); std.setSelectedSchemaAndTable( wSchema.getText(), wTable.getText() ); if ( std.open() ) { wSchema.setText( Const.NVL( std.getSchemaName(), "" ) ); wTable.setText( Const.NVL( std.getTableName(), "" ) ); setTableFieldCombo(); } } else { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage( BaseMessages.getString( PKG, "TableOutputDialog.ConnectionError2.DialogMessage" ) ); mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) ); mb.open(); } }
private void getTableName( TextVar schema, TextVar tableName ) { DatabaseMeta inf = null; // New class: SelectTableDialog int connr = wConnection.getSelectionIndex(); if ( connr >= 0 ) { inf = transMeta.getDatabase( connr ); } if ( inf != null ) { if ( log.isDebug() ) { logDebug( BaseMessages.getString( PKG, "GPLoadDialog.Log.LookingAtConnection" ) + inf.toString() ); } DatabaseExplorerDialog std = new DatabaseExplorerDialog( shell, SWT.NONE, inf, transMeta.getDatabases() ); std.setSelectedSchemaAndTable( wSchema.getText(), wTable.getText() ); if ( std.open() ) { schema.setText( Const.NVL( std.getSchemaName(), "" ) ); tableName.setText( Const.NVL( std.getTableName(), "" ) ); } } else { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage( BaseMessages.getString( PKG, "GPLoadDialog.InvalidConnection.DialogMessage" ) ); mb.setText( BaseMessages.getString( PKG, "GPLoadDialog.InvalidConnection.DialogTitle" ) ); mb.open(); } }
private void getTableName() { DatabaseMeta inf = null; // New class: SelectTableDialog int connr = wConnection.getSelectionIndex(); if ( connr >= 0 ) { inf = transMeta.getDatabase( connr ); } if ( inf != null ) { if ( log.isDebug() ) { logDebug( BaseMessages.getString( PKG, "MySQLBulkLoaderDialog.Log.LookingAtConnection" ) + inf.toString() ); } DatabaseExplorerDialog std = new DatabaseExplorerDialog( shell, SWT.NONE, inf, transMeta.getDatabases() ); std.setSelectedSchemaAndTable( wSchema.getText(), wTable.getText() ); if ( std.open() ) { wSchema.setText( Const.NVL( std.getSchemaName(), "" ) ); wTable.setText( Const.NVL( std.getTableName(), "" ) ); } } else { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage( BaseMessages.getString( PKG, "MySQLBulkLoaderDialog.InvalidConnection.DialogMessage" ) ); mb.setText( BaseMessages.getString( PKG, "MySQLBulkLoaderDialog.InvalidConnection.DialogTitle" ) ); mb.open(); } }
private void getTableName() { DatabaseMeta inf = null; // New class: SelectTableDialog int connr = wConnection.getSelectionIndex(); if ( connr >= 0 ) { inf = transMeta.getDatabase( connr ); } if ( inf != null ) { if ( log.isDebug() ) { logDebug( BaseMessages.getString( PKG, "InsertUpdateDialog.Log.LookingAtConnection" ) + inf.toString() ); } DatabaseExplorerDialog std = new DatabaseExplorerDialog( shell, SWT.NONE, inf, transMeta.getDatabases() ); std.setSelectedSchemaAndTable( wSchema.getText(), wTable.getText() ); if ( std.open() ) { wSchema.setText( Const.NVL( std.getSchemaName(), "" ) ); wTable.setText( Const.NVL( std.getTableName(), "" ) ); setTableFieldCombo(); } } else { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage( BaseMessages.getString( PKG, "InsertUpdateDialog.InvalidConnection.DialogMessage" ) ); mb.setText( BaseMessages.getString( PKG, "InsertUpdateDialog.InvalidConnection.DialogTitle" ) ); mb.open(); } }
private void getTableName() { DatabaseMeta inf = null; // New class: SelectTableDialog int connr = wConnection.getSelectionIndex(); if ( connr >= 0 ) { inf = transMeta.getDatabase( connr ); } if ( inf != null ) { if ( log.isDebug() ) { logDebug( BaseMessages.getString( PKG, "SynchronizeAfterMergeDialog.Log.LookingAtConnection" ) + inf.toString() ); } DatabaseExplorerDialog std = new DatabaseExplorerDialog( shell, SWT.NONE, inf, transMeta.getDatabases() ); std.setSelectedSchemaAndTable( wSchema.getText(), wTable.getText() ); if ( std.open() ) { wSchema.setText( Const.NVL( std.getSchemaName(), "" ) ); wTable.setText( Const.NVL( std.getTableName(), "" ) ); wTable.setFocus(); setTableFieldCombo(); } } else { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage( BaseMessages.getString( PKG, "SynchronizeAfterMergeDialog.InvalidConnection.DialogMessage" ) ); mb.setText( BaseMessages.getString( PKG, "SynchronizeAfterMergeDialog.InvalidConnection.DialogTitle" ) ); mb.open(); } }