Class OperationConfig

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    BackupConfig

    public abstract class OperationConfig
    extends java.lang.Object
    implements java.io.Serializable
    Common settings for both backup and restore.
    Since:
    8.1
    Author:
    Leonid Bushuev from JetBrains
    See Also:
    Serialized Form
    • Field Detail

      • myIncludeDatabase

        protected boolean myIncludeDatabase
      • myIncludeConfiguration

        protected boolean myIncludeConfiguration
      • myIncludeSupplementaryData

        protected boolean myIncludeSupplementaryData
      • myIncludeBuildLogs

        protected boolean myIncludeBuildLogs
      • myIncludePersonalChanges

        protected boolean myIncludePersonalChanges
    • Constructor Detail

      • OperationConfig

        public OperationConfig()
    • Method Detail

      • getFileName

        public abstract java.lang.String getFileName()
        The backup file name (defined by user).
        Returns:
        file name.
      • getResultFileName

        public abstract java.lang.String getResultFileName()
        The backup file name (after preprocessing).
        Returns:
        file name (absolute).
      • isIncludeDatabase

        public boolean isIncludeDatabase()
        Determines whether the database is included to backup/restore.
        Returns:
        the database is included.
      • setIncludeDatabase

        public void setIncludeDatabase​(boolean includeDatabase)
        Specifies whether to backup/restore the database.
      • isIncludeConfiguration

        public boolean isIncludeConfiguration()
        Determines whether the server configuration is included to backup/restore.
        Returns:
        the server configuration is included.
      • setIncludeConfiguration

        public void setIncludeConfiguration​(boolean includeConfiguration)
        Specifies whether to backup/restore server configuration.
      • isIncludeSupplementaryData

        public boolean isIncludeSupplementaryData()
        Determines whether the supplementary data (plugins' data) is included to backup/restore.
        Returns:
        the supplementary data (plugins' data) is included.
        Since:
        8.1
      • setIncludeSupplementaryData

        public void setIncludeSupplementaryData​(boolean includeSupplementaryData)
        Specifies whether to backup/restore the supplementary data (plugins' data).
        Since:
        8.1
      • isIncludeBuildLogs

        public boolean isIncludeBuildLogs()
        Determines whether build logs are included to backup/restore.
        Returns:
        build logs are included.
      • setIncludeBuildLogs

        public void setIncludeBuildLogs​(boolean includeBuildLogs)
        Specifies whether to backup/restore build logs.
      • isIncludePersonalChanges

        public boolean isIncludePersonalChanges()
        Determines whether personal changes are included to backup/restore.
        Returns:
        personal changes are included.
      • setIncludePersonalChanges

        public void setIncludePersonalChanges​(boolean includePersonalChanges)
        Specifies whether to backup/restore personal changes.
      • getOnlyTableNames

        @Nullable
        public java.util.Set<java.lang.String> getOnlyTableNames()
      • setOnlyTableNames

        public void setOnlyTableNames​(@Nullable
                                      java.lang.String onlyTableNames)
      • setOnlyTableNames

        public void setOnlyTableNames​(@Nullable
                                      java.util.Set<java.lang.String> onlyTableNames)
      • getSkipTableNames

        @Nullable
        public java.util.Set<java.lang.String> getSkipTableNames()
      • setSkipTableNames

        public void setSkipTableNames​(@Nullable
                                      java.lang.String skipTableNames)
      • setSkipTableNames

        public void setSkipTableNames​(@Nullable
                                      java.util.Set<java.lang.String> skipTableNames)
      • isSkipCreateIndices

        public boolean isSkipCreateIndices()
      • setSkipCreateIndices

        public void setSkipCreateIndices​(boolean skipCreateIndices)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object