/*
 * This file is generated by jOOQ.
*/
package top.zbeboy.isy.domain.tables.records;


import javax.annotation.Generated;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.jooq.Field;
import org.jooq.Record2;
import org.jooq.Row2;
import org.jooq.impl.TableRecordImpl;

import top.zbeboy.isy.domain.tables.GraduationDesignReleaseFile;


/**
 * This class is generated by jOOQ.
 */
@Generated(
    value = {
        "http://www.jooq.org",
        "jOOQ version:3.10.7"
    },
    comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class GraduationDesignReleaseFileRecord extends TableRecordImpl<GraduationDesignReleaseFileRecord> implements Record2<String, String> {

    private static final long serialVersionUID = -708860812;

    /**
     * Setter for <code>isy.graduation_design_release_file.graduation_design_release_id</code>.
     */
    public void setGraduationDesignReleaseId(String value) {
        set(0, value);
    }

    /**
     * Getter for <code>isy.graduation_design_release_file.graduation_design_release_id</code>.
     */
    @NotNull
    @Size(max = 64)
    public String getGraduationDesignReleaseId() {
        return (String) get(0);
    }

    /**
     * Setter for <code>isy.graduation_design_release_file.file_id</code>.
     */
    public void setFileId(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>isy.graduation_design_release_file.file_id</code>.
     */
    @NotNull
    @Size(max = 64)
    public String getFileId() {
        return (String) get(1);
    }

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

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

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

    /**
     * {@inheritDoc}
     */
    @Override
    public Field<String> field1() {
        return GraduationDesignReleaseFile.GRADUATION_DESIGN_RELEASE_FILE.GRADUATION_DESIGN_RELEASE_ID;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public Field<String> field2() {
        return GraduationDesignReleaseFile.GRADUATION_DESIGN_RELEASE_FILE.FILE_ID;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String component1() {
        return getGraduationDesignReleaseId();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String component2() {
        return getFileId();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String value1() {
        return getGraduationDesignReleaseId();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String value2() {
        return getFileId();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public GraduationDesignReleaseFileRecord value1(String value) {
        setGraduationDesignReleaseId(value);
        return this;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public GraduationDesignReleaseFileRecord value2(String value) {
        setFileId(value);
        return this;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public GraduationDesignReleaseFileRecord values(String value1, String value2) {
        value1(value1);
        value2(value2);
        return this;
    }

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

    /**
     * Create a detached GraduationDesignReleaseFileRecord
     */
    public GraduationDesignReleaseFileRecord() {
        super(GraduationDesignReleaseFile.GRADUATION_DESIGN_RELEASE_FILE);
    }

    /**
     * Create a detached, initialised GraduationDesignReleaseFileRecord
     */
    public GraduationDesignReleaseFileRecord(String graduationDesignReleaseId, String fileId) {
        super(GraduationDesignReleaseFile.GRADUATION_DESIGN_RELEASE_FILE);

        set(0, graduationDesignReleaseId);
        set(1, fileId);
    }
}
