/*
 * 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.Gender;

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


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>public.gender.gender_id</code>.
     */
    public void setGenderId(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>public.gender.gender_id</code>.
     */
    public Long getGenderId() {
        return (Long) get(0);
    }

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

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

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

    /**
     * Getter for <code>public.gender.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 GenderRecord
     */
    public GenderRecord() {
        super(Gender.GENDER);
    }

    /**
     * Create a detached, initialised GenderRecord
     */
    public GenderRecord(Long genderId, String code, String name) {
        super(Gender.GENDER);

        setGenderId(genderId);
        setCode(code);
        setName(name);
        resetChangedOnNotNull();
    }
}
