Interface BaseStatement

    • Method Detail

      • createDriverResultSet

        ResultSet createDriverResultSet​(Field[] fields,
                                        List<Tuple> tuples)
                                 throws SQLException
        Create a synthetic resultset from data provided by the driver.
        Parameters:
        fields - the column metadata for the resultset
        tuples - the resultset data
        Returns:
        the new ResultSet
        Throws:
        SQLException - if something goes wrong
      • createResultSet

        ResultSet createResultSet​(Query originalQuery,
                                  Field[] fields,
                                  List<Tuple> tuples,
                                  ResultCursor cursor)
                           throws SQLException
        Create a resultset from data retrieved from the server.
        Parameters:
        originalQuery - the query that generated this resultset; used when dealing with updateable resultsets
        fields - the column metadata for the resultset
        tuples - the resultset data
        cursor - the cursor to use to retrieve more data from the server; if null, no additional data is present.
        Returns:
        the new ResultSet
        Throws:
        SQLException - if something goes wrong
      • executeWithFlags

        boolean executeWithFlags​(String sql,
                                 int flags)
                          throws SQLException
        Execute a query, passing additional query flags.
        Parameters:
        sql - the query to execute (JDBC-style query)
        flags - additional QueryExecutor flags for execution; these are bitwise-ORed into the default flags.
        Returns:
        true if there is a result set
        Throws:
        SQLException - if something goes wrong.
      • executeWithFlags

        boolean executeWithFlags​(CachedQuery cachedQuery,
                                 int flags)
                          throws SQLException
        Execute a query, passing additional query flags.
        Parameters:
        cachedQuery - the query to execute (native to PostgreSQL)
        flags - additional QueryExecutor flags for execution; these are bitwise-ORed into the default flags.
        Returns:
        true if there is a result set
        Throws:
        SQLException - if something goes wrong.
      • executeWithFlags

        boolean executeWithFlags​(int flags)
                          throws SQLException
        Execute a prepared query, passing additional query flags.
        Parameters:
        flags - additional QueryExecutor flags for execution; these are bitwise-ORed into the default flags.
        Returns:
        true if there is a result set
        Throws:
        SQLException - if something goes wrong.