public void removeOverride ( int overrideId , int pathId , Integer ordinal , String clientUUID ) { // TODO: reorder priorities after removal PreparedStatement statement = null ; try ( Connection sqlConnection = sqlService . getConnection ( ) ) { int enabledId = getEnabledEndpoint ( pathId , overrideId , ordinal , clientUUID ) . getId ( ) ; statement = sqlConnection . prepareStatement ( "DELETE FROM " + Constants . DB_TABLE_ENABLED_OVERRIDE + " WHERE " + Constants . GENERIC_ID + " = ?" ) ; statement . setInt ( 1 , enabledId ) ; statement . executeUpdate ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } finally { try { if ( statement != null ) { statement . close ( ) ; } } catch ( Exception e ) { } } }
Remove specified override id from enabled overrides for path