Class AbstractDatabase
java.lang.Object
com.apple.foundationdb.relational.recordlayer.AbstractDatabase
- All Implemented Interfaces:
RelationalDatabase
,AutoCloseable
- Direct Known Subclasses:
RecordLayerDatabase
,TransactionBoundDatabase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EmbeddedRelationalConnection
protected com.apple.foundationdb.relational.api.Options
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractDatabase
(MetadataOperationsFactory metadataOperationsFactory, DdlQueryFactory ddlQueryFactory, RelationalPlanCache planCache, com.apple.foundationdb.relational.api.Options options) -
Method Summary
Modifier and TypeMethodDescriptionprotected Transaction
com.apple.foundationdb.relational.api.Options
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
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
-
options
@Nonnull protected com.apple.foundationdb.relational.api.Options options
-
-
Constructor Details
-
AbstractDatabase
public AbstractDatabase(@Nonnull MetadataOperationsFactory metadataOperationsFactory, @Nonnull DdlQueryFactory ddlQueryFactory, @Nullable RelationalPlanCache planCache, @Nonnull com.apple.foundationdb.relational.api.Options options)
-
-
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
-
getOptions
@Nonnull public com.apple.foundationdb.relational.api.Options getOptions() -
setOption
public void setOption(@Nonnull com.apple.foundationdb.relational.api.Options.Name name, Object value) throws SQLException - Throws:
SQLException
-