Class AbstractDatabase

java.lang.Object
com.apple.foundationdb.relational.recordlayer.AbstractDatabase
All Implemented Interfaces:
RelationalDatabase, AutoCloseable
Direct Known Subclasses:
RecordLayerDatabase, TransactionBoundDatabase

public abstract class AbstractDatabase extends Object implements RelationalDatabase
  • Field Details

  • Constructor Details

  • Method Details

    • setConnection

      protected void setConnection(@Nonnull EmbeddedRelationalConnection conn)
    • 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 interface RelationalDatabase
      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

      @Nonnull public MetadataOperationsFactory getDdlFactory()
      Specified by:
      getDdlFactory in interface RelationalDatabase
    • getDdlQueryFactory

      @Nonnull public DdlQueryFactory 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

      public abstract URI getURI()
    • getTransactionManager

      public abstract TransactionManager getTransactionManager()
    • getPlanCache

      @Nullable public RelationalPlanCache getPlanCache()