ServiceGeodatabase class final
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.
- Implemented types
- Mixed in types
Constructors
- ServiceGeodatabase.withPortalItem(PortalItem portalItem, {String versionName = '', FeatureServiceSessionType sessionType = FeatureServiceSessionType.transient})
-
Creates a new ServiceGeodatabase from a feature service portal item, and
connects to a specific version in the feature service.
factory
- ServiceGeodatabase.withUri(Uri uri, {String versionName = '', FeatureServiceSessionType sessionType = FeatureServiceSessionType.transient})
-
Creates a new ServiceGeodatabase connected to a specific version in a
feature service.
factory
Properties
-
connectedTables
→ List<
ServiceFeatureTable> -
The collection of feature tables managed by the ServiceGeodatabase.
no setter
- defaultVersionName → String
-
The name of the default version.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- loadError → ArcGISException?
-
The load error.
no setterinherited
- loadStatus → LoadStatus
-
The load status.
no setterinherited
-
onLoadStatusChanged
→ Stream<
LoadStatus> -
A stream that reports changes to the
LoadStatus
.no setterinherited - portalItem → PortalItem?
-
The PortalItem which the ServiceGeodatabase was created from.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serviceInfo → ArcGISFeatureServiceInfo?
-
The metadata of the service this object is connected to.
no setter
- sessionType ↔ FeatureServiceSessionType
-
The type of read and edit sessions to use when working with the service.
getter/setter pair
- supportsBranchVersioning → bool
-
Whether the service supports branch versioning.
no setter
- uri → Uri?
-
The URL of the feature service or the portal item to connect to.
no setter
- versionName → String
-
The name of the version the ServiceGeodatabase is currently connected
to.
no setter
Methods
-
applyEdits(
) → Future< List< FeatureTableEditResult> > - Applies all local edits in all tables to the service.
-
cancelLoad(
) → void -
Cancels loading metadata for the object.
inherited
-
close(
) → Future< void> - Closes this service geodatabase.
-
createVersion(
{required ServiceVersionParameters newVersion}) → Future< ServiceVersionInfo> - Creates a new version in the service based on the default version.
-
fetchVersions(
) → Future< List< ServiceVersionInfo> > - Gets a list of all versions on the service.
-
getTable(
{required int layerId}) → ServiceFeatureTable? - Returns a service feature table object from the ID of a layer or table in the service.
-
hasLocalEdits(
) → bool - Determines if any of the tables in the ServiceGeodatabase have unapplied edits.
-
load(
) → Future< void> -
Loads the metadata for the object asynchronously.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
retryLoad(
) → Future< void> -
Loads or retries loading metadata for the object asynchronously.
inherited
-
switchVersion(
{required String versionName}) → Future< void> - Switches all connected feature tables to the new version.
-
toString(
) → String -
A string representation of this object.
inherited
-
undoLocalEdits(
) → Future< void> - Undos all of the local edits in all the tables.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited