Class PostgresParameterNamesDAO
- java.lang.Object
 - 
- com.ibm.fhir.persistence.jdbc.dao.impl.ParameterNameDAOImpl
 - 
- com.ibm.fhir.persistence.jdbc.postgres.PostgresParameterNamesDAO
 
 
 
- 
- All Implemented Interfaces:
 ParameterNameDAO
public class PostgresParameterNamesDAO extends ParameterNameDAOImpl
 
- 
- 
Constructor Summary
Constructors Constructor Description PostgresParameterNamesDAO(Connection c, String schemaName) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intreadOrAddParameterNameId(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
- 
PostgresParameterNamesDAO
public PostgresParameterNamesDAO(Connection c, String schemaName)
 
 - 
 
- 
Method Detail
- 
readOrAddParameterNameId
public int readOrAddParameterNameId(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:
 readOrAddParameterNameIdin interfaceParameterNameDAO- Overrides:
 readOrAddParameterNameIdin classParameterNameDAOImpl- Parameters:
 parameterName-- Returns:
 - The generated id of the stored system.
 - Throws:
 FHIRPersistenceDataAccessException
 
 - 
 
 -