@Override @NotNull public StoreImpl openStore(@NotNull final String name, @NotNull final StoreConfig config, @NotNull final Transaction transaction) { final TransactionBase txn = (TransactionBase) transaction; return openStoreImpl(name, config, txn, txn.getTreeMetaInfo(name)); }
@Override @Nullable public StoreImpl openStore(@NotNull final String name, @NotNull final StoreConfig config, @NotNull final Transaction transaction, final boolean creationRequired) { final TransactionBase txn = (TransactionBase) transaction; final TreeMetaInfo metaInfo = txn.getTreeMetaInfo(name); if (metaInfo == null && !creationRequired) { return null; } return openStoreImpl(name, config, txn, metaInfo); }
@NotNull public StoreImpl openStoreByStructureId(final int structureId) { checkIsFinished(); final EnvironmentImpl env = getEnvironment(); final String storeName = getMetaTree().getStoreNameByStructureId(structureId, env); return storeName == null ? new TemporaryEmptyStore(env) : env.openStoreImpl(storeName, StoreConfig.USE_EXISTING, this, getTreeMetaInfo(storeName)); }