Interface FHIRDbDAO
-
- All Known Subinterfaces:
ParameterDAO
,ResourceDAO
- All Known Implementing Classes:
DerbyResourceDAO
,FHIRDbDAOImpl
,ParameterDAOImpl
,PostgreSqlResourceDAO
,ResourceDAOImpl
public interface FHIRDbDAO
This is a root interface for child Data Access Object interfaces.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Connection
getConnection()
Obtains a database connection.FHIRDbFlavor
getFlavor()
Get the database flavor, which describes the database type and its capabilities (e.g.boolean
isDb2Database()
-
-
-
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:
-
-