Class PostgresParameterNamesDAO
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.params.database.ParameterNameDAOImpl
-
- org.linuxforhealth.fhir.persistence.jdbc.postgres.PostgresParameterNamesDAO
-
- All Implemented Interfaces:
ParameterNameDAO
public class PostgresParameterNamesDAO extends ParameterNameDAOImpl
-
-
Constructor Summary
Constructors Constructor Description PostgresParameterNamesDAO(java.sql.Connection c, java.lang.String schemaName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
readOrAddParameterNameId(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 FHIRPersistenceDataAccessException
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
-- Returns:
- The generated id of the stored system.
- Throws:
FHIRPersistenceDataAccessException
-
-