@Override
    public List<City> load(Criteria criteria, GenericLoadQuery loadGeneric, Connection conn) throws DaoQueryException {
        int pageSize = 50;

        List paramList = new ArrayList<>();
        StringBuilder sb = new StringBuilder(WHERE);
        String queryStr = new QueryMapper() {
            @Override
            public String mapQuery() {
                Appender.append(DAO_ID_CITY, DB_CITY_ID_CITY, criteria, paramList, sb, AND);
                Appender.append(DAO_CITY_NAME, DB_CITY_NAME, criteria, paramList, sb, AND);
                Appender.append(DAO_CITY_STATUS, DB_CITY_STATUS, criteria, paramList, sb, AND);
                Appender.append(DAO_CITY_PICTURE, DB_CITY_PICTURE, criteria, paramList, sb, AND);
                Appender.append(DAO_ID_COUNTRY, DB_CITY_ID_COUNTRY, criteria, paramList, sb, AND);
                Appender.append(DAO_ID_DESCRIPTION, DB_CITY_ID_DESCRIPTION, criteria, paramList, sb, AND);
                if (paramList.isEmpty()) {
                    return LOAD_QUERY;
                } else {
                    return sb.insert(0, LOAD_QUERY).toString();
                }
            }
        }.mapQuery();

        try {
            return loadGeneric.sendQuery(queryStr, paramList.toArray(), pageSize, conn, (ResultSet rs, int rowNum) -> {
                City bean = new City();
                bean.setIdCity(rs.getInt(DB_CITY_ID_CITY));
                bean.setCountry(new Country(rs.getInt(DB_CITY_ID_COUNTRY)));
                bean.setName(rs.getString(DB_CITY_NAME));
                bean.setStatus(rs.getShort(DB_CITY_STATUS));
                bean.setPicture(rs.getString(DB_CITY_PICTURE));
                bean.setDescription(new Description(rs.getInt(DB_CITY_ID_DESCRIPTION)));
                return bean;
            });
        } catch (DaoException ex) {
             throw new DaoQueryException(ERR_CITY_LOAD, ex);
        }
    }