All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mongock.driver.api.entry.ExecutedChangeEntry Maven / Gradle / Ivy

package io.mongock.driver.api.entry;

import java.util.Date;

public class ExecutedChangeEntry {

  private final String changeId;

  private final String author;

  private final Date timestamp;
  
  private final String changeLogClass;

  private final String changeSetMethod;

  public ExecutedChangeEntry(
                     String changeId,
                     String author,
                     Date timestamp,
                     String changeLogClass,
                     String changeSetMethod) {
    this.changeId = changeId;
    this.author = author;
    this.timestamp = new Date(timestamp.getTime());
    this.changeLogClass = changeLogClass;
    this.changeSetMethod = changeSetMethod;
  }

  public String getChangeId() {
    return this.changeId;
  }

  public String getAuthor() {
    return this.author;
  }

  public Date getTimestamp() {
    return this.timestamp;
  }
  
  public String getChangeLogClass() {
    return this.changeLogClass;
  }

  public String getChangeSetMethod() {
    return this.changeSetMethod;
  }

  @Override
  public String toString() {
    return "ExecutedChangeEntry{" +
        "changeId='" + changeId + '\'' +
        ", author='" + author + '\'' +
        ", timestamp=" + timestamp +
        ", changeLogClass='" + changeLogClass + '\'' +
        ", changeSetMethod='" + changeSetMethod + '\'' +
        '}';
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy