org.catools.etl.model.CEtlCycle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of etl Show documentation
Show all versions of etl Show documentation
The base ETL to be used in other CATools project as a base contract.
package org.catools.etl.model;
import java.util.Date;
public class CEtlCycle {
private Long id;
private String name;
private String description;
private CEtlProject project;
private CEtlVersion version;
private String environment;
private Date endDate;
private String build;
private Date startDate;
public CEtlCycle() {
}
public CEtlCycle(Long id,
String name,
String description,
CEtlProject project,
CEtlVersion version,
String environment,
Date endDate,
String build,
Date startDate) {
this.id = id;
this.name = name;
this.description = description;
this.project = project;
this.version = version;
this.environment = environment;
this.endDate = endDate;
this.build = build;
this.startDate = startDate;
}
public CEtlCycle(String name,
String description,
CEtlProject project,
CEtlVersion version,
String environment,
Date endDate,
String build,
Date startDate) {
this.name = name;
this.description = description;
this.project = project;
this.version = version;
this.environment = environment;
this.endDate = endDate;
this.build = build;
this.startDate = startDate;
}
public Long getId() {
return id;
}
public CEtlCycle setId(long id) {
this.id = id;
return this;
}
public String getDescription() {
return description;
}
public CEtlProject getProject() {
return project;
}
public CEtlVersion getVersion() {
return version;
}
public String getEnvironment() {
return environment;
}
public Date getEndDate() {
return endDate;
}
public String getBuild() {
return build;
}
public String getName() {
return name;
}
public Date getStartDate() {
return startDate;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CEtlCycle cEtlCycle = (CEtlCycle) o;
if (description != null ? !description.equals(cEtlCycle.description) : cEtlCycle.description != null) {
return false;
}
if (project != null ? !project.equals(cEtlCycle.project) : cEtlCycle.project != null) {
return false;
}
if (version != null ? !version.equals(cEtlCycle.version) : cEtlCycle.version != null) {
return false;
}
if (environment != null ? !environment.equals(cEtlCycle.environment) : cEtlCycle.environment != null) {
return false;
}
if (endDate != null ? !endDate.equals(cEtlCycle.endDate) : cEtlCycle.endDate != null) {
return false;
}
if (build != null ? !build.equals(cEtlCycle.build) : cEtlCycle.build != null) {
return false;
}
if (name != null ? !name.equals(cEtlCycle.name) : cEtlCycle.name != null) {
return false;
}
return startDate != null ? startDate.equals(cEtlCycle.startDate) : cEtlCycle.startDate == null;
}
@Override
public int hashCode() {
int result = description != null ? description.hashCode() : 0;
result = 31 * result + (project != null ? project.hashCode() : 0);
result = 31 * result + (version != null ? version.hashCode() : 0);
result = 31 * result + (environment != null ? environment.hashCode() : 0);
result = 31 * result + (endDate != null ? endDate.hashCode() : 0);
result = 31 * result + (build != null ? build.hashCode() : 0);
result = 31 * result + (name != null ? name.hashCode() : 0);
result = 31 * result + (startDate != null ? startDate.hashCode() : 0);
return result;
}
@Override
public String toString() {
return "CEtlCycle{" +
"id=" +
id +
", description='" +
description +
'\'' +
", project=" +
project +
", versions=" +
version +
", environment='" +
environment +
'\'' +
", endDate=" +
endDate +
", build='" +
build +
'\'' +
", name='" +
name +
'\'' +
", startDate=" +
startDate +
'}';
}
}