Class GeodatabaseDeltaInfo

java.lang.Object
com.esri.arcgisruntime.tasks.geodatabase.GeodatabaseDeltaInfo

public final class GeodatabaseDeltaInfo extends Object
Represents the delta files created to synchronize changes to a Geodatabase.

A delta geodatabase is a file that contains the changes that have occurred since a mobile replica Geodatabase was last synchronized with its feature service. See Synchronize Replica for an overview of the delta files used in synchronization. There are two types of delta geodatabase:

  • Local edits, performed on the user's device, are exported as an "upload" delta that is applied to the originating feature service.
  • Online edits, performed by other users are requested as a "download" delta which is then applied to the local replica geodatabase.
Delta geodatabases allow you to troubleshoot sync problems. For example, you can inspect the geodatabase changes or you could send the file to the administrator of the feature service.

To access the GeodatabaseDeltaInfo after a sync has completed, set one of the following properties to true:

Since:
100.10.0
  • Method Details

    • getDownloadDeltaPath

      public String getDownloadDeltaPath()
      Gets the full file path of the downloaded delta file, including the file name and extension.

      This property is the full path to the download delta geodatabase downloaded from the server during a bidirectional or download sync. The file will be saved to the user's temp directory and will be subject to the system's policy for cleanup of temporary files. This property will be null if there were no server changes to download or the sync direction is SyncGeodatabaseParameters.SyncDirection.UPLOAD.

      Returns:
      the full file path of the downloaded delta file, including the file name and extension, or null if none
      Since:
      100.10.0
    • getFeatureServiceUrl

      public String getFeatureServiceUrl()
      Gets the feature service that is used to sync changes to the geodatabase specified by GeodatabaseDeltaInfo.getGeodatabasePath().
      Returns:
      the feature service URL
      Since:
      100.10.0
    • getGeodatabasePath

      public String getGeodatabasePath()
      Gets the file path to the Geodatabase that is used to sync changes, including the file name and extension.

      The path refers to a .geodatabase file that is used to sync changes to the service specified by GeodatabaseDeltaInfo.getFeatureServiceUrl(). Each sync process can create an "upload" delta file (GeodatabaseDeltaInfo.getUploadDeltaPath()) and/or a "download" delta file (GeodatabaseDeltaInfo.getDownloadDeltaPath()).

      Returns:
      the file path to the Geodatabase that is used to sync changes, including the file name and extension
      Since:
      100.10.0
    • getUploadDeltaPath

      public String getUploadDeltaPath()
      Gets the full file path of the generated upload delta file, including the file name and extension.

      This property is the full path to the upload delta geodatabase created from the local Geodatabase during a bidirectional or upload sync. The file will be saved to the user's temp directory and will be subject to the system's policy for cleanup of temporary files. This property will be null if there were no changes to upload or the sync direction is SyncGeodatabaseParameters.SyncDirection.DOWNLOAD only.

      Returns:
      the full file path of the generated upload delta file, including the file name and extension, or null if none
      Since:
      100.10.0