Class ArchiveExportSpec

    • Constructor Detail

      • ArchiveExportSpec

        public ArchiveExportSpec()
    • Method Detail

      • addInstance

        public void addInstance​(AdaptationName aDataSetName,
                                boolean exportAllDescendants)
        Adds a dataset to export.
        Parameters:
        aDataSetName - reference of the dataset to export.
        exportAllDescendants - indicates whether the dataset's descendants are also to be exported.
      • addInstance

        public void addInstance​(AdaptationName aDataSetName,
                                InstanceContentSpec aHeader)
        Adds a dataset to export.
        Parameters:
        aDataSetName - reference of the dataset to export.
        aHeader - the header describing the behavior of this ArchiveExportSpec.
      • getArchive

        public Archive getArchive()
        Returns the target container for the export.
      • setArchive

        public void setArchive​(Archive archive)
        Specifies the target container for the export.
      • getDifferencesBetweenHomes

        public DifferenceBetweenHomes getDifferencesBetweenHomes()
        Returns the change set to include in the archive.
      • setDifferencesBetweenHomes

        public void setDifferencesBetweenHomes​(DifferenceBetweenHomes differencesBetweenHomes)
        Specifies the change set to include in the archive.
        Throws:
        IllegalArgumentException - if differencesBetweenHomes is empty.
      • setDifferencesWithMinimalContentsOnRight

        public void setDifferencesWithMinimalContentsOnRight​(boolean minimal)
        Specifies whether the change set's right-side content is minimal in the archive. More precisely, if minimal is true, then when a table or a dataset has no differences, it is not exported. For large repositories with a relatively limited number of changes, this allows much better export performance and smaller archives.

        If set to false (default), all the content on the right is included in the archive. This option is more costly, however the archive contains more information that can be imported into another repository whose life cycle does not require it to be in phase with the repository exporting the data.

        This method has no effect if no change set is specified (that is, if method setDifferencesBetweenHomes is not called).