Code example for BigInteger

Methods: intValue

0
 
    	BigInteger n = (BigInteger) getQueryFromSearch(searchParam, null, true).getSingleResult();
		if (n == null) {
			return 0; 
		} 
		return n.intValue();
	} 
 
	/** 
     * 
     * @param searchParam 
     * @param parameters 
     * @return 
     */ 
    public List<Pesquisa> search(String searchParam, SearchFilter parameters) {
 
		List<Object[]> objList = getQueryFromSearch(searchParam, parameters, false).getResultList();
 
		List<Pesquisa> list = new ArrayList<Pesquisa>(objList.size());
		for (Object[] obj : objList) {