private void update ( final String id , final JSONObject oldJsonObject , final JSONObject jsonObject , final List < Object > paramList , final StringBuilder sql ) throws JSONException { final JSONObject needUpdateJsonObject = getNeedUpdateJsonObject ( oldJsonObject , jsonObject ) ; if ( 0 == needUpdateJsonObject . length ( ) ) { LOGGER . log ( Level . TRACE , "Nothing to update [{0}] for repository [{1}]" , id , getName ( ) ) ; return ; } setUpdateProperties ( id , needUpdateJsonObject , paramList , sql ) ; }
Compares the specified old json object and new json object updates it if need .