Package one.microstream.storage.types
Class Database.Default
- java.lang.Object
-
- one.microstream.storage.types.Database.Default
-
- All Implemented Interfaces:
one.microstream.persistence.types.PersistenceStoring,one.microstream.persistence.types.Persister,one.microstream.reference.ObjectSwizzling,Database,DatabasePart
- Enclosing interface:
- Database
public static final class Database.Default extends Object implements Database
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.storage.types.Database
Database.Default
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description one.microstream.persistence.types.StorercreateEagerStorer()one.microstream.persistence.types.StorercreateLazyStorer()one.microstream.persistence.types.StorercreateStorer()StringdatabaseName()Returns the identifying name of theDatabasethis part belongs to.ObjectgetObject(long objectId)StorageManagerguaranteeActiveStorage()DatabaseguaranteeNoActiveStorage()StorageManagersetStorage(StorageManager storage)StorageManagerstorage()longstore(Object instance)voidstoreAll(Iterable<?> instances)long[]storeAll(Object... instances)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface one.microstream.storage.types.Database
hasStorage, toIdentifyingString
-
-
-
-
Method Detail
-
databaseName
public final String databaseName()
Description copied from interface:DatabasePartReturns the identifying name of theDatabasethis part belongs to.- Specified by:
databaseNamein interfaceDatabasePart- Returns:
- the identifying name of the
Database.
-
storage
public final StorageManager storage()
-
guaranteeNoActiveStorage
public final Database guaranteeNoActiveStorage()
- Specified by:
guaranteeNoActiveStoragein interfaceDatabase
-
guaranteeActiveStorage
public final StorageManager guaranteeActiveStorage()
- Specified by:
guaranteeActiveStoragein interfaceDatabase
-
setStorage
public final StorageManager setStorage(StorageManager storage)
- Specified by:
setStoragein interfaceDatabase
-
getObject
public final Object getObject(long objectId)
- Specified by:
getObjectin interfaceone.microstream.reference.ObjectSwizzling- Specified by:
getObjectin interfaceone.microstream.persistence.types.Persister
-
store
public final long store(Object instance)
- Specified by:
storein interfaceone.microstream.persistence.types.PersistenceStoring- Specified by:
storein interfaceone.microstream.persistence.types.Persister
-
storeAll
public final long[] storeAll(Object... instances)
- Specified by:
storeAllin interfaceone.microstream.persistence.types.PersistenceStoring- Specified by:
storeAllin interfaceone.microstream.persistence.types.Persister
-
storeAll
public final void storeAll(Iterable<?> instances)
- Specified by:
storeAllin interfaceone.microstream.persistence.types.PersistenceStoring- Specified by:
storeAllin interfaceone.microstream.persistence.types.Persister
-
createLazyStorer
public final one.microstream.persistence.types.Storer createLazyStorer()
- Specified by:
createLazyStorerin interfaceone.microstream.persistence.types.Persister
-
createStorer
public final one.microstream.persistence.types.Storer createStorer()
- Specified by:
createStorerin interfaceone.microstream.persistence.types.Persister
-
createEagerStorer
public final one.microstream.persistence.types.Storer createEagerStorer()
- Specified by:
createEagerStorerin interfaceone.microstream.persistence.types.Persister
-
-