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

com.rinoto.migramongo.MigrationRun Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy