Class QueryUtil
- java.lang.Object
-
- org.linuxforhealth.fhir.database.utils.query.QueryUtil
-
public class QueryUtil extends java.lang.Object
Helper class to generate a PreparedStatement from a Select object.
-
-
Constructor Summary
Constructors Constructor Description QueryUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.sql.PreparedStatement
prepareSelect(java.sql.Connection connection, Select select, IDatabaseTranslator translator)
Prepares the given Select statement and sets any bind parameters.
-
-
-
Method Detail
-
prepareSelect
public static java.sql.PreparedStatement prepareSelect(java.sql.Connection connection, Select select, IDatabaseTranslator translator) throws java.sql.SQLException
Prepares the given Select statement and sets any bind parameters. Caller must close the returned statement.- Parameters:
connection
-select
-translator
-- Returns:
- the statement ready to execute, with parameter markers bound
- Throws:
java.sql.SQLException
-
-