/*
 * This file is generated by jOOQ.
 */
package ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.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.metrics.tables.CriminalAdministrativeLiability;


/**
 * Учет уголовной, административной ответственности
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class CriminalAdministrativeLiabilityRecord extends UpdatableRecordImpl<CriminalAdministrativeLiabilityRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>metrics.criminal_administrative_liability.criminal_administrative_liability_id</code>.
     */
    public void setCriminalAdministrativeLiabilityId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>metrics.criminal_administrative_liability.criminal_administrative_liability_id</code>.
     */
    public Long getCriminalAdministrativeLiabilityId() {
        return (Long) get(0);
    }

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

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

    /**
     * Setter for
     * <code>metrics.criminal_administrative_liability.update_date</code>.
     */
    public void setUpdateDate(Timestamp value) {
        set(2, value);
    }

    /**
     * Getter for
     * <code>metrics.criminal_administrative_liability.update_date</code>.
     */
    public Timestamp getUpdateDate() {
        return (Timestamp) get(2);
    }

    /**
     * Setter for
     * <code>metrics.criminal_administrative_liability.info_date</code>.
     */
    public void setInfoDate(Date value) {
        set(3, value);
    }

    /**
     * Getter for
     * <code>metrics.criminal_administrative_liability.info_date</code>.
     */
    public Date getInfoDate() {
        return (Date) get(3);
    }

    /**
     * Setter for
     * <code>metrics.criminal_administrative_liability.count_administrative</code>.
     */
    public void setCountAdministrative(Long value) {
        set(4, value);
    }

    /**
     * Getter for
     * <code>metrics.criminal_administrative_liability.count_administrative</code>.
     */
    public Long getCountAdministrative() {
        return (Long) get(4);
    }

    /**
     * Setter for
     * <code>metrics.criminal_administrative_liability.count_criminal</code>.
     */
    public void setCountCriminal(Long value) {
        set(5, value);
    }

    /**
     * Getter for
     * <code>metrics.criminal_administrative_liability.count_criminal</code>.
     */
    public Long getCountCriminal() {
        return (Long) get(5);
    }

    /**
     * Setter for
     * <code>metrics.criminal_administrative_liability.count_all</code>.
     */
    public void setCountAll(Long value) {
        set(6, value);
    }

    /**
     * Getter for
     * <code>metrics.criminal_administrative_liability.count_all</code>.
     */
    public Long getCountAll() {
        return (Long) get(6);
    }

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

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

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

    /**
     * Create a detached CriminalAdministrativeLiabilityRecord
     */
    public CriminalAdministrativeLiabilityRecord() {
        super(CriminalAdministrativeLiability.CRIMINAL_ADMINISTRATIVE_LIABILITY);
    }

    /**
     * Create a detached, initialised CriminalAdministrativeLiabilityRecord
     */
    public CriminalAdministrativeLiabilityRecord(Long criminalAdministrativeLiabilityId, String recruitmentId, Timestamp updateDate, Date infoDate, Long countAdministrative, Long countCriminal, Long countAll) {
        super(CriminalAdministrativeLiability.CRIMINAL_ADMINISTRATIVE_LIABILITY);

        setCriminalAdministrativeLiabilityId(criminalAdministrativeLiabilityId);
        setRecruitmentId(recruitmentId);
        setUpdateDate(updateDate);
        setInfoDate(infoDate);
        setCountAdministrative(countAdministrative);
        setCountCriminal(countCriminal);
        setCountAll(countAll);
        resetChangedOnNotNull();
    }
}
