Class SchemaNameFromProps
- java.lang.Object
-
- com.ibm.fhir.persistence.jdbc.connection.SchemaNameFromProps
-
- All Implemented Interfaces:
SchemaNameSupplier
public class SchemaNameFromProps extends java.lang.Object implements SchemaNameSupplier
Returns a constant schemaName. Useful for unit test configurations
-
-
Constructor Summary
Constructors Constructor Description SchemaNameFromProps(java.lang.String schemaName)
Public constructorSchemaNameFromProps(java.util.Properties configProps)
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
-
SchemaNameFromProps
public SchemaNameFromProps(java.util.Properties configProps)
Public constructor- Parameters:
configProps
- should contain the "schemaName" property
-
SchemaNameFromProps
public SchemaNameFromProps(java.lang.String schemaName)
Public constructor- Parameters:
schemaName
- constant
-
-
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
-
-