Generalised filters
This commit is contained in:
parent
3bd6b02fdc
commit
01c740ef30
|
@ -72,7 +72,7 @@ public interface AccountingPersistenceBackendQuery {
|
|||
* If the list contains more than one filter with the same key an Exception is thrown
|
||||
* when trying to query.
|
||||
*/
|
||||
public void setFilters(Collection<Filter> filters);
|
||||
public void setFilters(Collection<? extends Filter> filters);
|
||||
|
||||
/**
|
||||
* Query the persistence obtaining a Map where the date is the key and the
|
||||
|
|
|
@ -61,7 +61,7 @@ public class AccountingPersistenceQuery implements AccountingPersistenceBackendQ
|
|||
protected TemporalConstraint temporalConstraint;
|
||||
|
||||
protected Set<String> contexts;
|
||||
protected Collection<Filter> filters;
|
||||
protected Collection<? extends Filter> filters;
|
||||
|
||||
protected ObjectMapper objectMapper;
|
||||
|
||||
|
@ -91,7 +91,7 @@ public class AccountingPersistenceQuery implements AccountingPersistenceBackendQ
|
|||
}
|
||||
|
||||
@Override
|
||||
public void setFilters(Collection<Filter> filters) {
|
||||
public void setFilters(Collection<? extends Filter> filters) {
|
||||
this.filters = filters;
|
||||
accountingPersistenceBackendQuery.setFilters(filters);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue