use of org.jkiss.dbeaver.ext.mysql.tasks.MySQLExportSettings in project dbeaver by dbeaver.
the class MySQLExportWizardPageSettings method saveState.
@Override
public void saveState() {
super.saveState();
MySQLExportSettings settings = wizard.getSettings();
String fileName = outputFolderText.getText();
wizard.getSettings().setOutputFolder(CommonUtils.isEmpty(fileName) ? null : new File(fileName));
settings.setOutputFilePattern(outputFileText.getText());
switch(methodCombo.getSelectionIndex()) {
case 0:
settings.setMethod(MySQLExportSettings.DumpMethod.ONLINE);
break;
case 1:
settings.setMethod(MySQLExportSettings.DumpMethod.LOCK_ALL_TABLES);
break;
default:
settings.setMethod(MySQLExportSettings.DumpMethod.NORMAL);
break;
}
settings.setNoCreateStatements(noCreateStatementsCheck.getSelection());
settings.setAddDropStatements(addDropStatementsCheck.getSelection());
settings.setDisableKeys(disableKeysCheck.getSelection());
settings.setExtendedInserts(extendedInsertsCheck.getSelection());
settings.setDumpEvents(dumpEventsCheck.getSelection());
settings.setComments(commentsCheck.getSelection());
settings.setRemoveDefiner(removeDefiner.getSelection());
settings.setBinariesInHex(binaryInHex.getSelection());
settings.setNoData(noData.getSelection());
}
use of org.jkiss.dbeaver.ext.mysql.tasks.MySQLExportSettings in project dbeaver by serge-rider.
the class MySQLExportWizardPageSettings method saveState.
@Override
public void saveState() {
super.saveState();
MySQLExportSettings settings = wizard.getSettings();
String fileName = outputFolderText.getText();
wizard.getSettings().setOutputFolder(CommonUtils.isEmpty(fileName) ? null : new File(fileName));
settings.setOutputFilePattern(outputFileText.getText());
switch(methodCombo.getSelectionIndex()) {
case 0:
settings.setMethod(MySQLExportSettings.DumpMethod.ONLINE);
break;
case 1:
settings.setMethod(MySQLExportSettings.DumpMethod.LOCK_ALL_TABLES);
break;
default:
settings.setMethod(MySQLExportSettings.DumpMethod.NORMAL);
break;
}
settings.setNoCreateStatements(noCreateStatementsCheck.getSelection());
settings.setAddDropStatements(addDropStatementsCheck.getSelection());
settings.setDisableKeys(disableKeysCheck.getSelection());
settings.setExtendedInserts(extendedInsertsCheck.getSelection());
settings.setDumpEvents(dumpEventsCheck.getSelection());
settings.setComments(commentsCheck.getSelection());
settings.setRemoveDefiner(removeDefiner.getSelection());
settings.setBinariesInHex(binaryInHex.getSelection());
settings.setNoData(noData.getSelection());
}
Aggregations