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


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

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

import ru.micord.ervu_dashboard.db_beans.ervu_dashboard.tables.BorderCrossing;


/**
 * сведения о фактах пересечения границы РФ
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class BorderCrossingRecord extends UpdatableRecordImpl<BorderCrossingRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>ervu_dashboard.border_crossing.id</code>.
     */
    public void setId(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>ervu_dashboard.border_crossing.id</code>.
     */
    public Long getId() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>ervu_dashboard.border_crossing.recruit_id</code>.
     */
    public void setRecruitId(UUID value) {
        set(1, value);
    }

    /**
     * Getter for <code>ervu_dashboard.border_crossing.recruit_id</code>.
     */
    public UUID getRecruitId() {
        return (UUID) get(1);
    }

    /**
     * Setter for <code>ervu_dashboard.border_crossing.date_crossing</code>.
     * дата пересечения границы
     */
    public void setDateCrossing(Date value) {
        set(2, value);
    }

    /**
     * Getter for <code>ervu_dashboard.border_crossing.date_crossing</code>.
     * дата пересечения границы
     */
    public Date getDateCrossing() {
        return (Date) get(2);
    }

    /**
     * Setter for <code>ervu_dashboard.border_crossing.return_date</code>. дата
     * возвращения
     */
    public void setReturnDate(Date value) {
        set(3, value);
    }

    /**
     * Getter for <code>ervu_dashboard.border_crossing.return_date</code>. дата
     * возвращения
     */
    public Date getReturnDate() {
        return (Date) get(3);
    }

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

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

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

    /**
     * Create a detached BorderCrossingRecord
     */
    public BorderCrossingRecord() {
        super(BorderCrossing.BORDER_CROSSING);
    }

    /**
     * Create a detached, initialised BorderCrossingRecord
     */
    public BorderCrossingRecord(Long id, UUID recruitId, Date dateCrossing, Date returnDate) {
        super(BorderCrossing.BORDER_CROSSING);

        setId(id);
        setRecruitId(recruitId);
        setDateCrossing(dateCrossing);
        setReturnDate(returnDate);
        resetChangedOnNotNull();
    }
}
