Package javolution.util

Examples of javolution.util.FastMap


    public List<AmministratoreLight> getAdminsByAlfabetico(String lettera, int pagina) throws DataAccessException {
        if (lettera.length() > 1) {
            return new FastList(0);
        } else {
            Map params = new FastMap();
            params.put("lettera", (new StringBuilder(lettera.toLowerCase().concat("%")).toString()));
            params.put("limit", offset);
            params.put("offset", pagina * offset);
            return getSqlMapClientTemplate().queryForList("getAdminsByAlfabetico", params);
        }
    }
View Full Code Here


            return getSqlMapClientTemplate().queryForList("getAdminsByAlfabetico", params);
        }
    }

    public List<AmministratoreLight> getAdminsByNominativo(String nominativo, int pagina) throws DataAccessException {
        Map params = new FastMap();
        params.put("nominativo", (new StringBuilder(nominativo.toLowerCase().concat("%")).toString()));
        params.put("limit", offset);
        params.put("offset", pagina * offset);
        return getSqlMapClientTemplate().queryForList("getAdminsByNominativo", params);
    }
View Full Code Here

    public Amministratore getAmministratoreCentro(long idCentro) throws DataAccessException {
        return (Amministratore) getSqlMapClientTemplate().queryForObject("getAdminCentro", idCentro);
    }

    public Integer deleteAmministratore(long idAdmin, long idCentro) throws DataAccessException {
        Map map = new FastMap();
        map.put("id", idAdmin);
        map.put("centro", idCentro);
        return getSqlMapClientTemplate().delete("deleteAdmin", map);
    }
View Full Code Here

    }

    @SuppressWarnings("unchecked")
    private ModelAndView valorizzaModelAndView(HttpServletRequest req, String ext, byte[] bytes) throws Exception, IOException {

        Map params = new FastMap();
        params.put(Constant.ID_CENTRO, WebUtils.getIdCentro(req));
        params.put(Constant.TEMP, WebUtils.getTempDir(req));
        params.put(Constant.EXT, ext);
        params.put(Constant.ID, req.getSession().getId());
        List utentiFile = bindService.getUtenti(params, bytes);
        int numeroUtenti = utentiFile.size();
        utentiFile = null;
        return utentiFile.size() > 0 ? uploadAndBindSuccess(numeroUtenti) : unSuccessBind(req);
    }
View Full Code Here

        return new ModelAndView("reportViewHtml", getModel(req, Constant.JASPER_EXT_HTML));
    }

    private Map getModel(HttpServletRequest req, String extension) throws Exception {
        Collection reportData = utentiManager.getUtentiCentroReport(WebUtils.getIdCentro(req));
        Map model = new FastMap();
        model.put("jasperData", reportData);
        model.put("format", extension);
        return model;
    }
View Full Code Here

    public boolean updateCancellazioneGruppo(long idGruppo) {
        return getSqlMapClientTemplate().update("updateCancellazioneGruppo", idGruppo) > 0 ? true : false;
    }

    public List<UtenteLight> getUtentiGruppo(long idCentro, long idGruppo) {
        Map params = new FastMap();
        params.put("idCentro", idCentro);
        params.put("idGruppo", idGruppo);
        return getSqlMapClientTemplate().queryForList("getUtentiGruppo", params);
    }
View Full Code Here

        // attenzione alle sql injection, deve arrivare una lettera di un solo
        // carattere
        if (lettera.length() > 1) {
            return new FastList(0);
        } else {
            Map params = new FastMap();
            params.put("letteraLower", (new StringBuilder(lettera.toLowerCase().concat("%")).toString()));
            params.put("letteraUpper", (new StringBuilder(lettera.toUpperCase().concat("%")).toString()));
            params.put("centro", idCentro);
            params.put("limit", offset);
            params.put("offset", pagina * offset);
            return getSqlMapClientTemplate().queryForList("getUtentiByAlfabetico", params);
        }
    }
View Full Code Here

    public int getNumeroUtentiCentro(long idCentro) {
        return (Integer) getSqlMapClientTemplate().queryForObject("selectCountNumeroUtentiCentro", idCentro);
    }

    public boolean deleteUtente(long id, long idCentro) throws DataAccessException {
        Map params = new FastMap();
        params.put("id", id);
        params.put("centro", idCentro);
        return getSqlMapClientTemplate().delete("deleteUtente", params) == 1 ? true : false;
    }
View Full Code Here

        params.put("centro", idCentro);
        return getSqlMapClientTemplate().delete("deleteUtente", params) == 1 ? true : false;
    }

    public Utente getUtente(long id, long idCentro) throws DataAccessException {
        Map params = new FastMap();
        params.put("id", id);
        params.put("centro", idCentro);
        return (Utente) getSqlMapClientTemplate().queryForObject("getUtente", params);
    }
View Full Code Here

        params.put("centro", idCentro);
        return (Utente) getSqlMapClientTemplate().queryForObject("getUtente", params);
    }

    public List<UtenteLight> getUtentiByCap(String cap, long idCentro, int pagina) throws DataAccessException {
        Map params = new FastMap();
        params.put("cap", cap);
        params.put("idCentro", idCentro);
        params.put("limit", offset);
        params.put("offset", pagina * offset);
        return getSqlMapClientTemplate().queryForList("getUtentiByCap", params);
    }
View Full Code Here

TOP

Related Classes of javolution.util.FastMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.