Search in sources :

Example 1 with PostgreDatabaseBackupSettings

use of org.jkiss.dbeaver.ext.postgresql.tasks.PostgreDatabaseBackupSettings in project dbeaver by dbeaver.

the class PostgreBackupWizardPageSettings method saveState.

@Override
public void saveState() {
    super.saveState();
    PostgreDatabaseBackupSettings settings = wizard.getSettings();
    String fileName = outputFolderText.getText();
    settings.setOutputFolder(CommonUtils.isEmpty(fileName) ? null : new File(fileName));
    settings.setOutputFilePattern(outputFileText.getText());
    settings.setFormat(PostgreDatabaseBackupSettings.ExportFormat.values()[formatCombo.getSelectionIndex()]);
    settings.setCompression(compressCombo.getText());
    settings.setEncoding(encodingCombo.getText());
    settings.setUseInserts(useInsertsCheck.getSelection());
    settings.setNoPrivileges(noPrivilegesCheck.getSelection());
    settings.setNoOwner(noOwnerCheck.getSelection());
}
Also used : PostgreDatabaseBackupSettings(org.jkiss.dbeaver.ext.postgresql.tasks.PostgreDatabaseBackupSettings) File(java.io.File)

Example 2 with PostgreDatabaseBackupSettings

use of org.jkiss.dbeaver.ext.postgresql.tasks.PostgreDatabaseBackupSettings in project dbeaver by serge-rider.

the class PostgreBackupWizardPageSettings method saveState.

@Override
public void saveState() {
    super.saveState();
    PostgreDatabaseBackupSettings settings = wizard.getSettings();
    String fileName = outputFolderText.getText();
    settings.setOutputFolder(CommonUtils.isEmpty(fileName) ? null : new File(fileName));
    settings.setOutputFilePattern(outputFileText.getText());
    settings.setFormat(PostgreDatabaseBackupSettings.ExportFormat.values()[formatCombo.getSelectionIndex()]);
    settings.setCompression(compressCombo.getText());
    settings.setEncoding(encodingCombo.getText());
    settings.setUseInserts(useInsertsCheck.getSelection());
    settings.setNoPrivileges(noPrivilegesCheck.getSelection());
    settings.setNoOwner(noOwnerCheck.getSelection());
}
Also used : PostgreDatabaseBackupSettings(org.jkiss.dbeaver.ext.postgresql.tasks.PostgreDatabaseBackupSettings) File(java.io.File)

Aggregations

File (java.io.File)2 PostgreDatabaseBackupSettings (org.jkiss.dbeaver.ext.postgresql.tasks.PostgreDatabaseBackupSettings)2