Class ParameterNameCacheAdapter
- java.lang.Object
-
- com.ibm.fhir.persistence.jdbc.dao.impl.ParameterNameCacheAdapter
-
- All Implemented Interfaces:
IParameterNameCache
public class ParameterNameCacheAdapter extends Object implements IParameterNameCache
Adapter to provide access to the cached parameter name ids managed by theParameterDAO
implementation.
-
-
Constructor Summary
Constructors Constructor Description ParameterNameCacheAdapter(ParameterDAO delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
readOrAddParameterNameId(String parameterName)
Reads the id associated with the name of the passed Parameter from the Parameter_Names table.
-
-
-
Constructor Detail
-
ParameterNameCacheAdapter
public ParameterNameCacheAdapter(ParameterDAO delegate)
-
-
Method Detail
-
readOrAddParameterNameId
public int readOrAddParameterNameId(String parameterName) throws FHIRPersistenceException
Description copied from interface:IParameterNameCache
Reads the id associated with the name of the passed Parameter from the Parameter_Names table. If the id for the passed name is not present in the database, an id is generated, persisted, and returned.- Specified by:
readOrAddParameterNameId
in interfaceIParameterNameCache
- Parameters:
parameterName
- A valid FHIR search parameter name.- Returns:
- the id associated with the name of the passed Parameter.
- Throws:
FHIRPersistenceException
-
-