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


import org.jooq.impl.TableRecordImpl;
import org.jooq.types.YearToSecond;

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


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class ViewUserWorkTimeRecord extends TableRecordImpl<ViewUserWorkTimeRecord> {

    private static final long serialVersionUID = 1L;

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

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

    /**
     * Setter for <code>journal_log.view_user_work_time.working_time</code>.
     */
    public void setWorkingTime(YearToSecond value) {
        set(1, value);
    }

    /**
     * Getter for <code>journal_log.view_user_work_time.working_time</code>.
     */
    public YearToSecond getWorkingTime() {
        return (YearToSecond) get(1);
    }

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

    /**
     * Create a detached ViewUserWorkTimeRecord
     */
    public ViewUserWorkTimeRecord() {
        super(ViewUserWorkTime.VIEW_USER_WORK_TIME);
    }

    /**
     * Create a detached, initialised ViewUserWorkTimeRecord
     */
    public ViewUserWorkTimeRecord(Long userWorkTimeId, YearToSecond workingTime) {
        super(ViewUserWorkTime.VIEW_USER_WORK_TIME);

        setUserWorkTimeId(userWorkTimeId);
        setWorkingTime(workingTime);
        resetChangedOnNotNull();
    }
}
