Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QueryUtil

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