/*
 * 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.UserWorkTime;


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>journal_log.user_work_time.user_work_time_id</code>.
     */
    public void setUserWorkTimeId(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>journal_log.user_work_time.user_work_time_id</code>.
     */
    public Long getUserWorkTimeId() {
        return (Long) get(0);
    }

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

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

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

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

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

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

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

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

    /**
     * Setter for <code>journal_log.user_work_time.start_working_time</code>.
     */
    public void setStartWorkingTime(Timestamp value) {
        set(5, value);
    }

    /**
     * Getter for <code>journal_log.user_work_time.start_working_time</code>.
     */
    public Timestamp getStartWorkingTime() {
        return (Timestamp) get(5);
    }

    /**
     * Setter for <code>journal_log.user_work_time.stop_working_time</code>.
     */
    public void setStopWorkingTime(Timestamp value) {
        set(6, value);
    }

    /**
     * Getter for <code>journal_log.user_work_time.stop_working_time</code>.
     */
    public Timestamp getStopWorkingTime() {
        return (Timestamp) get(6);
    }

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

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

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

    /**
     * Create a detached UserWorkTimeRecord
     */
    public UserWorkTimeRecord() {
        super(UserWorkTime.USER_WORK_TIME);
    }

    /**
     * Create a detached, initialised UserWorkTimeRecord
     */
    public UserWorkTimeRecord(Long userWorkTimeId, String recruitmentId, Long userId, Timestamp updateDate, Date infoDate, Timestamp startWorkingTime, Timestamp stopWorkingTime) {
        super(UserWorkTime.USER_WORK_TIME);

        setUserWorkTimeId(userWorkTimeId);
        setRecruitmentId(recruitmentId);
        setUserId(userId);
        setUpdateDate(updateDate);
        setInfoDate(infoDate);
        setStartWorkingTime(startWorkingTime);
        setStopWorkingTime(stopWorkingTime);
        resetChangedOnNotNull();
    }
}
