ProtectedconstructorConstructor is protected, use factory() instead
object of parameters
Protected_Has data been modified since last backend operation?
Protected_Protected_Protected_Protected_Protected_Protected_Protected_Retrieves the specific backend alias bound to this object's URI.
The string alias of the backend adapter (e.g., 'default', 'firestore').
Protected_Protected_Appends a new property definition instance to the registry dynamically.
The instantiated Property element.
Returns a completely duplicated payload and registry.
Optional data overrides.
The cloned DataObject.
Requests the backend adapter to delete the object from persistence.
The 'hardDelete' behavior is usually controlled by the parent PersistedBaseObject.
A promise resolving upon successful deletion.
Returns property matching key or throw
string
BaseProperty
Return a map of all propoerties or only those matching the provided type
Optionaltype: stringChecks whether a specific property exists in the data object's definition.
The property name to verify.
True if the property is defined, false otherwise.
Checks or updates the persisted state of the DataObject.
If true, flags the object as fully saved and resets property modification trackers.
True if the object was explicitly persisted.
State check indicating if the object is fully populated.
true if populated.
Populates the internal properties with given data or triggers a backend fetch if the object possesses a path but hasn't been loaded yet.
Optional predefined data dictionary to hydrate immediately.
A promise resolving to the hydrated data object.
Forces a read operation from the configured backend adapter using the current URI path, populating internal properties with the retrieved database values.
A promise resolving to the populated data object.
Populate data object from instant data or backend query
Instructs the global backend adapter to read and return the raw data object state.
A promise resolving to the fetched DataObjectClass.
Pushes the current object state to the backend adapter. Determines automatically whether an 'update' or 'create' operation is needed based on the UID.
A promise resolving to the updated DataObjectClass.
Modifies a property value directly.
The property name.
The desired value.
The updated DataObject for chaining.
Forces a completely new set of properties into the registry.
The dictionary of PropertyClassType entities.
Serializes the data object using advanced configuration params.
Serialization settings (e.g. resolve references, remove nulls).
The raw serialized dictionary.
Flattens the object to a standard ObjectUri wrapper reference format.
Reference object format.
Get value of given property
string
any
StaticfactoryData object must be created from factory in order for async-loaded data to be available
DataObject
Data objects constitute the agnostic glue between objects and backends. They handle data and identifiers in a protected registry. This is what backends and objects manipulate, oblivious of the other. It manages the actual "dirty" state, paths, and values mapped from the database.