Package javolution.util

Examples of javolution.util.FastMap$EntrySet


            throw new NullPointerException("InputStream cannot be null!");
        this.reader = reader;

        for (Dao<? extends DBInterface> dao : pool.getDaos()) {
            // should we use existing values?? (Map<Long, DBInterface>) dao.getMap()
            simpleDaos.put(dao.getType(), new FastMap());
        }
    }
View Full Code Here


        return map;
    }

    private Map buildMapWithAnnotationInfo(Map annotationValues, String prefix, Method[] methods, Class annotationMethod) {
        for (Method method : methods) {
            if(annotationValues.isEmpty()) annotationValues = new FastMap().setShared(true);
           
            if (isSetter(method) && method.isAnnotationPresent(annotationMethod)) {
                extractDocumentFieldInfo(prefix, annotationValues, method);
            }
        }
View Full Code Here

    public Integer updateUrl(UrlDTO url) {
        return getSqlMapClientTemplate().update("updateUrl", url);
    }

    public Long insertConfigUrl(String url) {
        Map params = new FastMap();
        params.put("key", Constant.ACEGI_CONFIG_URL_QUERY_PARAM);
        params.put("value", url);
        return (Long) getSqlMapClientTemplate().insert("insertUrlAcegiConfig", params);
    }
View Full Code Here

        chiavi = null;
        return sb.toString();
    }

    private Map mapFromList(List urlsApp) {
        Map map = new FastMap();
        for (Iterator i = urlsApp.iterator(); i.hasNext();) {
            UrlDTO urlRole = (UrlDTO) i.next();
            String inMapRole = (String) map.get(urlRole.getUrl());
            if (inMapRole == null) {
                map.put(urlRole.getUrl(), urlRole.getRoleType());
            } else {
                StringBuilder sb = new StringBuilder(inMapRole).append(",").append(urlRole.getRoleType());
                map.put(urlRole.getUrl(), sb.toString());
            }
        }
        urlsApp = null;
        return map;
    }
View Full Code Here

*/
@SuppressWarnings("unchecked")
public class CentriDaoImpl extends SqlMapClientDaoSupport implements CentriDao {

    public void updateNumeroUtentiCentro(long idCentro, int numeroUtenti) {
        Map params = new FastMap();
        params.put("idCentro", idCentro);
        params.put("utenti", numeroUtenti);
        getSqlMapClientTemplate().update("updateNumeroUtentiCentro", params);
    }
View Full Code Here

    public Centro getCentro(String username) throws DataAccessException {
        return (Centro) getSqlMapClientTemplate().queryForObject("getCentroByName", username);
    }

    public List<CentroLight> getCentriByAlfabetico(String lettera, Integer pagina) throws DataAccessException {
        Map params = new FastMap();
        params.put("letteraLower", (new StringBuilder(lettera.toLowerCase().concat("%")).toString()));
        params.put("letteraUpper", (new StringBuilder(lettera.toUpperCase().concat("%")).toString()));
        params.put("limit", offset);
        params.put("offset", pagina * offset);
        return getSqlMapClientTemplate().queryForList("getCentriByAlfabetico", params);
    }
View Full Code Here

        params.put("offset", pagina * offset);
        return getSqlMapClientTemplate().queryForList("getCentriByAlfabetico", params);
    }

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

    public Integer deleteCentro(Long idCentro) throws DataAccessException {
        return getSqlMapClientTemplate().delete("deleteCentro", idCentro);
    }

    public List<CentroLight> getCentri(Integer rigaDiPartenza) throws DataAccessException {
        Map params = new FastMap();
        params.put("limit", offset);
        params.put("offset", rigaDiPartenza);
        return getSqlMapClientTemplate().queryForList("getCentri", params);
    }
View Full Code Here

    public boolean deleteFromRoles(String username) throws DataAccessException {
        return getSqlMapClientTemplate().delete("deleteRole", username) == 1 ? true : false;
    }

    public boolean insertInRoles(String username, String role) throws DataAccessException {
        Map params = new FastMap();
        params.put("username", username);
        params.put("rolename", role);
        return getSqlMapClientTemplate().insert("insertRole", params) != null ? true : false;
    }
View Full Code Here

*/
public class CredentialsDaoImpl extends SqlMapClientDaoSupport implements CredentialsDao {

    @SuppressWarnings("unchecked")
    public Credenziali getUser(String username, String password) throws DataAccessException {
        Map params = new FastMap();
        params.put("username", username);
        params.put("password", password);
        return (Credenziali) getSqlMapClientTemplate().queryForObject("getUser", params);
    }
View Full Code Here

TOP

Related Classes of javolution.util.FastMap$EntrySet

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.