liquibase.hub.model.HubChangeLog Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy