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

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


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>public.files.file_id</code>.
     */
    public void setFileId(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>public.files.file_id</code>.
     */
    public Long getFileId() {
        return (Long) get(0);
    }

    /**
     * Setter for <code>public.files.file</code>.
     */
    public void setFile(byte[] value) {
        set(1, value);
    }

    /**
     * Getter for <code>public.files.file</code>.
     */
    public byte[] getFile() {
        return (byte[]) get(1);
    }

    /**
     * Setter for <code>public.files.file_name</code>.
     */
    public void setFileName(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>public.files.file_name</code>.
     */
    public String getFileName() {
        return (String) get(2);
    }

    /**
     * Setter for <code>public.files.interaction_log_id</code>.
     */
    public void setInteractionLogId(Long value) {
        set(3, value);
    }

    /**
     * Getter for <code>public.files.interaction_log_id</code>.
     */
    public Long getInteractionLogId() {
        return (Long) get(3);
    }

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

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

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

    /**
     * Create a detached FilesRecord
     */
    public FilesRecord() {
        super(Files.FILES);
    }

    /**
     * Create a detached, initialised FilesRecord
     */
    public FilesRecord(Long fileId, byte[] file, String fileName, Long interactionLogId) {
        super(Files.FILES);

        setFileId(fileId);
        setFile(file);
        setFileName(fileName);
        setInteractionLogId(interactionLogId);
        resetChangedOnNotNull();
    }
}
