Class SetSchemaAction
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.jdbc.connection.ChainedAction
-
- org.linuxforhealth.fhir.persistence.jdbc.connection.SetSchemaAction
-
- All Implemented Interfaces:
Action
public class SetSchemaAction extends ChainedAction
Command to set the named schema on a connection
-
-
Constructor Summary
Constructors Constructor Description SetSchemaAction(SchemaNameSupplier schemaNameSupplier, Action next)
Use a provided schema name (handy for testing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
performOn(FHIRDbFlavor flavor, java.sql.Connection c)
Perform this action on the given connection
-
-
-
Constructor Detail
-
SetSchemaAction
public SetSchemaAction(SchemaNameSupplier schemaNameSupplier, Action next)
Use a provided schema name (handy for testing)- Parameters:
schemaNameSupplier
- function to provide the schema name for the current request contextnext
- the next action to apply, or null if this is the end of the chain
-
-
Method Detail
-
performOn
public void performOn(FHIRDbFlavor flavor, java.sql.Connection c) throws FHIRPersistenceDBConnectException
Description copied from interface:Action
Perform this action on the given connection- Specified by:
performOn
in interfaceAction
- Overrides:
performOn
in classChainedAction
- Parameters:
flavor
- describes the type of database associated with the given connectionc
- the connection to perform the action on- Throws:
FHIRPersistenceDBConnectException
-
-