Class QueryUtil
- java.lang.Object
-
- com.ibm.fhir.database.utils.query.QueryUtil
-
public class QueryUtil extends 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 PreparedStatement
prepareSelect(Connection connection, Select select, IDatabaseTranslator translator)
Prepares the given Select statement and sets any bind parameters.
-
-
-
Method Detail
-
prepareSelect
public static PreparedStatement prepareSelect(Connection connection, Select select, IDatabaseTranslator translator) throws 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:
SQLException
-
-