Abstract
AppInfo value.
Protected
Readonly
appAppInfo type constructor, to be provided by child classes.
Database header.
Note that appInfoId
and sortInfoId
fields in the header are overwritten
during serialization.
Protected
Abstract
Readonly
recordRecord list constructor, to be provided by child classes.
Record list constructor, to be provided by child classes.
Record values.
Note that entry.localChunkId
is overwritten during serialization.
Protected
Abstract
Readonly
recordRecord type constructor, to be provided by child classes.
SortInfo value.
Protected
Readonly
sortSortInfo type constructor, to be provided by child classes.
Assign properties to this object from a JSON object.
Conceptually equivalent to Object.assign(), but recursively hydrates SObjects / SArrays / SerializableWrappers etc and invokes their assignJSON() to process JSON values. For example:
class A extends SObject {
@field(SUInt8) prop1: number;
}
class B extends SObject {
@field() a = new A();
}
const b1 = new B();
b1.assignJSON({a: {prop1: 300}});
Assign properties to this object from a map of Serializables.
Conceptually equivalent to Object.assign(), but automatically unwraps
wrapped properties. Fields defined with @field()
are directly assigned,
and fields defined with @field(wrapper)
are assigned by unwrapping the
corresponding SerializableWrapper. Unknown fields are considered an error.
Optional
opts: DeserializeOptionsOptional
opts: SerializeOptionsRecompute offsets in the database and record headers.
This will update the following based on the current field values:
header.appInfoId
header.sortInfoId
entry.localChunkId
for each recordOptional
opts: SerializeOptionsOptional
opts: SerializeOptionsMap values of this object to Serializable.
Fields defined with @field()
are preserved as-is, and field defined with
@field(wrapper)
are wrapped in their respective wrapper types.
Static
fromStatic
withStatic
withJSON
Representation of a Palm OS database file.