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

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


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>public.reason_registration.reason_registration_id</code>.
     */
    public void setReasonRegistrationId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>public.reason_registration.reason_registration_id</code>.
     */
    public Long getReasonRegistrationId() {
        return (Long) get(0);
    }

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

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

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

    /**
     * Getter for <code>public.reason_registration.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 ReasonRegistrationRecord
     */
    public ReasonRegistrationRecord() {
        super(ReasonRegistration.REASON_REGISTRATION);
    }

    /**
     * Create a detached, initialised ReasonRegistrationRecord
     */
    public ReasonRegistrationRecord(Long reasonRegistrationId, Integer code, String name) {
        super(ReasonRegistration.REASON_REGISTRATION);

        setReasonRegistrationId(reasonRegistrationId);
        setCode(code);
        setName(name);
        resetChangedOnNotNull();
    }
}
