Class JDBCIdentityCacheImpl
- java.lang.Object
-
- com.ibm.fhir.persistence.jdbc.dao.impl.JDBCIdentityCacheImpl
-
- All Implemented Interfaces:
JDBCIdentityCache
public class JDBCIdentityCacheImpl extends Object implements JDBCIdentityCache
Pulls together the DAOs and tenant-specific cache to provide a single place where we can look up the identity of various records we need
-
-
Constructor Summary
Constructors Constructor Description JDBCIdentityCacheImpl(FHIRPersistenceJDBCCache cache, ResourceDAO resourceDAO, ParameterDAO parameterDAO)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getCodeSystemId(String codeSystemName)
Get the database id for the named code-system.Integer
getParameterNameId(String parameterName)
Get the database id for the given parameter name.Integer
getResourceTypeId(String resourceType)
Get the database id for the named resourceType.
-
-
-
Constructor Detail
-
JDBCIdentityCacheImpl
public JDBCIdentityCacheImpl(FHIRPersistenceJDBCCache cache, ResourceDAO resourceDAO, ParameterDAO parameterDAO)
Public constructor- Parameters:
cache
-parameterDAO
-
-
-
Method Detail
-
getResourceTypeId
public Integer getResourceTypeId(String resourceType) throws FHIRPersistenceException
Description copied from interface:JDBCIdentityCache
Get the database id for the named resourceType. Reads from a cache or database if required.- Specified by:
getResourceTypeId
in interfaceJDBCIdentityCache
- Returns:
- Throws:
FHIRPersistenceException
-
getCodeSystemId
public Integer getCodeSystemId(String codeSystemName) throws FHIRPersistenceException
Description copied from interface:JDBCIdentityCache
Get the database id for the named code-system. Creates new records if necessary- Specified by:
getCodeSystemId
in interfaceJDBCIdentityCache
- Returns:
- Throws:
FHIRPersistenceException
-
getParameterNameId
public Integer getParameterNameId(String parameterName) throws FHIRPersistenceException
Description copied from interface:JDBCIdentityCache
Get the database id for the given parameter name. Creates new records if necessary.- Specified by:
getParameterNameId
in interfaceJDBCIdentityCache
- Returns:
- Throws:
FHIRPersistenceException
-
-