- java.lang.Object
-
- swim.store.StorageProxy
-
- swim.store.db.DbStorage
-
- All Implemented Interfaces:
Storage
,StorageLinker
,StorageBinding
,StorageContext
public class DbStorage extends StorageProxy implements StorageLinker
-
-
Field Summary
Fields Modifier and Type Field Description protected Store
store
-
Fields inherited from class swim.store.StorageProxy
storageContext
-
-
Constructor Summary
Constructors Constructor Description DbStorage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StoreBinding
createStore()
StorageLinker
materialize(StoreDef storeDef)
double
storagePriority()
Returns the relative priority of thisStorage
implementation.-
Methods inherited from class swim.store.StorageProxy
injectStorage, setStorageContext, storageContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface swim.api.storage.Storage
injectStorage
-
-
-
-
Field Detail
-
store
protected Store store
-
-
Method Detail
-
storagePriority
public double storagePriority()
Description copied from interface:Storage
Returns the relative priority of thisStorage
implementation. Storage implementations with greater priority inject into storage stacks before implementations with lower priority.- Specified by:
storagePriority
in interfaceStorage
- Specified by:
storagePriority
in classStorageProxy
-
createStore
public StoreBinding createStore()
- Specified by:
createStore
in interfaceStorageContext
- Overrides:
createStore
in classStorageProxy
-
materialize
public StorageLinker materialize(StoreDef storeDef)
- Specified by:
materialize
in interfaceStorageLinker
-
-