Bug fixed: Tuple now is ok to use. 
I also implement method 'getCount' and 'getCountByParams' of
GenericDaoImpl