Enabling Streaming Query in a Custom Application

You can enable streaming query in a custom application.

  1. Open Query.java.

  2. Replace the following section:

    BusinessObjectWithSelectList list = query.evaluateSelect(cntx, 
    selects);
    
    For (int i=0; i<list.size(); i++) {
    
        BusinessObjectWithSelect bo = list.getElement(i);
    
    ?
    
    }
    

    With this:

    QueryIterator itr = query.getIterator(cntx, selects, pageSize);
    
    while (itr.hasNext()) {
    
        BusinessObjectWithSelect bo = itr.next();
    
    ?
    
    }