public static boolean isAnyIndexedValueChanged(Properties ctx, GridTab tab, boolean newRecord) { for (final MIndexTable index : MIndexTable.getByTable(ctx, tab.getTableName())) { if (index.isIndexedValuesChanged(tab, newRecord)) { return true; } } return false; }
public static List<I_AD_Index_Table> getAffectedIndexes( Properties ctx, GridTab tab, boolean newRecord) { final List<I_AD_Index_Table> list = new ArrayList<I_AD_Index_Table>(); for (final MIndexTable index : MIndexTable.getByTable(ctx, tab.getTableName())) { if (index.isMatched(tab, newRecord)) { list.add(index); } } return list; }