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


import java.math.BigDecimal;

import org.jooq.impl.TableRecordImpl;

import ru.micord.webbpm.ervu.business_metrics.db_beans.actualization.tables.ViewAppReason;


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>actualization.view_app_reason.app_reason_id</code>.
     */
    public void setAppReasonId(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>actualization.view_app_reason.app_reason_id</code>.
     */
    public Long getAppReasonId() {
        return (Long) get(0);
    }

    /**
     * Setter for
     * <code>actualization.view_app_reason.percent_place_of_stay</code>.
     */
    public void setPercentPlaceOfStay(BigDecimal value) {
        set(1, value);
    }

    /**
     * Getter for
     * <code>actualization.view_app_reason.percent_place_of_stay</code>.
     */
    public BigDecimal getPercentPlaceOfStay() {
        return (BigDecimal) get(1);
    }

    /**
     * Setter for <code>actualization.view_app_reason.percent_work</code>.
     */
    public void setPercentWork(BigDecimal value) {
        set(2, value);
    }

    /**
     * Getter for <code>actualization.view_app_reason.percent_work</code>.
     */
    public BigDecimal getPercentWork() {
        return (BigDecimal) get(2);
    }

    /**
     * Setter for
     * <code>actualization.view_app_reason.percent_place_of_study</code>.
     */
    public void setPercentPlaceOfStudy(BigDecimal value) {
        set(3, value);
    }

    /**
     * Getter for
     * <code>actualization.view_app_reason.percent_place_of_study</code>.
     */
    public BigDecimal getPercentPlaceOfStudy() {
        return (BigDecimal) get(3);
    }

    /**
     * Setter for
     * <code>actualization.view_app_reason.percent_family_status</code>.
     */
    public void setPercentFamilyStatus(BigDecimal value) {
        set(4, value);
    }

    /**
     * Getter for
     * <code>actualization.view_app_reason.percent_family_status</code>.
     */
    public BigDecimal getPercentFamilyStatus() {
        return (BigDecimal) get(4);
    }

    /**
     * Setter for <code>actualization.view_app_reason.percent_education</code>.
     */
    public void setPercentEducation(BigDecimal value) {
        set(5, value);
    }

    /**
     * Getter for <code>actualization.view_app_reason.percent_education</code>.
     */
    public BigDecimal getPercentEducation() {
        return (BigDecimal) get(5);
    }

    /**
     * Setter for <code>actualization.view_app_reason.percent_renaming</code>.
     */
    public void setPercentRenaming(BigDecimal value) {
        set(6, value);
    }

    /**
     * Getter for <code>actualization.view_app_reason.percent_renaming</code>.
     */
    public BigDecimal getPercentRenaming() {
        return (BigDecimal) get(6);
    }

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

    /**
     * Create a detached ViewAppReasonRecord
     */
    public ViewAppReasonRecord() {
        super(ViewAppReason.VIEW_APP_REASON);
    }

    /**
     * Create a detached, initialised ViewAppReasonRecord
     */
    public ViewAppReasonRecord(Long appReasonId, BigDecimal percentPlaceOfStay, BigDecimal percentWork, BigDecimal percentPlaceOfStudy, BigDecimal percentFamilyStatus, BigDecimal percentEducation, BigDecimal percentRenaming) {
        super(ViewAppReason.VIEW_APP_REASON);

        setAppReasonId(appReasonId);
        setPercentPlaceOfStay(percentPlaceOfStay);
        setPercentWork(percentWork);
        setPercentPlaceOfStudy(percentPlaceOfStudy);
        setPercentFamilyStatus(percentFamilyStatus);
        setPercentEducation(percentEducation);
        setPercentRenaming(percentRenaming);
        resetChangedOnNotNull();
    }
}
