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

org.zodiac.ds.api.config.DynamicDataSourceConfig Maven / Gradle / Ivy

package org.zodiac.ds.api.config;

import java.io.Serializable;
import java.util.Objects;

import org.zodiac.ds.api.DatabaseType;

public class DynamicDataSourceConfig implements Serializable {

    private static final long serialVersionUID = -4811825869808145951L;

    private String id;

    private String name;

    private String description;

    private DatabaseType databaseType;

    public DynamicDataSourceConfig() {
        super();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

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

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public DatabaseType getDatabaseType() {
        return databaseType;
    }

    public void setDatabaseType(DatabaseType databaseType) {
        this.databaseType = databaseType;
    }

    @Override
    public int hashCode() {
        return Objects.hash(databaseType, description, id, name);
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        DynamicDataSourceConfig other = (DynamicDataSourceConfig)obj;
        return databaseType == other.databaseType && Objects.equals(description, other.description)
            && Objects.equals(id, other.id) && Objects.equals(name, other.name);
    }

    @Override
    public String toString() {
        return "[id=" + id + ", name=" + name + ", description=" + description + ", databaseType="
            + databaseType + "]";
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy