/FileExtraction/Java_unseen/GenSpectrum_LAPIS/server/src/main/java/org/jooq/lapis/tables/records/YPangolinAssignmentRecord.java
/*
 * This file is generated by jOOQ.
 */
package org.jooq.lapis.tables.records;


import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record2;
import org.jooq.Row2;
import org.jooq.impl.UpdatableRecordImpl;
import org.jooq.lapis.tables.YPangolinAssignment;


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>y_pangolin_assignment.gisaid_epi_isl</code>.
     */
    public void setGisaidEpiIsl(String value) {
        set(0, value);
    }

    /**
     * Getter for <code>y_pangolin_assignment.gisaid_epi_isl</code>.
     */
    public String getGisaidEpiIsl() {
        return (String) get(0);
    }

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

    /**
     * Getter for <code>y_pangolin_assignment.pango_lineage</code>.
     */
    public String getPangoLineage() {
        return (String) get(1);
    }

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

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

    // -------------------------------------------------------------------------
    // Record2 type implementation
    // -------------------------------------------------------------------------

    @Override
    public Row2<String, String> fieldsRow() {
        return (Row2) super.fieldsRow();
    }

    @Override
    public Row2<String, String> valuesRow() {
        return (Row2) super.valuesRow();
    }

    @Override
    public Field<String> field1() {
        return YPangolinAssignment.Y_PANGOLIN_ASSIGNMENT.GISAID_EPI_ISL;
    }

    @Override
    public Field<String> field2() {
        return YPangolinAssignment.Y_PANGOLIN_ASSIGNMENT.PANGO_LINEAGE;
    }

    @Override
    public String component1() {
        return getGisaidEpiIsl();
    }

    @Override
    public String component2() {
        return getPangoLineage();
    }

    @Override
    public String value1() {
        return getGisaidEpiIsl();
    }

    @Override
    public String value2() {
        return getPangoLineage();
    }

    @Override
    public YPangolinAssignmentRecord value1(String value) {
        setGisaidEpiIsl(value);
        return this;
    }

    @Override
    public YPangolinAssignmentRecord value2(String value) {
        setPangoLineage(value);
        return this;
    }

    @Override
    public YPangolinAssignmentRecord values(String value1, String value2) {
        value1(value1);
        value2(value2);
        return this;
    }

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

    /**
     * Create a detached YPangolinAssignmentRecord
     */
    public YPangolinAssignmentRecord() {
        super(YPangolinAssignment.Y_PANGOLIN_ASSIGNMENT);
    }

    /**
     * Create a detached, initialised YPangolinAssignmentRecord
     */
    public YPangolinAssignmentRecord(String gisaidEpiIsl, String pangoLineage) {
        super(YPangolinAssignment.Y_PANGOLIN_ASSIGNMENT);

        setGisaidEpiIsl(gisaidEpiIsl);
        setPangoLineage(pangoLineage);
    }
}
