Class DerbyParameterNamesDAO
- java.lang.Object
-
- com.ibm.fhir.persistence.jdbc.dao.impl.ParameterNameDAOImpl
-
- com.ibm.fhir.persistence.jdbc.derby.DerbyParameterNamesDAO
-
- All Implemented Interfaces:
ParameterNameDAO
public class DerbyParameterNamesDAO extends ParameterNameDAOImpl
For R4 we have replaced the old Derby (Java) stored procedure with plain old JDBC statements - much simpler and easier to debug.
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.persistence.jdbc.dao.impl.ParameterNameDAOImpl
DEFAULT_TOKEN_SYSTEM
-
-
Constructor Summary
Constructors Constructor Description DerbyParameterNamesDAO(Connection c, String schemaName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Integer
getParameterId(String parameterName)
Read the id for the named typeint
readOrAddParameterNameId(String parameterName)
Calls a stored procedure to read the name contained in the passed Parameter in the Parameter_Names table.-
Methods inherited from class com.ibm.fhir.persistence.jdbc.dao.impl.ParameterNameDAOImpl
getConnection, getSchemaName, readAllSearchParameterNames, readParameterNameId
-
-
-
-
Constructor Detail
-
DerbyParameterNamesDAO
public DerbyParameterNamesDAO(Connection c, String schemaName)
-
-
Method Detail
-
readOrAddParameterNameId
public int readOrAddParameterNameId(String parameterName) throws FHIRPersistenceDataAccessException
Description copied from class:ParameterNameDAOImpl
Calls a stored procedure to read the name contained in the passed Parameter in the Parameter_Names table. If it's not in the DB, it will be stored and a unique id will be returned.- Specified by:
readOrAddParameterNameId
in interfaceParameterNameDAO
- Overrides:
readOrAddParameterNameId
in classParameterNameDAOImpl
- Parameters:
parameterName
- A valid FHIR search parameter name.- Returns:
- The generated id of the stored system.
- Throws:
FHIRPersistenceDataAccessException
-
getParameterId
protected Integer getParameterId(String parameterName) throws FHIRPersistenceDataAccessException
Read the id for the named type- Parameters:
parameterName
-- Returns:
- the database id, or null if the named record is not found
- Throws:
FHIRPersistenceDataAccessException
-
-