/*
 * This file is generated by jOOQ.
 */
package ervu_dashboard.ervu_dashboard.db_beans.appeals.tables.records;


import ervu_dashboard.ervu_dashboard.db_beans.appeals.tables.ReviewRating;

import java.math.BigDecimal;
import java.sql.Date;
import java.util.UUID;

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


/**
 * Рейтинг рассмотрения жалоб уровень РФ
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class ReviewRatingRecord extends UpdatableRecordImpl<ReviewRatingRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>appeals.review_rating.id_review_rating</code>.
     */
    public void setIdReviewRating(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>appeals.review_rating.id_review_rating</code>.
     */
    public Long getIdReviewRating() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>appeals.review_rating.speed</code>. Скорость
     * рассмотрения
     */
    public void setSpeed(BigDecimal value) {
        set(1, value);
    }

    /**
     * Getter for <code>appeals.review_rating.speed</code>. Скорость
     * рассмотрения
     */
    public BigDecimal getSpeed() {
        return (BigDecimal) get(1);
    }

    /**
     * Setter for <code>appeals.review_rating.rating</code>. Оценка
     * удовлетворенности
     */
    public void setRating(BigDecimal value) {
        set(2, value);
    }

    /**
     * Getter for <code>appeals.review_rating.rating</code>. Оценка
     * удовлетворенности
     */
    public BigDecimal getRating() {
        return (BigDecimal) get(2);
    }

    /**
     * Setter for <code>appeals.review_rating.recording_date</code>. Дата записи
     */
    public void setRecordingDate(Date value) {
        set(3, value);
    }

    /**
     * Getter for <code>appeals.review_rating.recording_date</code>. Дата записи
     */
    public Date getRecordingDate() {
        return (Date) get(3);
    }

    /**
     * Setter for <code>appeals.review_rating.id_region</code>.
     */
    public void setIdRegion(Long value) {
        set(4, value);
    }

    /**
     * Getter for <code>appeals.review_rating.id_region</code>.
     */
    public Long getIdRegion() {
        return (Long) get(4);
    }

    /**
     * Setter for <code>appeals.review_rating.recruitment_id</code>.
     */
    public void setRecruitmentId(UUID value) {
        set(5, value);
    }

    /**
     * Getter for <code>appeals.review_rating.recruitment_id</code>.
     */
    public UUID getRecruitmentId() {
        return (UUID) get(5);
    }

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

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

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

    /**
     * Create a detached ReviewRatingRecord
     */
    public ReviewRatingRecord() {
        super(ReviewRating.REVIEW_RATING);
    }

    /**
     * Create a detached, initialised ReviewRatingRecord
     */
    public ReviewRatingRecord(Long idReviewRating, BigDecimal speed, BigDecimal rating, Date recordingDate, Long idRegion, UUID recruitmentId) {
        super(ReviewRating.REVIEW_RATING);

        setIdReviewRating(idReviewRating);
        setSpeed(speed);
        setRating(rating);
        setRecordingDate(recordingDate);
        setIdRegion(idRegion);
        setRecruitmentId(recruitmentId);
        resetChangedOnNotNull();
    }
}
