Class QueryUtil


  • public class QueryUtil
    extends Object
    Helper class to generate a PreparedStatement from a Select object.
    • Constructor Detail

      • QueryUtil

        public QueryUtil()
    • 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