@SuppressWarnings(value={"unchecked"})
public void updateTable(GDDate initialDate, GDDate finishDate, String typeOfFilter) {
table.removeAll();
table.redraw();
try {
Map <String, LinkedOperation> map = (Map <String, LinkedOperation>) system.query(new GetLinkedOperation());
List <LinkedOperation> list = new ArrayList <LinkedOperation> (map.values());
SortComparator comparator = new SortComparator();
Collections.sort(list, comparator);
for (LinkedOperation linkedOperation : list) {
if (!linkedOperation.isChecked() && !linkedOperation.getOperation().getAccount().isBankAccount() && (!linkedOperation.getOperation().isCredit() || linkedOperation.getOperation().isDiscountable() && typeOfFilter.equals("Parcelas com desconto") ) && linkedOperation.getOperation().getDateTime().afterOrEqualsDay(initialDate) && linkedOperation.getOperation().getDateTime().beforeOrEqualsDay(finishDate)) {