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 EmbeddedRelationalConnectionprotected 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 Transactioncom.apple.foundationdb.relational.api.Optionsabstract TransactionManagerabstract URIgetURI()abstract BackingStoreloadRecordStore(String schemaId, FDBRecordStoreBase.StoreExistenceCheck existenceCheck) loadSchema(String schemaId) Load the specified schema for the database.protected voidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:RelationalDatabaseLoad the specified schema for the database.- Specified by:
loadSchemain 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:
getDdlFactoryin 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
-