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.
-
-
Constructor Summary
Constructors Constructor Description DerbyParameterNamesDAO(Connection c, String schemaName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IntegergetParameterId(String parameterName)Read the id for the named typeintreadOrAddParameterNameId(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:ParameterNameDAOImplCalls 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:
readOrAddParameterNameIdin interfaceParameterNameDAO- Overrides:
readOrAddParameterNameIdin 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
-
-