Record Storage
public abstract class RecordStorage<I> extends AbstractStorage<I, M, R> implements StorageWithLifecycleFlags<I, M, R>, BulkStorageOperationsMixin<I, R>
A storage keeping messages with identity.
Parameters
<I>
the type of entity IDs
Inheritors
Constructors
Link copied to clipboard
protected void RecordStorage(Class<? extends Entity<? extends Object, ? extends Object>> entityClass, boolean multitenant)
Creates an instance of
RecordStorage
.Functions
Link copied to clipboard
Obtains a list of columns of the managed Entity.
Link copied to clipboard
Returns a
Map
of columns corresponded to the lifecycle storage fields of the Entity class managed by this storage.Link copied to clipboard
Reads all active items from the storage and apply FieldMask to each of the results.
Reads all the records matching the given EntityQuery and applies the given FieldMask to the resulting record states.
Link copied to clipboard
Obtains an iterator for reading all records.
protected abstract Iterator<EntityRecord> readAllRecords(EntityQuery<I> query, ResponseFormat format)
Obtains an iterator for reading records matching the query, and applying the passed field mask to the results.
Link copied to clipboard
Reads the lifecycle status for the entity with the passed ID.
Link copied to clipboard
Reads multiple active items from the storage and applies FieldMask to the results.
Link copied to clipboard
Obtains an iterator for reading multiple records by IDs, and applying the passed field mask to the results.
Link copied to clipboard
Reads a record from the storage by the passed ID.
Link copied to clipboard
Writes a bulk of records into the storage.
Writes a record into the storage.
Writes a record and its columns into the storage.
Link copied to clipboard
Writes the lifecycle status for the entity with the passed ID.
Link copied to clipboard
Writes a record and the associated column values into the storage.
Link copied to clipboard
Writes a bulk of records into the storage.