@Test public void computeSelectQueryString() throws Exception { Map<String, Object> filterMap = new LinkedHashMap<>(); filterMap.put("status", "failed"); filterMap.put("wiki", "mywiki"); assertEquals("from org.xwiki.mail.MailStatus where mail_status like :status and mail_wiki like :wiki order by date desc", this.mocker.getComponentUnderTest().computeSelectQueryString(filterMap, "date", false)); }
protected String computeSelectQueryString(Map<String, Object> filterMap, String sortField, boolean sortAscending) { return computeQueryString(String.format("from %s", MailStatus.class.getName()), filterMap, sortField, sortAscending); }
DatabaseMailStatusStore implements MailStatusStore { protected String computeSelectQueryString(Map<String, Object> filterMap, String sortField, boolean sortAscending) { return computeQueryString(String.format("from %s", MailStatus.class.getName()), filterMap, sortField, sortAscending); } }
DatabaseMailStatusStore implements MailStatusStore { protected String computeSelectQueryString(Map<String, Object> filterMap, String sortField, boolean sortAscending) { return computeQueryString(String.format("from %s", MailStatus.class.getName()), filterMap, sortField, sortAscending); }  }
DatabaseMailStatusStore implements MailStatusStore { protected String computeSelectQueryString(Map<String, Object> filterMap, String sortField, boolean sortAscending) { return computeQueryString(String.format("from %s", MailStatus.class.getName()), filterMap, sortField, sortAscending); }  @Override void save(final MailStatus status, final Map<String, Object> parameters); @Override MailStatus load(String uniqueMessageId); @Override List<MailStatus> load(final Map<String, Object> filterMap, final int offset, final int count,
        String sortField, boolean sortAscending); @Override long count(final Map<String, Object> filterMap); @Override void delete(final String uniqueMessageId, Map<String, Object> parameters); }
DatabaseMailStatusStore implements MailStatusStore { protected String computeSelectQueryString(Map<String, Object> filterMap, String sortField, boolean sortAscending) { return computeQueryString(String.format("from %s", MailStatus.class.getName()), filterMap, sortField, sortAscending); }  @Override void save(final MailStatus status, final Map<String, Object> parameters); @Override MailStatus load(String uniqueMessageId); @Override List<MailStatus> load(final Map<String, Object> filterMap, final int offset, final int count,
        String sortField, boolean sortAscending); @Override long count(final Map<String, Object> filterMap); @Override void delete(final String uniqueMessageId, Map<String, Object> parameters);  }