Class PlainPostgresSystemParameterBatch
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.params.database.PlainPostgresSystemParameterBatch
-
public class PlainPostgresSystemParameterBatch extends java.lang.Object
Batch insert statements for system-level parameters
-
-
Constructor Summary
Constructors Constructor Description PlainPostgresSystemParameterBatch(java.sql.Connection c)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDate(long logicalResourceId, int parameterNameId, java.sql.Timestamp dateStart, java.sql.Timestamp dateEnd, java.lang.Integer compositeId)
Add a date parameter value to the whole-system batch statementvoid
addProfile(long logicalResourceId, long canonicalId, java.lang.String version, java.lang.String fragment)
Add a profile parameter value to the whole-system batch statementvoid
addResourceTokenRef(long logicalResourceId, int parameterNameId, long commonTokenValueId)
Add a token parameter value to the batch statementvoid
addSecurity(long logicalResourceId, long commonTokenValueId)
Add a security parameter value to the whole-system batch statementvoid
addString(long logicalResourceId, int parameterNameId, java.lang.String strValue, java.lang.String strValueLower)
Add a string parameter value to the whole-system batch statementvoid
addTag(long logicalResourceId, long commonTokenValueId)
Add a tag parameter value to the whole-system batch statementvoid
close()
Closes all the statements currently openvoid
pushBatch()
Push the current batch
-
-
-
Method Detail
-
pushBatch
public void pushBatch() throws java.sql.SQLException
Push the current batch- Throws:
java.sql.SQLException
-
close
public void close()
Closes all the statements currently open
-
addString
public void addString(long logicalResourceId, int parameterNameId, java.lang.String strValue, java.lang.String strValueLower) throws java.sql.SQLException
Add a string parameter value to the whole-system batch statement- Parameters:
logicalResourceId
-parameterNameId
-strValue
-strValueLower
-- Throws:
java.sql.SQLException
-
addDate
public void addDate(long logicalResourceId, int parameterNameId, java.sql.Timestamp dateStart, java.sql.Timestamp dateEnd, java.lang.Integer compositeId) throws java.sql.SQLException
Add a date parameter value to the whole-system batch statement- Parameters:
logicalResourceId
-parameterNameId
-dateStart
-dateEnd
-compositeId
-- Throws:
java.sql.SQLException
-
addResourceTokenRef
public void addResourceTokenRef(long logicalResourceId, int parameterNameId, long commonTokenValueId) throws java.sql.SQLException
Add a token parameter value to the batch statement- Parameters:
logicalResourceId
-parameterNameId
-commonTokenValueId
-- Throws:
java.sql.SQLException
-
addTag
public void addTag(long logicalResourceId, long commonTokenValueId) throws java.sql.SQLException
Add a tag parameter value to the whole-system batch statement- Parameters:
logicalResourceId
-commonTokenValueId
-- Throws:
java.sql.SQLException
-
addProfile
public void addProfile(long logicalResourceId, long canonicalId, java.lang.String version, java.lang.String fragment) throws java.sql.SQLException
Add a profile parameter value to the whole-system batch statement- Parameters:
logicalResourceId
-canonicalId
-version
-fragment
-- Throws:
java.sql.SQLException
-
addSecurity
public void addSecurity(long logicalResourceId, long commonTokenValueId) throws java.sql.SQLException
Add a security parameter value to the whole-system batch statement- Parameters:
logicalResourceId
-commonTokenValueId
-- Throws:
java.sql.SQLException
-
-