Class PersistenceSchemaStorageDelegate
java.lang.Object
cloud.quinimbus.persistence.common.storage.PersistenceSchemaStorageDelegate
- All Implemented Interfaces:
PersistenceSchemaStorage
public abstract class PersistenceSchemaStorageDelegate
extends Object
implements PersistenceSchemaStorage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfind
(EntityType type, K id) <K> name.falgout.jeffrey.throwing.stream.ThrowingStream
<Entity<K>, PersistenceException> findAll
(EntityType type) <K> name.falgout.jeffrey.throwing.stream.ThrowingStream
<K, PersistenceException> findAllIDs
(EntityType type) <K> name.falgout.jeffrey.throwing.stream.ThrowingStream
<Entity<K>, PersistenceException> findFiltered
(EntityType type, Set<? extends PropertyFilter> propertyFilters) <K> name.falgout.jeffrey.throwing.stream.ThrowingStream
<K, PersistenceException> findIDsFiltered
(EntityType type, Set<? extends PropertyFilter> propertyFilters) void
increaseSchemaVersion
(Long version) void
logMigrationRun
(String identifier, String entityType, Long schemaVersion, Instant runAt) <K> void
remove
(EntityType type, K id) <K> void
-
Constructor Details
-
PersistenceSchemaStorageDelegate
-
-
Method Details
-
getSchemaMetadata
- Specified by:
getSchemaMetadata
in interfacePersistenceSchemaStorage
- Throws:
PersistenceException
-
increaseSchemaVersion
- Specified by:
increaseSchemaVersion
in interfacePersistenceSchemaStorage
- Throws:
PersistenceException
-
getMigrator
- Specified by:
getMigrator
in interfacePersistenceSchemaStorage
-
logMigrationRun
public void logMigrationRun(String identifier, String entityType, Long schemaVersion, Instant runAt) - Specified by:
logMigrationRun
in interfacePersistenceSchemaStorage
-
save
- Specified by:
save
in interfacePersistenceSchemaStorage
- Throws:
PersistenceException
-
find
- Specified by:
find
in interfacePersistenceSchemaStorage
- Throws:
PersistenceException
-
findFiltered
public <K> name.falgout.jeffrey.throwing.stream.ThrowingStream<Entity<K>,PersistenceException> findFiltered(EntityType type, Set<? extends PropertyFilter> propertyFilters) - Specified by:
findFiltered
in interfacePersistenceSchemaStorage
-
findIDsFiltered
public <K> name.falgout.jeffrey.throwing.stream.ThrowingStream<K,PersistenceException> findIDsFiltered(EntityType type, Set<? extends PropertyFilter> propertyFilters) - Specified by:
findIDsFiltered
in interfacePersistenceSchemaStorage
-
remove
- Specified by:
remove
in interfacePersistenceSchemaStorage
- Throws:
PersistenceException
-
findAll
public <K> name.falgout.jeffrey.throwing.stream.ThrowingStream<Entity<K>,PersistenceException> findAll(EntityType type) throws PersistenceException - Specified by:
findAll
in interfacePersistenceSchemaStorage
- Throws:
PersistenceException
-
findAllIDs
public <K> name.falgout.jeffrey.throwing.stream.ThrowingStream<K,PersistenceException> findAllIDs(EntityType type) throws PersistenceException - Specified by:
findAllIDs
in interfacePersistenceSchemaStorage
- Throws:
PersistenceException
-