Class SyncGeodatabaseParameters

    • Constructor Detail

      • SyncGeodatabaseParameters

        public SyncGeodatabaseParameters()
        Constructs a new SyncGeodatabaseParameters instance. Use this constructor if you are setting all of its properties yourself. Consider using the convenience method GeodatabaseSyncTask.createDefaultSyncGeodatabaseParametersAsync(Geodatabase) rather than this constructor to get an initialized instance of this class with properties already set which take into account the capabilities supported by the ArcGIS feature service.
        Since:
        100.0.0
    • Method Detail

      • getLayerOptions

        public List<SyncLayerOption> getLayerOptions()
        Gets a mutable list of SyncLayerOption objects which specify how to synchronize features on a layer-by-layer basis. If not previously set, this method will return an empty list to which you can add SyncLayerOption objects.

        Note, these layer options are only applicable to geodatabases using the sync model of SyncModel.PER_LAYER.

        Returns:
        the list of SyncLayerOption objects
        Since:
        100.0.0
      • isRollbackOnFailure

        public boolean isRollbackOnFailure()
        Gets the value of the rollbackOnFailure flag. This determines the behavior when there are failures while importing edits on the server during synchronization. It only applies in cases where clients are uploading edits to the server.
        Returns:
        true if all edits are rolled back (not applied) if a failure occurs while importing edits on the server; false if failed edits are skipped and other edits still applied
        Since:
        100.0.0
      • setRollbackOnFailure

        public void setRollbackOnFailure​(boolean rollbackOnFailure)
        Sets the value of the rollbackOnFailure flag. This determines the behavior when there are failures while importing edits on the server during synchronization. It only applies in cases where clients are uploading edits to the server. The default value is false.
        Parameters:
        rollbackOnFailure - true if all edits are rolled back (not applied) if a failure occurs while importing edits on the server; false if failed edits are skipped and other edits still applied
        Since:
        100.0.0