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

org.catools.etl.model.CEtlCycle Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy