Interface FHIRDbDAO
-
- All Known Subinterfaces:
ParameterDAO,ResourceDAO
- All Known Implementing Classes:
DerbyResourceDAO,FHIRDbDAOImpl,ParameterDAOImpl,PostgresReindexResourceDAO,PostgresResourceDAO,PostgresResourceNoProcDAO,ReindexResourceDAO,ResourceDAOImpl
public interface FHIRDbDAOThis is a root interface for child Data Access Object interfaces.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectiongetConnection()Obtains a database connection.FHIRDbFlavorgetFlavor()Get the database flavor, which describes the database type and its capabilities (e.g.booleanisDb2Database()
-
-
-
Method Detail
-
getConnection
Connection getConnection() throws FHIRPersistenceDBConnectException
Obtains a database connection. Connection is configured and ready to use. If multi-tenant, the tenant session variable will have been set.- Returns:
- Connection - A connection to the FHIR database.
- Throws:
FHIRPersistenceDBConnectException
-
isDb2Database
boolean isDb2Database()
- Returns:
- true if this DAO is connected to a DB2 database.
-
getFlavor
FHIRDbFlavor getFlavor()
Get the database flavor, which describes the database type and its capabilities (e.g. is it multi-tenant?)- Returns:
-
-