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


import java.sql.Date;
import java.sql.Timestamp;

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

import ru.micord.webbpm.ervu.business_metrics.db_beans.journal_log.tables.UserInfo;


/**
 * Журналирование. Информация о пользователе
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UserInfoRecord extends UpdatableRecordImpl<UserInfoRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>journal_log.user_info.user_info_id</code>.
     */
    public void setUserInfoId(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>journal_log.user_info.user_info_id</code>.
     */
    public Long getUserInfoId() {
        return (Long) get(0);
    }

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

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

    /**
     * Setter for <code>journal_log.user_info.user_id</code>.
     */
    public void setUserId(Long value) {
        set(2, value);
    }

    /**
     * Getter for <code>journal_log.user_info.user_id</code>.
     */
    public Long getUserId() {
        return (Long) get(2);
    }

    /**
     * Setter for <code>journal_log.user_info.update_date</code>.
     */
    public void setUpdateDate(Timestamp value) {
        set(3, value);
    }

    /**
     * Getter for <code>journal_log.user_info.update_date</code>.
     */
    public Timestamp getUpdateDate() {
        return (Timestamp) get(3);
    }

    /**
     * Setter for <code>journal_log.user_info.info_date</code>.
     */
    public void setInfoDate(Date value) {
        set(4, value);
    }

    /**
     * Getter for <code>journal_log.user_info.info_date</code>.
     */
    public Date getInfoDate() {
        return (Date) get(4);
    }

    /**
     * Setter for <code>journal_log.user_info.count_role</code>.
     */
    public void setCountRole(Long value) {
        set(5, value);
    }

    /**
     * Getter for <code>journal_log.user_info.count_role</code>.
     */
    public Long getCountRole() {
        return (Long) get(5);
    }

    /**
     * Setter for <code>journal_log.user_info.count_error</code>.
     */
    public void setCountError(Long value) {
        set(6, value);
    }

    /**
     * Getter for <code>journal_log.user_info.count_error</code>.
     */
    public Long getCountError() {
        return (Long) get(6);
    }

    /**
     * Setter for <code>journal_log.user_info.count_authentication</code>.
     */
    public void setCountAuthentication(Long value) {
        set(7, value);
    }

    /**
     * Getter for <code>journal_log.user_info.count_authentication</code>.
     */
    public Long getCountAuthentication() {
        return (Long) get(7);
    }

    /**
     * Setter for <code>journal_log.user_info.count_work_together</code>.
     */
    public void setCountWorkTogether(Long value) {
        set(8, value);
    }

    /**
     * Getter for <code>journal_log.user_info.count_work_together</code>.
     */
    public Long getCountWorkTogether() {
        return (Long) get(8);
    }

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

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

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

    /**
     * Create a detached UserInfoRecord
     */
    public UserInfoRecord() {
        super(UserInfo.USER_INFO);
    }

    /**
     * Create a detached, initialised UserInfoRecord
     */
    public UserInfoRecord(Long userInfoId, String recruitmentId, Long userId, Timestamp updateDate, Date infoDate, Long countRole, Long countError, Long countAuthentication, Long countWorkTogether) {
        super(UserInfo.USER_INFO);

        setUserInfoId(userInfoId);
        setRecruitmentId(recruitmentId);
        setUserId(userId);
        setUpdateDate(updateDate);
        setInfoDate(infoDate);
        setCountRole(countRole);
        setCountError(countError);
        setCountAuthentication(countAuthentication);
        setCountWorkTogether(countWorkTogether);
        resetChangedOnNotNull();
    }
}
