Project

General

Profile

« Previous | Next » 

Revision 50947

close the db connection per request, in fetch claims by context id use like and wild character in order to get all claims of a community

View differences:

TestClass.java
150 150
            types.add(ClaimUtils.PUBLICATION);
151 151

  
152 152

  
153
            claims = fetchClaimHandler.fetchClaimsByUser("argirok_1@hotmail.com",1,0,types, false);
153
//            claims = fetchClaimHandler.fetchClaimsByUser("argirok_1@hotmail.com",1,0,types, false);
154
            claims = fetchClaimHandler.fetchClaimsByContext("egi",100,0,null,"claim.claim_date",false,types,false);
155
//            (String openaireId, Integer limit, Integer offset, String keyword, String orderField, boolean descending, List<String> types, boolean addCurationInfo) throws Exception, SQLStoreException {
154 156
//            claims = fetchClaimHandler.fetchClaimsByUser("argirok@di.uoa.gr",3,0,null,"claim.claim_date",false,types,false);
155 157
//
156 158
//            claims = fetchClaimHandler.fetchClaimsByProject("corda_______::ab9c77ce02967b24fc9c1a74276e4677",5,0);
......
171 173
//          Claim claim = fetchClaimHandler.fetchClaimById("5821");
172 174
//          System.out.println(fetchClaimHandler.claim2JSON(claim) );
173 175
//          System.out.println("ALL:"+fetchClaimHandler.countClaimsByUser("argirok@di.uoa.gr","EGI", types));
174
//          System.out.println("ALL:"+fetchClaimHandler.countClaimsByContext("egi::country::gr",null,types));
176
          System.out.println("ALL:"+fetchClaimHandler.countClaimsByContext("egi",null, new ArrayList<String>()));
175 177
//            System.out.println("ALL:"+fetchClaimHandler.countClaimsByProject("corda_______::ab9c77ce02967b24fc9c1a74276e4677",null,types));
176 178

  
177 179
//        System.out.println("ALL:"+fetchClaimHandler.countAllClaims("", types));

Also available in: Unified diff