Package com.esri.arcgisruntime.data
Class EditResult
- java.lang.Object
-
- com.esri.arcgisruntime.data.EditResult
-
- Direct Known Subclasses:
FeatureEditResult
public class EditResult extends Object
Represents the result of an attempt to push an update to a service, such as after applying edits to a service by callingServiceFeatureTable.applyEditsAsync()
or syncing results for a table in a geodatabase from aSyncGeodatabaseJob
.You need to pass this object to all edit result methods.
- Since:
- 100.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EditResult.EditOperation
Represents the different types of edit operations onServiceFeatureTable
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EditResult.EditOperation
getEditOperation()
Returns the type of edit operation.ArcGISRuntimeException
getError()
Gets the error if the operation failed.String
getGlobalId()
Gets the globalId of the Feature.long
getObjectId()
Gets the ObjectId of the Feature.boolean
hasCompletedWithErrors()
Returns true if there are any errors associated with the edit operation, including its attachments.
-
-
-
Method Detail
-
hasCompletedWithErrors
public boolean hasCompletedWithErrors()
Returns true if there are any errors associated with the edit operation, including its attachments.- Returns:
- true if there are errors, otherwise false
- Since:
- 100.0.0
-
getObjectId
public long getObjectId()
Gets the ObjectId of the Feature.- Returns:
- the ObjectId of the feature
- Since:
- 100.0.0
-
getGlobalId
public String getGlobalId()
Gets the globalId of the Feature.- Returns:
- the globalId of the feature
- Since:
- 100.0.0
-
getError
public ArcGISRuntimeException getError()
Gets the error if the operation failed. This could be for the feature or its attachments.- Returns:
- an ArcGISRuntimeException representing the error that occurred when applying a feature or attachment edit
- Since:
- 100.0.0
-
getEditOperation
public EditResult.EditOperation getEditOperation()
Returns the type of edit operation.- Returns:
- the type of the edit operation
- Since:
- 100.0.0
-
-