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

liquibase.hub.model.HubChangeLog Maven / Gradle / Ivy

There is a newer version: 4.29.2
Show newest version
package liquibase.hub.model;

import java.util.UUID;

public class HubChangeLog implements HubModel {

    private UUID id;
    private String fileName;
    private String name;
    private Project project;
    private String status;

    @Override
    public UUID getId() {
        return id;
    }

    public HubChangeLog setId(UUID id) {
        this.id = id;
        return this;
    }

    public String getFileName() {
        return fileName;
    }

    public HubChangeLog setFileName(String fileName) {
        this.fileName = fileName;
        return this;
    }

    public String getName() {
        return name;
    }

    public HubChangeLog setName(String name) {
        this.name = name;
        return this;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "ID " + getId() + " (" + fileName + "::" + name + ")";
    }

    public Project getProject() {
        return project;
    }

    public HubChangeLog setProject(Project project) {
        this.project = project;
        return this;
    }

    public boolean isActive() {
        return status != null && status.toLowerCase().equals("active");
    }

    public boolean isInactive() {
        return status != null && status.toLowerCase().equals("inactive");
    }

    public boolean isDeleted() {
        return status != null && status.toLowerCase().equals("deleted");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy