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 voidcreateCanonicalValuesTmp(DerbyAdapter adapter)Create the declared global temporary table COMMON_TOKEN_VALUES_TMPvoidcreateCodeSystemsTmp(DerbyAdapter adapter)Create the declared global temporary table CODE_SYSTEMS_TMPvoidcreateCommonTokenValuesTmp(DerbyAdapter adapter)Create the declared global temporary table COMMON_TOKEN_VALUES_TMPvoidperformOn(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:ActionPerform this action on the given connection- Specified by:
 performOnin interfaceAction- Overrides:
 performOnin 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
 
 - 
 
 -