Examples of HistoryEntry


Examples of com.google.refine.history.HistoryEntry

                }
            }
           
            if (!_canceled) {
               
                HistoryEntry historyEntry = new HistoryEntry(
                    _historyEntryID,
                    _project,
                    _description,
                    ColumnAdditionByFetchingURLsOperation.this,
                    new ColumnAdditionChange(
View Full Code Here

Examples of com.google.refine.history.HistoryEntry

       
        String description = createDescription(column, cellsAtRows);
       
        Change change = new ColumnAdditionChange(_newColumnName, _columnInsertIndex, cellsAtRows);
       
        return new HistoryEntry(
            historyEntryID, project, description, this, change);
    }
View Full Code Here

Examples of com.google.refine.history.HistoryEntry

            throw new Exception("Another column already named " + _newColumnName);
        }
       
        Change change = new ColumnRenameChange(_oldColumnName, _newColumnName);
       
        return new HistoryEntry(historyEntryID, project, getBriefDescription(null), ColumnRenameOperation.this, change);
    }
View Full Code Here

Examples of com.google.refine.history.HistoryEntry

        }
       
        String description = "Copy " + cellChanges.size() + " recon judgments from column " +
            _fromColumnName + " to " + StringUtils.join(_toColumnNames);
       
        return new HistoryEntry(
            historyEntryID, project, description, this, new MassChange(cellChanges, false));
    }
View Full Code Here

Examples of com.google.refine.history.HistoryEntry

            rowIndices,
            tuples,
            _removeOriginalColumn
        );
       
        return new HistoryEntry(
            historyEntryID, project, description, this, change);
    }
View Full Code Here

Examples of com.google.refine.history.HistoryEntry

       
        List<Column> allColumns = new ArrayList<Column>(unchangedColumns);
        allColumns.addAll(newColumns);
        allColumns.addAll(newNoteColumns);
       
        return new HistoryEntry(
            historyEntryID,
            project,
            getBriefDescription(null),
            this,
            new MassRowColumnChange(allColumns, newRows)
View Full Code Here

Examples of com.google.refine.history.HistoryEntry

            long historyEntryID) throws Exception {
        String description = "Save RDF schema skeleton";
       
        Change change = new RdfSchemaChange(_schema);
       
        return new HistoryEntry(historyEntryID, project, description,
                SaveRdfSchemaOperation.this, change);
    }
View Full Code Here

Examples of com.sos.scheduler.model.answers.HistoryEntry

        if(objHistoryEntries.size() == 0) {
          logger.error(String.format("no history entry found for %1$s", strJobName));
          throw new JobSchedulerException(String.format("no history entry found for %1$s", strJobName));
        }
        else {
          HistoryEntry objHistoryEntry = objHistoryEntries.get(0);
          String strErrorText = objHistoryEntry.getErrorText();
          String strEndTime = objHistoryEntry.getEndTime();
          Date objDateEndTime = SOSDate.getDate(strEndTime, SOSDate.dateTimeFormat);       
          boolean flgRunSuccessful = isEmpty(strErrorText);
          boolean flgRunTooLate = objDateEndTime.before(objDateStartTime);
         
          if(flgRunTooLate || !flgRunSuccessful ) {
View Full Code Here

Examples of de.micromata.hibernate.history.HistoryEntry

   * @return id of the inserted objects if saved manually inside this method or null if the object has to be saved by save method (default).
   */
  public Serializable onBeforeSave(final Session session, final Object obj)
  {
    if (obj instanceof HistoryEntry) {
      final HistoryEntry entry = (HistoryEntry) obj;
      final Integer origEntityId = entry.getEntityId();
      final String entityClassname = entry.getClassName();
      final Serializable newId = getNewId(entityClassname, origEntityId);
      final List<PropertyDelta> delta = entry.getDelta();
      Serializable id = null;
      if (newId != null) {
        // No public access, so try this:
        invokeHistorySetter(entry, "setEntityId", Integer.class, newId);
      } else {
View Full Code Here

Examples of de.micromata.hibernate.history.HistoryEntry

    Integer id = a1.getId();
    a1.setName("History 2");
    addressDao.update(a1);
    HistoryEntry[] historyEntries = addressDao.getHistoryEntries(a1);
    assertEquals(2, historyEntries.length);
    HistoryEntry entry = historyEntries[0];
    log.debug(entry);
    assertHistoryEntry(entry, id, user, HistoryEntryType.UPDATE, "name", String.class, "History test", "History 2");
    entry = historyEntries[1];
    log.debug(entry);
    assertHistoryEntry(entry, id, user, HistoryEntryType.INSERT, null, null, null, null);

    a1.setTask(getTask("1.2"));
    addressDao.update(a1);
    historyEntries = addressDao.getHistoryEntries(a1);
    assertEquals(3, historyEntries.length);
    entry = historyEntries[0];
    log.debug(entry);
    assertHistoryEntry(entry, id, user, HistoryEntryType.UPDATE, "task", TaskDO.class, getTask("1.1").getId(), getTask("1.2").getId());

    a1.setTask(getTask("1.1"));
    a1.setName("History test");
    addressDao.update(a1);
    historyEntries = addressDao.getHistoryEntries(a1);
    assertEquals(4, historyEntries.length);
    entry = historyEntries[0];
    log.debug(entry);
    assertHistoryEntry(entry, id, user, HistoryEntryType.UPDATE, null, null, null, null);
    List<PropertyDelta> delta = entry.getDelta();
    assertEquals(2, delta.size());
    for (int i = 0; i < 2; i++) {
      PropertyDelta prop = delta.get(0);
      if ("name".equals(prop.getPropertyName()) == true) {
        assertPropertyDelta(prop, "name", String.class, "History 2", "History test");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.