Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0036944
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Openbravo ERP] A. Platformminoralways2017-09-25 17:062022-02-01 08:08
ReporterguilleaerView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0036944: Would be nice if OBQuery allows to set a timeout for a certain query

DescriptionCurrently it is posible to set a timeout for HQLQuery object but it is not possible to do it for OBQuery object
Steps To Reproducecurrently 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);
Proposed SolutionPatch attached
TagsNo tags attached.
Attached Filesdiff file icon obQueryTimeout.diff [^] (2,050 bytes) 2017-09-25 17:06 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2017-09-25 17:06 guilleaer New Issue
2017-09-25 17:06 guilleaer Assigned To => platform
2017-09-25 17:06 guilleaer File Added: obQueryTimeout.diff
2017-09-25 17:06 guilleaer Modules => Core
2017-09-25 17:06 guilleaer Triggers an Emergency Pack => No
2017-09-25 17:10 guilleaer Issue Monitored: guilleaer
2022-02-01 08:08 alostale Assigned To platform => Triage Platform Base


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker