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


import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.OrgOkved;

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


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

    private static final long serialVersionUID = 1L;

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

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

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

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

    /**
     * Setter for <code>public.org_okved.okved</code>.
     */
    public void setOkved(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>public.org_okved.okved</code>.
     */
    public String getOkved() {
        return (String) get(2);
    }

    /**
     * Setter for <code>public.org_okved.organization</code>.
     */
    public void setOrganization(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>public.org_okved.organization</code>.
     */
    public String getOrganization() {
        return (String) get(3);
    }

    /**
     * Setter for <code>public.org_okved.main_okved</code>.
     */
    public void setMainOkved(Boolean value) {
        set(4, value);
    }

    /**
     * Getter for <code>public.org_okved.main_okved</code>.
     */
    public Boolean getMainOkved() {
        return (Boolean) get(4);
    }

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

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

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

    /**
     * Create a detached OrgOkvedRecord
     */
    public OrgOkvedRecord() {
        super(OrgOkved.ORG_OKVED);
    }

    /**
     * Create a detached, initialised OrgOkvedRecord
     */
    public OrgOkvedRecord(Long id, String code, String okved, String organization, Boolean mainOkved) {
        super(OrgOkved.ORG_OKVED);

        setId(id);
        setCode(code);
        setOkved(okved);
        setOrganization(organization);
        setMainOkved(mainOkved);
        resetChangedOnNotNull();
    }
}
