Class CreateTempTablesAction
- java.lang.Object
-
- com.ibm.fhir.persistence.jdbc.connection.ChainedAction
-
- com.ibm.fhir.persistence.jdbc.connection.CreateTempTablesAction
-
- All Implemented Interfaces:
Action
public class CreateTempTablesAction extends ChainedAction
Creates the declared global temp table used in Derby for handling upserts into common_token_values and code_systems, avoiding huge VALUES() statements which cause the Derby SQL parser to generate a stack overflow.
-
-
Constructor Summary
Constructors Constructor Description CreateTempTablesAction()
Public constructor.CreateTempTablesAction(Action next)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createCanonicalValuesTmp(DerbyAdapter adapter)
Create the declared global temporary table COMMON_TOKEN_VALUES_TMPvoid
createCodeSystemsTmp(DerbyAdapter adapter)
Create the declared global temporary table CODE_SYSTEMS_TMPvoid
createCommonTokenValuesTmp(DerbyAdapter adapter)
Create the declared global temporary table COMMON_TOKEN_VALUES_TMPvoid
performOn(FHIRDbFlavor flavor, java.sql.Connection connection)
Perform this action on the given connection
-
-
-
Constructor Detail
-
CreateTempTablesAction
public CreateTempTablesAction()
Public constructor. No next action, so this will be the last action applied
-
CreateTempTablesAction
public CreateTempTablesAction(Action next)
Public constructor- Parameters:
next
- the next action in the chain
-
-
Method Detail
-
performOn
public void performOn(FHIRDbFlavor flavor, java.sql.Connection connection) 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 connectionconnection
- the connection to perform the action on- Throws:
FHIRPersistenceDBConnectException
-
createCommonTokenValuesTmp
public void createCommonTokenValuesTmp(DerbyAdapter adapter) throws FHIRPersistenceDBConnectException
Create the declared global temporary table COMMON_TOKEN_VALUES_TMP- Parameters:
adapter
-- Throws:
FHIRPersistenceDBConnectException
-
createCodeSystemsTmp
public void createCodeSystemsTmp(DerbyAdapter adapter) throws FHIRPersistenceDBConnectException
Create the declared global temporary table CODE_SYSTEMS_TMP- Parameters:
adapter
-- Throws:
FHIRPersistenceDBConnectException
-
createCanonicalValuesTmp
public void createCanonicalValuesTmp(DerbyAdapter adapter) throws FHIRPersistenceDBConnectException
Create the declared global temporary table COMMON_TOKEN_VALUES_TMP- Parameters:
adapter
-- Throws:
FHIRPersistenceDBConnectException
-
-