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 intreadOrAddParameterNameId(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 FHIRPersistenceDataAccessExceptionCalls 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-- Returns:
 - The generated id of the stored system.
 - Throws:
 FHIRPersistenceDataAccessException
 
 - 
 
 -