code: protected void update(CmsPublishJobInfoBean publishJob) {
  
          if (OpenCms.getMemoryMonitor().requiresPersistency()) {
              CmsDbContext dbc = m_publishEngine.getDbContext(null);
              try {
                  m_publishEngine.getDriverManager().writePublishJob(dbc, publishJob);
              } catch (CmsException e) {
                  dbc.rollback();
                  if (LOG.isErrorEnabled()) {
                      LOG.error(e.getLocalizedMessage(), e);
                  }
              } finally {
                  dbc.clear();
              }
          }
      }
docs: Updates the given job in the list.<p>
  
  @param publishJob the publish job to