code: public void update(NodeData data) throws RepositoryException, UnsupportedOperationException,
        InvalidItemStateException, IllegalStateException
     {
        checkIfOpened();
        try
        {
           String cid = getInternalId(data.getIdentifier());
           // order numb update
           if (updateNodeByIdentifier(data.getPersistedVersion(), data.getQPath().getIndex(), data.getOrderNumber(), cid) <= 0)
           {
              throw new JCRInvalidItemStateException("(update) Node not found " + data.getQPath().getAsString() + " "
                 + data.getIdentifier() + ". Probably was deleted by another session ", data.getIdentifier(),
                 ItemState.UPDATED);
           }
  
           if (LOG.isDebugEnabled())
           {
              LOG.debug("Node updated " + data.getQPath().getAsString() + ", " + data.getIdentifier() + ", "
                 + data.getPrimaryTypeName().getAsString());
           }
  
        }
        catch (SQLException e)
        {
           if (LOG.isDebugEnabled())
           {
              LOG.error("Node update. Database error: " + e, e);
           }
           exceptionHandler.handleUpdateException(e, data);
        }
     }
docs: {@inheritDoc}