Package net.pricefx.server.protocol


package net.pricefx.server.protocol
A forward-only cursor over a query result.

StreamResults reads a query result one row at a time. A logic gets one from the streaming methods of DatamartContext. Those methods are deprecated. New logics query Analytics data with PublicGroovyAPI.queryApi() instead.

Existing logics that still hold a cursor read it as below. Close it with withCloseable(), because a direct close() call may not run when an exception occurs.


 results.withCloseable { rows ->
     while (rows.next()) {
         def row = rows.get()
     }
 }
 

Reference

  • Interfaces
    Class
    Description
    Unifying (and very limited) JDBC ResultSet like API to a forward-only cursor on a query result, either from a Hibernate or PA query.