public void disableAll ( int profileId , String client_uuid ) { PreparedStatement statement = null ; try ( Connection sqlConnection = sqlService . getConnection ( ) ) { statement = sqlConnection . prepareStatement ( "DELETE FROM " + Constants . DB_TABLE_ENABLED_OVERRIDE + " WHERE " + Constants . CLIENT_PROFILE_ID + " = ?" + " AND " + Constants . CLIENT_CLIENT_UUID + " =? " ) ; statement . setInt ( 1 , profileId ) ; statement . setString ( 2 , client_uuid ) ; statement . executeUpdate ( ) ; statement . close ( ) ; } catch ( SQLException e ) { e . printStackTrace ( ) ; } finally { try { if ( statement != null ) { statement . close ( ) ; } } catch ( Exception e ) { } } }
Delete all enabled overrides for a client