AGConnectCloudDBTransaction class
Transaction class describes a transaction. The transaction provides executeUpsert(), and executeDelete() methods to add, delete, and modify, data in the Cloud DB zone on the cloud.
- A transaction is performed only when the network is connected.
- Multiple data operations can be performed in a transaction.
- The written and deleted object records contained in a transaction must be less than or equal to 1000. The data size of multiple write and delete operations in a transaction must be less than or equal to 2 MB.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
transactionElements
→ List<
Map< String, dynamic> > -
no setter
Methods
-
executeDelete(
{required String objectTypeName, required List< Map< entries}) → voidString, dynamic> > - This method is called to delete a group of objects from a Cloud DB zone on the cloud in a transaction in batches. A transaction is atomic. All operations in a transaction will either be successful or fail. 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.
-
executeUpsert(
{required String objectTypeName, required List< Map< entries}) → voidString, dynamic> > - This method is used to write a group of objects in a transaction to the Cloud DB zone on the cloud in batches. A transaction is atomic. All operations in a transaction will either be successful or fail.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited