Examples of Change


Examples of org.apache.ibatis.migration.Change

      List<Change> changes = new ArrayList<Change>();
      for (Map<String, Object> change : changelog) {
        String id = change.get("ID") == null ? null : change.get("ID").toString();
        String appliedAt = change.get("APPLIED_AT") == null ? null : change.get("APPLIED_AT").toString();
        String description = change.get("DESCRIPTION") == null ? null : change.get("DESCRIPTION").toString();
        changes.add(new Change(new BigDecimal(id), appliedAt, description));
      }
      return changes;
    } catch (SQLException e) {
      throw new MigrationException("Error querying last applied migration.  Cause: " + e, e);
    } finally {
View Full Code Here

Examples of org.apache.ibatis.migration.Change

    return new File(base.getAbsoluteFile() + File.separator + sub);
  }

  private Change parseChangeFromFilename(String filename) {
    try {
      Change change = new Change();
      String[] parts = filename.split("\\.")[0].split("_");
      change.setId(new BigDecimal(parts[0]));
      StringBuilder builder = new StringBuilder();
      for (int i = 1; i < parts.length; i++) {
        if (i > 1) builder.append(" ");
        builder.append(parts[i]);
      }
      change.setDescription(builder.toString());
      change.setFilename(filename);
      return change;
    } catch (Exception e) {
      throw new MigrationException("Error parsing change from file.  Cause: " + e, e);
    }
  }
View Full Code Here

Examples of org.apache.ibatis.migration.Change

    if (filenames == null) throw new MigrationException(scriptPath + " does not exist.");
    Arrays.sort(filenames);
    List<Change> migrations = new ArrayList<Change>();
    for (String filename : filenames) {
      if (filename.endsWith(".sql") && !"bootstrap.sql".equals(filename)) {
        Change change = parseChangeFromFilename(filename);
        migrations.add(change);
      }
    }
    return migrations;
  }
View Full Code Here

Examples of org.apache.ibatis.migration.Change

      List<Change> changes = new ArrayList<Change>();
      for (Map<String, Object> change : changelog) {
        String id = change.get("ID") == null ? null : change.get("ID").toString();
        String appliedAt = change.get("APPLIED_AT") == null ? null : change.get("APPLIED_AT").toString();
        String description = change.get("DESCRIPTION") == null ? null : change.get("DESCRIPTION").toString();
        changes.add(new Change(new BigDecimal(id), appliedAt, description));
      }
      return changes;
    } catch (SQLException e) {
      throw new MigrationException("Error querying last applied migration.  Cause: " + e, e);
    } finally {
View Full Code Here

Examples of org.apache.ibatis.migration.Change

    return new File(base.getAbsoluteFile() + File.separator + sub);
  }

  private Change parseChangeFromFilename(String filename) {
    try {
      Change change = new Change();
      String[] parts = filename.split("\\.")[0].split("_");
      change.setId(new BigDecimal(parts[0]));
      StringBuilder builder = new StringBuilder();
      for (int i = 1; i < parts.length; i++) {
        if (i > 1) builder.append(" ");
        builder.append(parts[i]);
      }
      change.setDescription(builder.toString());
      change.setFilename(filename);
      return change;
    } catch (Exception e) {
      throw new MigrationException("Error parsing change from file.  Cause: " + e, e);
    }
  }
View Full Code Here

Examples of org.apache.wicket.version.undo.Change

   */
  public final void removeAll()
  {
    if (children != null)
    {
      addStateChange(new Change()
      {
        private static final long serialVersionUID = 1L;

        final Object removedChildren = children;

View Full Code Here

Examples of org.apache.wicket.version.undo.Change

   */
  public final Button setDefaultFormProcessing(boolean defaultFormProcessing)
  {
    if (this.defaultFormProcessing != defaultFormProcessing)
    {
      addStateChange(new Change()
      {
        private static final long serialVersionUID = 1L;

        boolean formerValue = Button.this.defaultFormProcessing;

View Full Code Here

Examples of org.apache.wicket.version.undo.Change

   */
  public final Button setDefaultFormProcessing(boolean defaultFormProcessing)
  {
    if (this.defaultFormProcessing != defaultFormProcessing)
    {
      addStateChange(new Change()
      {
        private static final long serialVersionUID = 1L;

        boolean formerValue = Button.this.defaultFormProcessing;

View Full Code Here

Examples of org.apache.wicket.version.undo.Change

      public void onClick()
      {
        final int index = getList().indexOf(item.getModelObject());
        if (index != -1)
        {
          addStateChange(new Change()
          {
            private static final long serialVersionUID = 1L;

            final int oldIndex = index;
View Full Code Here

Examples of org.apache.wicket.version.undo.Change

      {
        final int index = getList().indexOf(item.getModelObject());
        if (index != -1)
        {

          addStateChange(new Change()
          {
            private static final long serialVersionUID = 1L;

            final int oldIndex = index;
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.