public interface EntityStore
extends java.io.Closeable
EntityStore describes abstract named transactional
Entity Store.StoreTransaction,
PersistentEntityStore| Modifier and Type | Method and Description |
|---|---|
@NotNull StoreTransaction |
beginExclusiveTransaction()
Starts new exclusive transaction which can be used to read and write data.
|
@NotNull StoreTransaction |
beginReadonlyTransaction()
Starts new transaction which can be used to only read data.
|
@NotNull StoreTransaction |
beginTransaction()
Starts new transaction which can be used to read and write data.
|
void |
close()
Closes the
EntityStore. |
@Nullable StoreTransaction |
getCurrentTransaction() |
@NotNull java.lang.String |
getLocation()
Returns location (path) of the
EntityStore's database files on storage device. |
@NotNull java.lang.String |
getName()
Returns unique human readable name of the (@code EntityStore}.
|
@NotNull @NotNull java.lang.String getName()
@NotNull @NotNull java.lang.String getLocation()
EntityStore's database files on storage device. This location as well as
getName() value is unique.EntityStore's database files@NotNull @NotNull StoreTransaction beginTransaction()
StoreTransaction@NotNull @NotNull StoreTransaction beginExclusiveTransaction()
EntityStore
before this one finishes.StoreTransaction@NotNull @NotNull StoreTransaction beginReadonlyTransaction()
StoreTransaction,
StoreTransaction.isReadonly()@Nullable @Nullable StoreTransaction getCurrentTransaction()
null if no transaction is started in current threadStoreTransactionvoid close()
EntityStore.close in interface java.lang.AutoCloseableclose in interface java.io.Closeable