TTMSFNCCustomCloudGoogleFireBaseObjectDatabase Class
Provides an object-oriented layer over a cloud realtime database that stores, retrieves, queries, and deletes typed TTMSFNCCloudGoogleFireBaseObject records. Objects are serialized to the database and reconstructed into their original type when read back.
API unit family: TMSFNCCloudGoogleFireBaseObject
Inherits from: TTMSFNCCustomCloudGoogleFireBase
Syntax
TTMSFNCCustomCloudGoogleFireBaseObjectDatabase = class(TTMSFNCCustomCloudGoogleFireBase)
Remarks
This is the non-published base class. Use the published descendant for design-time use. Single-object operations work on one record at a time, while the list operations process whole collections; the query operations filter records by a property value or value range.
Methods
| Name | Description |
|---|---|
| DeleteList | Deletes every record that matches an object in the list. |
| DeleteObject | Deletes the record identified by the given key. |
| InsertList | Inserts every object in the list as a new record, generating identifiers for items that do not yet have one. |
| InsertObject | Inserts a new object as a record in the database. When the object has no identifier, a unique one is generated before insertion. |
| QueryList | Queries records whose named property equals the given string value. |
| ReadList | Reads all records from the database. The parsed result is delivered through the read-data-list event. |
| ReadObject | Reads a single record by identifier. The result is delivered asynchronously through the read-data callbacks. |
| WriteList | Writes every object in the list to the database. |
| WriteObject | Writes an object to the database, updating the existing record that matches its identifier. |