public void updatePathOrder ( int profileId , int [ ] pathOrder ) { for ( int i = 0 ; i < pathOrder . length ; i ++ ) { EditService . updatePathTable ( Constants . PATH_PROFILE_PATH_ORDER , ( i + 1 ) , pathOrder [ i ] ) ; } }
Updates the path_order column in the table loops though the pathOrder array and changes the value to the loop index + 1 for the specified pathId