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


import ervu_dashboard.ervu_dashboard.db_beans.public_.tables.Employment;

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


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>public.employment.employment_id</code>.
     */
    public void setEmploymentId(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>public.employment.employment_id</code>.
     */
    public Long getEmploymentId() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>public.employment.code</code>.
     */
    public void setCode(Integer value) {
        set(1, value);
    }

    /**
     * Getter for <code>public.employment.code</code>.
     */
    public Integer getCode() {
        return (Integer) get(1);
    }

    /**
     * Setter for <code>public.employment.name</code>.
     */
    public void setName(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>public.employment.name</code>.
     */
    public String getName() {
        return (String) get(2);
    }

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

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

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

    /**
     * Create a detached EmploymentRecord
     */
    public EmploymentRecord() {
        super(Employment.EMPLOYMENT);
    }

    /**
     * Create a detached, initialised EmploymentRecord
     */
    public EmploymentRecord(Long employmentId, Integer code, String name) {
        super(Employment.EMPLOYMENT);

        setEmploymentId(employmentId);
        setCode(code);
        setName(name);
        resetChangedOnNotNull();
    }
}
