AGConnectCloudDBZone class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
executeAverageQuery({required String field, required AGConnectCloudDBQuery query, required AGConnectCloudDBZoneQueryPolicy policy})
→ Future<num?>
-
You can invoke this method to query Cloud DB zone object data that
meets specified conditions and return the average value of specified fields.
-
executeCountQuery({required String field, required AGConnectCloudDBQuery query, required AGConnectCloudDBZoneQueryPolicy policy})
→ Future<int>
-
You can call this method to search for Cloud DB zone objects that meet
specified conditions and return the number of data records in a specified field.
During statistics collection, if the value of this field is not empty, count 1. Otherwise, count 0.
-
executeDelete({required String objectTypeName, required List<Map<String, dynamic>> entries})
→ Future<int>
-
You can call this method to delete a group of Cloud DB zone objects
whose primary key values are the same as those of the input object list in batches.
The delete operation focuses only on whether the primary key of the object is consistent,
regardless of whether other attributes of the object match the stored data.
The delete operation is atomic. That is, the input object list is
either all deleted successfully or all fails to be deleted.
-
executeMaximumQuery({required String field, required AGConnectCloudDBQuery query, required AGConnectCloudDBZoneQueryPolicy policy})
→ Future<num?>
-
You can call this method to search for Cloud DB zone objects that meet
the specified conditions and return the maximum value of the data record of the specified fields.
-
executeMinimalQuery({required String field, required AGConnectCloudDBQuery query, required AGConnectCloudDBZoneQueryPolicy policy})
→ Future<num?>
-
You can call this method to search for Cloud DB zone objects that meet
the specified conditions and return the minimum value of the data record of the specified fields.
-
executeQuery({required AGConnectCloudDBQuery query, required AGConnectCloudDBZoneQueryPolicy policy})
→ Future<AGConnectCloudDBZoneSnapshot>
-
You can invoke this method to query object data that meets
specific conditions from the Cloud DB zone.
-
executeQueryUnsynced({required AGConnectCloudDBQuery query})
→ Future<AGConnectCloudDBZoneSnapshot>
-
You can call this method to query all Cloud DB objects that meet
specified conditions but has not been synchronized to the cloud.
The query result set contains the objects that are added or modified locally,
but does not contain the deleted objects.
-
executeServerStatusQuery()
→ Future<AGCServerStatus>
-
Queries the current server status from Cloud DB zone, and encapsulates the queried server status into a ServerStatus object.
Currently, the ServerStatus object contains the server timestamp.
-
executeSumQuery({required String field, required AGConnectCloudDBQuery query, required AGConnectCloudDBZoneQueryPolicy policy})
→ Future<num?>
-
You can call this method to search for Cloud DB zone objects that meet
the specified conditions and return the sum of the data record values of the designated fields.
-
executeUpsert({required String objectTypeName, required List<Map<String, dynamic>> entries})
→ Future<int>
-
You can invoke this method to write a group of objects to the current Cloud DB zone in batches.
The write operation is atomic. That is, the input objects are either
all successfully written or all fail to be written.
If an object with the same primary key exists in the Cloud DB zone,
the existing object data will be updated. Otherwise, a new object is written.
-
getCloudDBZoneConfig()
→ Future<AGConnectCloudDBZoneConfig>
-
You can invoke this method to obtain the current Cloud DB zone configuration information,
including the Cloud DB zone name, synchronization attributes, and access attributes.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
runTransaction({required AGConnectCloudDBTransaction transaction})
→ Future<void>
-
This method is called to perform a specified transaction operation.
-
subscribeSnapshot({required AGConnectCloudDBQuery query, required AGConnectCloudDBZoneQueryPolicy policy})
→ Future<Stream<AGConnectCloudDBZoneSnapshot?>>
-
You can call this method to register a listener for a specified object.
-
toString()
→ String
-
A string representation of this object.
inherited