A container for a collection of ServiceFeatureTable connected to a feature service. A ServiceGeodatabase connects to a feature service as a whole, grouping together ServiceFeatureTable instances for related records queries, connecting to a version in a branch-versioned service, and managing edits for all tables.
Creates a new ServiceGeodatabase from a feature service portal item, and connects to a specific version in the feature service. If a version with the name does not exist, or the service is not branch versioned, the ServiceGeodatabase will fail to load.
Creates a new ServiceGeodatabase connected to a specific version in a feature service. If a version with the name does not exist, or the service is not branch versioned, the ServiceGeodatabase will fail to load.
Applies all local edits in all tables to the service. Edits in all tables are applied to the feature service in a call, which is more efficient than doing so one ServiceFeatureTable at a time.
Cancels loading metadata for the Loadable object.
Creates a new version in the service based on the default version. Branch versioning requires that the default version always be the ancestor of all other versions.
Gets a list of all versions on the service. If the service isn't branch versioned, an ErrorType.MappingBranchVersioningNotSupportedByService is thrown.
Returns a service feature table object from the ID of a layer or table in the service. If a table instance for the layer already exists in ServiceGeodatabase.getConnectedTables(), the existing object will be returned. Otherwise, a new ServiceFeatureTable will be created.
Determines if any of the tables in the ServiceGeodatabase have unapplied edits.
Switches all connected feature tables to the new version. An error is thrown if:
Undos all of the local edits in all the tables.
The type of read and edit sessions to use when working with the service. The default value is FeatureServiceSessionType.Transient.
The URL of the feature service or the portal item to connect to. Use ArcGISFeatureServiceInfo.getUrl() to get the feature service URL.
The name of the version the ServiceGeodatabase is currently connected to. To change the version this ServiceGeodatabase is connected to, use the ServiceGeodatabase.switchVersion(String) method.