/*
 * This file is generated by jOOQ.
 */
package ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records;


import java.sql.Timestamp;

import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;

import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.Users;


/**
 * Пользователи
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UsersRecord extends UpdatableRecordImpl<UsersRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>metrics.users.users_id</code>.
     */
    public void setUsersId(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>metrics.users.users_id</code>.
     */
    public Long getUsersId() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>metrics.users.recruitment_id</code>.
     */
    public void setRecruitmentId(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>metrics.users.recruitment_id</code>.
     */
    public String getRecruitmentId() {
        return (String) get(1);
    }

    /**
     * Setter for <code>metrics.users.start_date</code>.
     */
    public void setStartDate(Timestamp value) {
        set(2, value);
    }

    /**
     * Getter for <code>metrics.users.start_date</code>.
     */
    public Timestamp getStartDate() {
        return (Timestamp) get(2);
    }

    /**
     * Setter for <code>metrics.users.close_date</code>.
     */
    public void setCloseDate(Timestamp value) {
        set(3, value);
    }

    /**
     * Getter for <code>metrics.users.close_date</code>.
     */
    public Timestamp getCloseDate() {
        return (Timestamp) get(3);
    }

    /**
     * Setter for <code>metrics.users.user_login</code>.
     */
    public void setUserLogin(String value) {
        set(4, value);
    }

    /**
     * Getter for <code>metrics.users.user_login</code>.
     */
    public String getUserLogin() {
        return (String) get(4);
    }

    /**
     * Setter for <code>metrics.users.user_secondname</code>.
     */
    public void setUserSecondname(String value) {
        set(5, value);
    }

    /**
     * Getter for <code>metrics.users.user_secondname</code>.
     */
    public String getUserSecondname() {
        return (String) get(5);
    }

    /**
     * Setter for <code>metrics.users.user_firstname</code>.
     */
    public void setUserFirstname(String value) {
        set(6, value);
    }

    /**
     * Getter for <code>metrics.users.user_firstname</code>.
     */
    public String getUserFirstname() {
        return (String) get(6);
    }

    /**
     * Setter for <code>metrics.users.user_middlename</code>.
     */
    public void setUserMiddlename(String value) {
        set(7, value);
    }

    /**
     * Getter for <code>metrics.users.user_middlename</code>.
     */
    public String getUserMiddlename() {
        return (String) get(7);
    }

    /**
     * Setter for <code>metrics.users.user_fio</code>.
     */
    public void setUserFio(String value) {
        set(8, value);
    }

    /**
     * Getter for <code>metrics.users.user_fio</code>.
     */
    public String getUserFio() {
        return (String) get(8);
    }

    // -------------------------------------------------------------------------
    // Primary key information
    // -------------------------------------------------------------------------

    @Override
    public Record1<Long> key() {
        return (Record1) super.key();
    }

    // -------------------------------------------------------------------------
    // Constructors
    // -------------------------------------------------------------------------

    /**
     * Create a detached UsersRecord
     */
    public UsersRecord() {
        super(Users.USERS);
    }

    /**
     * Create a detached, initialised UsersRecord
     */
    public UsersRecord(Long usersId, String recruitmentId, Timestamp startDate, Timestamp closeDate, String userLogin, String userSecondname, String userFirstname, String userMiddlename, String userFio) {
        super(Users.USERS);

        setUsersId(usersId);
        setRecruitmentId(recruitmentId);
        setStartDate(startDate);
        setCloseDate(closeDate);
        setUserLogin(userLogin);
        setUserSecondname(userSecondname);
        setUserFirstname(userFirstname);
        setUserMiddlename(userMiddlename);
        setUserFio(userFio);
        resetChangedOnNotNull();
    }
}
