Class SchemaNameImpl
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.jdbc.connection.SchemaNameImpl
-
- All Implemented Interfaces:
SchemaNameSupplier
public class SchemaNameImpl extends java.lang.Object implements SchemaNameSupplier
Supplier which tries to obtain the schema name from the given delegate, falling back to calling getSchema() from the connection if the supplier returns a null
-
-
Constructor Summary
Constructors Constructor Description SchemaNameImpl(SchemaNameSupplier delegate)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getSchemaForRequestContext(java.sql.Connection connection)
Get the schema name for the current request context
-
-
-
Constructor Detail
-
SchemaNameImpl
public SchemaNameImpl(SchemaNameSupplier delegate)
Public constructor- Parameters:
delegate
-
-
-
Method Detail
-
getSchemaForRequestContext
public java.lang.String getSchemaForRequestContext(java.sql.Connection connection) throws FHIRPersistenceDBConnectException
Description copied from interface:SchemaNameSupplier
Get the schema name for the current request context- Specified by:
getSchemaForRequestContext
in interfaceSchemaNameSupplier
- Parameters:
connection
- the connection for which we want to obtain the schema name- Returns:
- the main schema name to use for the given connection
- Throws:
FHIRPersistenceDBConnectException
-
-