Class AbstractDatabase
java.lang.Object
com.apple.foundationdb.relational.recordlayer.AbstractDatabase
- All Implemented Interfaces:
RelationalDatabase
,AutoCloseable
- Direct Known Subclasses:
RecordLayerDatabase
,TransactionBoundDatabase
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDatabase
(MetadataOperationsFactory metadataOperationsFactory, DdlQueryFactory ddlQueryFactory, RelationalPlanCache planCache) -
Method Summary
Modifier and TypeMethodDescriptionprotected Transaction
abstract TransactionManager
abstract URI
getURI()
abstract BackingStore
loadRecordStore
(String schemaId, FDBRecordStoreBase.StoreExistenceCheck existenceCheck) loadSchema
(String schemaId) Load the specified schema for the database.protected void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.apple.foundationdb.relational.api.catalog.RelationalDatabase
close, connect
-
Field Details
-
connection
-
-
Constructor Details
-
AbstractDatabase
public AbstractDatabase(@Nonnull MetadataOperationsFactory metadataOperationsFactory, @Nonnull DdlQueryFactory ddlQueryFactory, @Nullable RelationalPlanCache planCache)
-
-
Method Details
-
setConnection
-
getCurrentTransaction
@Nonnull protected Transaction getCurrentTransaction() throws com.apple.foundationdb.relational.api.exceptions.RelationalException- Throws:
com.apple.foundationdb.relational.api.exceptions.RelationalException
-
loadSchema
@Nonnull public RecordLayerSchema loadSchema(@Nonnull String schemaId) throws com.apple.foundationdb.relational.api.exceptions.RelationalException Description copied from interface:RelationalDatabase
Load the specified schema for the database.- Specified by:
loadSchema
in interfaceRelationalDatabase
- Parameters:
schemaId
- the unique id of the schema- Returns:
- a Schema for the specified id.
- Throws:
com.apple.foundationdb.relational.api.exceptions.RelationalException
- if something goes wrong during load
-
getDdlFactory
- Specified by:
getDdlFactory
in interfaceRelationalDatabase
-
getDdlQueryFactory
-
loadRecordStore
public abstract BackingStore loadRecordStore(@Nonnull String schemaId, @Nonnull FDBRecordStoreBase.StoreExistenceCheck existenceCheck) throws com.apple.foundationdb.relational.api.exceptions.RelationalException - Throws:
com.apple.foundationdb.relational.api.exceptions.RelationalException
-
getURI
-
getTransactionManager
-
getPlanCache
-