Class DerbyParameterNamesDAO
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.params.database.ParameterNameDAOImpl
-
- org.linuxforhealth.fhir.persistence.params.database.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(java.sql.Connection c, java.lang.String schemaName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.IntegergetParameterId(java.lang.String parameterName)Read the id for the named typeintreadOrAddParameterNameId(java.lang.String parameterName)Calls a stored procedure to read the name contained in the passed Parameter in the Parameter_Names table.-
Methods inherited from class org.linuxforhealth.fhir.persistence.params.database.ParameterNameDAOImpl
getConnection, getSchemaName, readAllSearchParameterNames, readParameterNameId
-
-
-
-
Method Detail
-
readOrAddParameterNameId
public int readOrAddParameterNameId(java.lang.String parameterName) throws FHIRPersistenceDataAccessExceptionDescription 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 java.lang.Integer getParameterId(java.lang.String parameterName) throws FHIRPersistenceDataAccessExceptionRead the id for the named type- Parameters:
parameterName-- Returns:
- the database id, or null if the named record is not found
- Throws:
FHIRPersistenceDataAccessException
-
-