← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20960: minor fix

 

------------------------------------------------------------
revno: 20960
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-11-05 13:28:18 +0700
message:
  minor fix
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/DefaultQueryService.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/DefaultQueryService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/DefaultQueryService.java	2015-11-05 06:07:23 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/DefaultQueryService.java	2015-11-05 06:28:18 +0000
@@ -50,7 +50,7 @@
 public class DefaultQueryService implements QueryService
 {
     @Autowired
-    private QueryEngine<? extends IdentifiableObject> queryEngine;
+    private CriteriaQueryEngine criteriaQueryEngine;
 
     @Autowired
     private SchemaService schemaService;
@@ -59,14 +59,14 @@
     @SuppressWarnings( "unchecked" )
     public List<? extends IdentifiableObject> query( Query query )
     {
-        return queryEngine.query( query );
+        return criteriaQueryEngine.query( query );
     }
 
     @Override
     @SuppressWarnings( "unchecked" )
     public List<? extends IdentifiableObject> query( Query query, ResultTransformer transformer )
     {
-        List<? extends IdentifiableObject> objects = queryEngine.query( query );
+        List<? extends IdentifiableObject> objects = criteriaQueryEngine.query( query );
 
         if ( transformer != null )
         {
@@ -79,7 +79,7 @@
     @Override
     public int count( Query query )
     {
-        return queryEngine.count( query );
+        return criteriaQueryEngine.count( query );
     }
 
     @Override