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