Search in sources :

Example 1 with SqlViewKeyColumnNamesMap

use of de.metas.ui.web.view.descriptor.SqlViewKeyColumnNamesMap in project metasfresh-webui-api by metasfresh.

the class PickingTerminalViewInvalidationAdvisor method findAffectedRowIds.

@Override
public Set<DocumentId> findAffectedRowIds(final Set<TableRecordReference> recordRefs, final IView view) {
    final Set<Integer> shipmentScheduleIds = extractShipmentScheduleIds(recordRefs);
    if (shipmentScheduleIds.isEmpty()) {
        return ImmutableSet.of();
    }
    final SqlViewKeyColumnNamesMap keyColumnNamesMap = SqlViewKeyColumnNamesMap.ofIntKeyField(I_M_Packageable_V.COLUMNNAME_M_ShipmentSchedule_ID);
    return SqlViewRowIdsOrderedSelectionFactory.retrieveRowIdsForLineIds(keyColumnNamesMap, view.getViewId(), shipmentScheduleIds);
}
Also used : SqlViewKeyColumnNamesMap(de.metas.ui.web.view.descriptor.SqlViewKeyColumnNamesMap)

Aggregations

SqlViewKeyColumnNamesMap (de.metas.ui.web.view.descriptor.SqlViewKeyColumnNamesMap)1