Package sonia.scm.store
Interface QueryableMaintenanceStore<T>
- Type Parameters:
T
- The entity type of the store.
public interface QueryableMaintenanceStore<T>
This store should be used only in update steps or other maintenance tasks like deleting all entries for a deleted
parent entity.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Iterator for existing entries in the store.static interface
Maintenance helper for a concrete entry in the store.static class
static class
static class
-
Method Summary
-
Method Details
-
readAll
Collection<QueryableMaintenanceStore.Row<T>> readAll() throws QueryableMaintenanceStore.SerializationException -
readAllAs
<U> Collection<QueryableMaintenanceStore.Row<U>> readAllAs(Class<U> type) throws QueryableMaintenanceStore.SerializationException -
readRaw
Collection<QueryableMaintenanceStore.RawRow> readRaw() -
writeAll
default void writeAll(Iterable<QueryableMaintenanceStore.Row> rows) throws QueryableMaintenanceStore.SerializationException -
writeAll
void writeAll(Stream<QueryableMaintenanceStore.Row> rows) throws QueryableMaintenanceStore.SerializationException -
writeRaw
-
writeRaw
-
clear
void clear()Deletes all entries from the store. If the store has been created limited to a concrete parent or a subset of parents, only the entries for this parent(s) will be deleted. -
iterateAll
QueryableMaintenanceStore.MaintenanceIterator<T> iterateAll()Returns an iterator to iterate over all entries in the store. If the store has been created limited to a concrete parent or a subset of parents, only the entries for this parent(s) will be returned. The iterated values offer additional methods to update or delete entries.
The iterator must be closed after usage. Otherwise, updates may not be persisted.
-