Class PlainPostgresParameterBatch
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.params.database.PlainPostgresParameterBatch
-
public class PlainPostgresParameterBatch extends java.lang.Object
Parameter batch statements configured for a given resource type using the plain schema variant
-
-
Constructor Summary
Constructors Constructor Description PlainPostgresParameterBatch(java.sql.Connection c, java.lang.String resourceType)
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 batch statementvoid
addLocation(long logicalResourceId, int parameterNameId, java.lang.Double lat, java.lang.Double lng, java.lang.Integer compositeId)
Add a location parameter value to the batch statementvoid
addNumber(long logicalResourceId, int parameterNameId, java.math.BigDecimal value, java.math.BigDecimal valueLow, java.math.BigDecimal valueHigh, java.lang.Integer compositeId)
Add a number parameter value to the batch statementvoid
addProfile(long logicalResourceId, long canonicalId, java.lang.String version, java.lang.String fragment)
Add a profile parameter value to the batch statementvoid
addQuantity(long logicalResourceId, int parameterNameId, java.lang.Integer codeSystemId, java.lang.String valueCode, java.math.BigDecimal valueNumber, java.math.BigDecimal valueNumberLow, java.math.BigDecimal valueNumberHigh, java.lang.Integer compositeId)
Add a quantity parameter value to the batch statementvoid
addReference(long logicalResourceId, int parameterNameId, long refLogicalResourceId, java.lang.Integer refVersionId)
Add a reference parameter value to the batch statementvoid
addResourceTokenRef(long logicalResourceId, int parameterNameId, java.lang.Long commonTokenValueId, java.lang.Integer compositeId)
Add a token parameter value to the batch statementvoid
addSecurity(long logicalResourceId, long commonTokenValueId)
Add a security parameter value to the batch statementvoid
addString(long logicalResourceId, int parameterNameId, java.lang.String strValue, java.lang.String strValueLower, java.lang.Integer compositeId)
Add a string parameter value to the batch statementvoid
addTag(long logicalResourceId, long commonTokenValueId)
Add a tag parameter value to the batch statementvoid
close()
Resets the state of the DAO by closing all statements and setting any batch counts to 0void
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()
Resets the state of the DAO by closing all statements and setting any batch counts to 0
-
addString
public void addString(long logicalResourceId, int parameterNameId, java.lang.String strValue, java.lang.String strValueLower, java.lang.Integer compositeId) throws java.sql.SQLException
Add a string parameter value to the batch statement- Parameters:
logicalResourceId
-parameterNameId
-strValue
-strValueLower
-compositeId
-- Throws:
java.sql.SQLException
-
addNumber
public void addNumber(long logicalResourceId, int parameterNameId, java.math.BigDecimal value, java.math.BigDecimal valueLow, java.math.BigDecimal valueHigh, java.lang.Integer compositeId) throws java.sql.SQLException
Add a number parameter value to the batch statement- Parameters:
logicalResourceId
-parameterNameId
-value
-valueLow
-valueHigh
-compositeId
-- 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 batch statement- Parameters:
logicalResourceId
-parameterNameId
-dateStart
-dateEnd
-compositeId
-- Throws:
java.sql.SQLException
-
addQuantity
public void addQuantity(long logicalResourceId, int parameterNameId, java.lang.Integer codeSystemId, java.lang.String valueCode, java.math.BigDecimal valueNumber, java.math.BigDecimal valueNumberLow, java.math.BigDecimal valueNumberHigh, java.lang.Integer compositeId) throws java.sql.SQLException
Add a quantity parameter value to the batch statement- Parameters:
logicalResourceId
-parameterNameId
-codeSystemId
-valueCode
-valueNumber
-valueNumberLow
-valueNumberHigh
-compositeId
-- Throws:
java.sql.SQLException
-
addLocation
public void addLocation(long logicalResourceId, int parameterNameId, java.lang.Double lat, java.lang.Double lng, java.lang.Integer compositeId) throws java.sql.SQLException
Add a location parameter value to the batch statement- Parameters:
logicalResourceId
-parameterNameId
-lat
-lng
-compositeId
-- Throws:
java.sql.SQLException
-
addResourceTokenRef
public void addResourceTokenRef(long logicalResourceId, int parameterNameId, java.lang.Long commonTokenValueId, java.lang.Integer compositeId) throws java.sql.SQLException
Add a token parameter value to the batch statement- Parameters:
logicalResourceId
-parameterNameId
-commonTokenValueId
- can be nullcompositeId
- can be null- Throws:
java.sql.SQLException
-
addTag
public void addTag(long logicalResourceId, long commonTokenValueId) throws java.sql.SQLException
Add a tag parameter value to the 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 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 batch statement- Parameters:
logicalResourceId
-commonTokenValueId
-- Throws:
java.sql.SQLException
-
addReference
public void addReference(long logicalResourceId, int parameterNameId, long refLogicalResourceId, java.lang.Integer refVersionId) throws java.sql.SQLException
Add a reference parameter value to the batch statement- Parameters:
logicalResourceId
-refLogicalResourceId
-refVersionId
-- Throws:
java.sql.SQLException
-
-