Class CodeSystemCacheAdapter
- java.lang.Object
- 
- com.ibm.fhir.persistence.jdbc.dao.impl.CodeSystemCacheAdapter
 
- 
- All Implemented Interfaces:
- ICodeSystemCache
 
 public class CodeSystemCacheAdapter extends Object implements ICodeSystemCache Adapter to provide access to cached code system values managed by theParameterDAOimplementation.
- 
- 
Constructor SummaryConstructors Constructor Description CodeSystemCacheAdapter(ParameterDAO delegate)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intreadOrAddCodeSystem(String codeSystem)Reads the id associated with the name of the passed Parameter from the code_systems table.
 
- 
- 
- 
Constructor Detail- 
CodeSystemCacheAdapterpublic CodeSystemCacheAdapter(ParameterDAO delegate) 
 
- 
 - 
Method Detail- 
readOrAddCodeSystempublic int readOrAddCodeSystem(String codeSystem) throws FHIRPersistenceException Description copied from interface:ICodeSystemCacheReads the id associated with the name of the passed Parameter from the code_systems table. If the id for the passed name is not present in the database, an id is generated, persisted, and returned. This is done in a thread-safe way- Specified by:
- readOrAddCodeSystemin interface- ICodeSystemCache
- Parameters:
- codeSystem- A valid FHIR search parameter name.
- Returns:
- the id associated with the name of the passed Parameter.
- Throws:
- FHIRPersistenceException
 
 
- 
 
-