com.rinoto.migramongo.MigrationRun Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of migramongo-core Show documentation
Show all versions of migramongo-core Show documentation
Tool for migrating mongodb scripts
package com.rinoto.migramongo;
import java.util.Date;
import com.rinoto.migramongo.MigraMongoStatus.MigrationStatus;
public class MigrationRun {
protected String info;
protected MigrationStatus status;
protected String statusMessage;
protected Date createdAt;
protected Date updatedAt;
public MigrationRun() {
this.createdAt = new Date();
}
public MigrationRun complete(MigrationStatus status, String statusMessage) {
this.status = status;
this.statusMessage = statusMessage;
this.updatedAt = new Date();
return this;
}
public String getInfo() {
return info;
}
public void setInfo(String info) {
this.info = info;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public MigrationStatus getStatus() {
return status;
}
public void setStatus(MigrationStatus status) {
this.status = status;
}
public String getStatusMessage() {
return statusMessage;
}
public void setStatusMessage(String statusMessage) {
this.statusMessage = statusMessage;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
}