Class PostgresDataStorage<R extends io.github.factoryfx.factory.FactoryBase<?,R>>
- java.lang.Object
-
- io.github.factoryfx.factory.datastorage.postgres.PostgresDataStorage<R>
-
- All Implemented Interfaces:
io.github.factoryfx.factory.storage.DataStorage<R>
public class PostgresDataStorage<R extends io.github.factoryfx.factory.FactoryBase<?,R>> extends java.lang.Object implements io.github.factoryfx.factory.storage.DataStorage<R>
-
-
Constructor Summary
Constructors Constructor Description PostgresDataStorage(javax.sql.DataSource dataSource, R initialDataParam, io.github.factoryfx.factory.storage.migration.MigrationManager<R> migrationManager, io.github.factoryfx.factory.jackson.SimpleObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFutureData(io.github.factoryfx.factory.storage.ScheduledUpdate<R> futureFactory)voiddeleteFutureData(java.lang.String id)io.github.factoryfx.factory.storage.DataAndId<R>getCurrentData()RgetFutureData(java.lang.String id)java.util.Collection<io.github.factoryfx.factory.storage.ScheduledUpdateMetadata>getFutureDataList()RgetHistoryData(java.lang.String id)java.util.Collection<io.github.factoryfx.factory.storage.StoredDataMetadata>getHistoryDataList()voidpatchAll(io.github.factoryfx.factory.storage.DataStoragePatcher consumer)voidpatchCurrentData(io.github.factoryfx.factory.storage.DataStoragePatcher consumer)voidupdateCurrentData(io.github.factoryfx.factory.storage.DataUpdate<R> update, io.github.factoryfx.factory.storage.UpdateSummary changeSummary)
-
-
-
Method Detail
-
getHistoryData
public R getHistoryData(java.lang.String id)
-
getHistoryDataList
public java.util.Collection<io.github.factoryfx.factory.storage.StoredDataMetadata> getHistoryDataList()
-
getCurrentData
public io.github.factoryfx.factory.storage.DataAndId<R> getCurrentData()
-
updateCurrentData
public void updateCurrentData(io.github.factoryfx.factory.storage.DataUpdate<R> update, io.github.factoryfx.factory.storage.UpdateSummary changeSummary)
-
patchAll
public void patchAll(io.github.factoryfx.factory.storage.DataStoragePatcher consumer)
-
patchCurrentData
public void patchCurrentData(io.github.factoryfx.factory.storage.DataStoragePatcher consumer)
-
getFutureDataList
public java.util.Collection<io.github.factoryfx.factory.storage.ScheduledUpdateMetadata> getFutureDataList()
-
deleteFutureData
public void deleteFutureData(java.lang.String id)
-
getFutureData
public R getFutureData(java.lang.String id)
-
-