/*
 * This file is generated by jOOQ.
 */
package com.databasir.dao.tables.pojos;


import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class DataSourcePojo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer       id;
    private Integer       projectId;
    private String        databaseName;
    private String        databaseType;
    private String        url;
    private String        username;
    private String        password;
    private LocalDateTime updateAt;
    private LocalDateTime createAt;

    public DataSourcePojo() {}

    public DataSourcePojo(DataSourcePojo value) {
        this.id = value.id;
        this.projectId = value.projectId;
        this.databaseName = value.databaseName;
        this.databaseType = value.databaseType;
        this.url = value.url;
        this.username = value.username;
        this.password = value.password;
        this.updateAt = value.updateAt;
        this.createAt = value.createAt;
    }

    public DataSourcePojo(
        Integer       id,
        Integer       projectId,
        String        databaseName,
        String        databaseType,
        String        url,
        String        username,
        String        password,
        LocalDateTime updateAt,
        LocalDateTime createAt
    ) {
        this.id = id;
        this.projectId = projectId;
        this.databaseName = databaseName;
        this.databaseType = databaseType;
        this.url = url;
        this.username = username;
        this.password = password;
        this.updateAt = updateAt;
        this.createAt = createAt;
    }

    /**
     * Getter for <code>databasir.data_source.id</code>.
     */
    public Integer getId() {
        return this.id;
    }

    /**
     * Setter for <code>databasir.data_source.id</code>.
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * Getter for <code>databasir.data_source.project_id</code>.
     */
    public Integer getProjectId() {
        return this.projectId;
    }

    /**
     * Setter for <code>databasir.data_source.project_id</code>.
     */
    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    /**
     * Getter for <code>databasir.data_source.database_name</code>.
     */
    public String getDatabaseName() {
        return this.databaseName;
    }

    /**
     * Setter for <code>databasir.data_source.database_name</code>.
     */
    public void setDatabaseName(String databaseName) {
        this.databaseName = databaseName;
    }

    /**
     * Getter for <code>databasir.data_source.database_type</code>.
     */
    public String getDatabaseType() {
        return this.databaseType;
    }

    /**
     * Setter for <code>databasir.data_source.database_type</code>.
     */
    public void setDatabaseType(String databaseType) {
        this.databaseType = databaseType;
    }

    /**
     * Getter for <code>databasir.data_source.url</code>.
     */
    public String getUrl() {
        return this.url;
    }

    /**
     * Setter for <code>databasir.data_source.url</code>.
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * Getter for <code>databasir.data_source.username</code>.
     */
    public String getUsername() {
        return this.username;
    }

    /**
     * Setter for <code>databasir.data_source.username</code>.
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * Getter for <code>databasir.data_source.password</code>.
     */
    public String getPassword() {
        return this.password;
    }

    /**
     * Setter for <code>databasir.data_source.password</code>.
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * Getter for <code>databasir.data_source.update_at</code>.
     */
    public LocalDateTime getUpdateAt() {
        return this.updateAt;
    }

    /**
     * Setter for <code>databasir.data_source.update_at</code>.
     */
    public void setUpdateAt(LocalDateTime updateAt) {
        this.updateAt = updateAt;
    }

    /**
     * Getter for <code>databasir.data_source.create_at</code>.
     */
    public LocalDateTime getCreateAt() {
        return this.createAt;
    }

    /**
     * Setter for <code>databasir.data_source.create_at</code>.
     */
    public void setCreateAt(LocalDateTime createAt) {
        this.createAt = createAt;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder("DataSourcePojo (");

        sb.append(id);
        sb.append(", ").append(projectId);
        sb.append(", ").append(databaseName);
        sb.append(", ").append(databaseType);
        sb.append(", ").append(url);
        sb.append(", ").append(username);
        sb.append(", ").append(password);
        sb.append(", ").append(updateAt);
        sb.append(", ").append(createAt);

        sb.append(")");
        return sb.toString();
    }
}
