Class SchemaNameFromProps
- java.lang.Object
 - 
- com.ibm.fhir.persistence.jdbc.connection.SchemaNameFromProps
 
 
- 
- All Implemented Interfaces:
 SchemaNameSupplier
public class SchemaNameFromProps extends Object implements SchemaNameSupplier
Returns a constant schemaName. Useful for unit test configurations 
- 
- 
Constructor Summary
Constructors Constructor Description SchemaNameFromProps(String schemaName)Public constructorSchemaNameFromProps(Properties configProps)Public constructor 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSchemaForRequestContext(Connection connection)Get the schema name for the current request context 
 - 
 
- 
- 
Constructor Detail
- 
SchemaNameFromProps
public SchemaNameFromProps(Properties configProps)
Public constructor- Parameters:
 configProps- should contain the "schemaName" property
 
- 
SchemaNameFromProps
public SchemaNameFromProps(String schemaName)
Public constructor- Parameters:
 schemaName- constant
 
 - 
 
- 
Method Detail
- 
getSchemaForRequestContext
public String getSchemaForRequestContext(Connection connection) throws FHIRPersistenceDBConnectException
Description copied from interface:SchemaNameSupplierGet the schema name for the current request context- Specified by:
 getSchemaForRequestContextin 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
 
 - 
 
 -