Class QueryStatement<T>

    • Constructor Detail

      • QueryStatement

        protected QueryStatement​(java.lang.String sql)
      • QueryStatement

        protected QueryStatement​(java.lang.String sql,
                                 int fetchSize)
    • Method Detail

      • executeWithConnection

        public T executeWithConnection​(java.sql.Connection connection)
      • executeQuery

        public T executeQuery​(java.sql.PreparedStatement statement)
                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • prepare

        public abstract void prepare​(java.sql.PreparedStatement statement)
                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • processResults

        public abstract T processResults​(java.sql.ResultSet set)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getSql

        public java.lang.String getSql()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object