Interface PersistenceSchemaStorage
- All Known Implementing Classes:
MongoSchemaStorage
,PersistenceSchemaStorageDelegate
public interface PersistenceSchemaStorage
-
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
-
Method Details
-
getSchemaMetadata
- Throws:
PersistenceException
-
increaseSchemaVersion
- Throws:
PersistenceException
-
getMigrator
PersistenceSchemaStorageMigrator getMigrator() -
logMigrationRun
-
save
- Throws:
PersistenceException
-
find
- Throws:
PersistenceException
-
findFiltered
<K> name.falgout.jeffrey.throwing.stream.ThrowingStream<Entity<K>,PersistenceException> findFiltered(EntityType type, Set<? extends PropertyFilter> propertyFilters) -
findIDsFiltered
<K> name.falgout.jeffrey.throwing.stream.ThrowingStream<K,PersistenceException> findIDsFiltered(EntityType type, Set<? extends PropertyFilter> propertyFilters) -
remove
- Throws:
PersistenceException
-
findAll
<K> name.falgout.jeffrey.throwing.stream.ThrowingStream<Entity<K>,PersistenceException> findAll(EntityType type) throws PersistenceException - Throws:
PersistenceException
-
findAllIDs
<K> name.falgout.jeffrey.throwing.stream.ThrowingStream<K,PersistenceException> findAllIDs(EntityType type) throws PersistenceException - Throws:
PersistenceException
-