Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036944Openbravo ERPA. Platformpublic2017-09-25 17:062022-02-01 08:08
guilleaer 
Triage Platform Base 
normalminoralways
newopen 
5
 
 
Core
No
0036944: Would be nice if OBQuery allows to set a timeout for a certain query
Currently it is posible to set a timeout for HQLQuery object but it is not possible to do it for OBQuery object
currently this code works

        final Query query = querybuilder.getDalQuery();
        setParameterValues(query, parameterValues);
        if (timeout != null) {
          query.setTimeout(timeout);
        }

I would like to do the same with OBQuery

    OBQuery<Order> obQueryPO = OBDal.getInstance().createQuery(Order.class, hqlPOQuery.toString());
    obQueryPO.setNamedParameter("warehouseId", warehouseId);
....
....
    obQueryPO.setMaxResult(limit);
>>>>>// obQueryPO.setQueryTimeout(timeout);
Patch attached
No tags attached.
diff obQueryTimeout.diff (2,050) 2017-09-25 17:06
https://issues.openbravo.com/file_download.php?file_id=11092&type=bug
Issue History
2017-09-25 17:06guilleaerNew Issue
2017-09-25 17:06guilleaerAssigned To => platform
2017-09-25 17:06guilleaerFile Added: obQueryTimeout.diff
2017-09-25 17:06guilleaerModules => Core
2017-09-25 17:06guilleaerTriggers an Emergency Pack => No
2017-09-25 17:10guilleaerIssue Monitored: guilleaer
2022-02-01 08:08alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.