public Result < List < DATA > > read ( final String key , final TRANS trans , final Object ... objs ) { DAOGetter getter = new DAOGetter ( trans , dao , objs ) ; return get ( trans , key , getter ) ; // if(ld!=null) { // return Result.ok(ld);//.emptyList(ld.isEmpty()); // } // // Result Result if exists // if(getter.result==null) { // return Result.err(Status.ERR_NotFound, "No Cache or Lookup found on [%s]",dao.table()); // } // return getter.result; }
Slight Improved performance available when String and Obj versions are known .