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


import ervu_dashboard.ervu_dashboard.db_beans.public_.Public;
import ervu_dashboard.ervu_dashboard.db_beans.public_.tables.records.JobEntryLogRecord;

import java.sql.Date;
import java.util.Collection;

import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.Name;
import org.jooq.PlainSQL;
import org.jooq.QueryPart;
import org.jooq.SQL;
import org.jooq.Schema;
import org.jooq.Select;
import org.jooq.Stringly;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;


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

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of <code>public.job_entry_log</code>
     */
    public static final JobEntryLog JOB_ENTRY_LOG = new JobEntryLog();

    /**
     * The class holding records for this type
     */
    @Override
    public Class<JobEntryLogRecord> getRecordType() {
        return JobEntryLogRecord.class;
    }

    /**
     * The column <code>public.job_entry_log.id_batch</code>.
     */
    public final TableField<JobEntryLogRecord, Long> ID_BATCH = createField(DSL.name("id_batch"), SQLDataType.BIGINT, this, "");

    /**
     * The column <code>public.job_entry_log.channel_id</code>.
     */
    public final TableField<JobEntryLogRecord, String> CHANNEL_ID = createField(DSL.name("channel_id"), SQLDataType.CHAR(36), this, "");

    /**
     * The column <code>public.job_entry_log.log_date</code>.
     */
    public final TableField<JobEntryLogRecord, Date> LOG_DATE = createField(DSL.name("log_date"), SQLDataType.DATE, this, "");

    /**
     * The column <code>public.job_entry_log.transname</code>.
     */
    public final TableField<JobEntryLogRecord, String> TRANSNAME = createField(DSL.name("transname"), SQLDataType.VARCHAR, this, "");

    /**
     * The column <code>public.job_entry_log.stepname</code>.
     */
    public final TableField<JobEntryLogRecord, String> STEPNAME = createField(DSL.name("stepname"), SQLDataType.VARCHAR, this, "");

    /**
     * The column <code>public.job_entry_log.lines_read</code>.
     */
    public final TableField<JobEntryLogRecord, String> LINES_READ = createField(DSL.name("lines_read"), SQLDataType.VARCHAR, this, "");

    /**
     * The column <code>public.job_entry_log.lines_written</code>.
     */
    public final TableField<JobEntryLogRecord, String> LINES_WRITTEN = createField(DSL.name("lines_written"), SQLDataType.VARCHAR, this, "");

    /**
     * The column <code>public.job_entry_log.lines_updated</code>.
     */
    public final TableField<JobEntryLogRecord, String> LINES_UPDATED = createField(DSL.name("lines_updated"), SQLDataType.VARCHAR, this, "");

    /**
     * The column <code>public.job_entry_log.lines_input</code>.
     */
    public final TableField<JobEntryLogRecord, String> LINES_INPUT = createField(DSL.name("lines_input"), SQLDataType.VARCHAR, this, "");

    /**
     * The column <code>public.job_entry_log.lines_output</code>.
     */
    public final TableField<JobEntryLogRecord, String> LINES_OUTPUT = createField(DSL.name("lines_output"), SQLDataType.VARCHAR, this, "");

    /**
     * The column <code>public.job_entry_log.lines_rejected</code>.
     */
    public final TableField<JobEntryLogRecord, String> LINES_REJECTED = createField(DSL.name("lines_rejected"), SQLDataType.VARCHAR, this, "");

    /**
     * The column <code>public.job_entry_log.errors</code>.
     */
    public final TableField<JobEntryLogRecord, String> ERRORS = createField(DSL.name("errors"), SQLDataType.VARCHAR, this, "");

    /**
     * The column <code>public.job_entry_log.RESULT</code>.
     */
    public final TableField<JobEntryLogRecord, String> RESULT = createField(DSL.name("RESULT"), SQLDataType.VARCHAR, this, "");

    /**
     * The column <code>public.job_entry_log.nr_result_rows</code>.
     */
    public final TableField<JobEntryLogRecord, String> NR_RESULT_ROWS = createField(DSL.name("nr_result_rows"), SQLDataType.VARCHAR, this, "");

    /**
     * The column <code>public.job_entry_log.nr_result_files</code>.
     */
    public final TableField<JobEntryLogRecord, String> NR_RESULT_FILES = createField(DSL.name("nr_result_files"), SQLDataType.VARCHAR, this, "");

    private JobEntryLog(Name alias, Table<JobEntryLogRecord> aliased) {
        this(alias, aliased, (Field<?>[]) null, null);
    }

    private JobEntryLog(Name alias, Table<JobEntryLogRecord> aliased, Field<?>[] parameters, Condition where) {
        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
    }

    /**
     * Create an aliased <code>public.job_entry_log</code> table reference
     */
    public JobEntryLog(String alias) {
        this(DSL.name(alias), JOB_ENTRY_LOG);
    }

    /**
     * Create an aliased <code>public.job_entry_log</code> table reference
     */
    public JobEntryLog(Name alias) {
        this(alias, JOB_ENTRY_LOG);
    }

    /**
     * Create a <code>public.job_entry_log</code> table reference
     */
    public JobEntryLog() {
        this(DSL.name("job_entry_log"), null);
    }

    @Override
    public Schema getSchema() {
        return aliased() ? null : Public.PUBLIC;
    }

    @Override
    public JobEntryLog as(String alias) {
        return new JobEntryLog(DSL.name(alias), this);
    }

    @Override
    public JobEntryLog as(Name alias) {
        return new JobEntryLog(alias, this);
    }

    @Override
    public JobEntryLog as(Table<?> alias) {
        return new JobEntryLog(alias.getQualifiedName(), this);
    }

    /**
     * Rename this table
     */
    @Override
    public JobEntryLog rename(String name) {
        return new JobEntryLog(DSL.name(name), null);
    }

    /**
     * Rename this table
     */
    @Override
    public JobEntryLog rename(Name name) {
        return new JobEntryLog(name, null);
    }

    /**
     * Rename this table
     */
    @Override
    public JobEntryLog rename(Table<?> name) {
        return new JobEntryLog(name.getQualifiedName(), null);
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    public JobEntryLog where(Condition condition) {
        return new JobEntryLog(getQualifiedName(), aliased() ? this : null, null, condition);
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    public JobEntryLog where(Collection<? extends Condition> conditions) {
        return where(DSL.and(conditions));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    public JobEntryLog where(Condition... conditions) {
        return where(DSL.and(conditions));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    public JobEntryLog where(Field<Boolean> condition) {
        return where(DSL.condition(condition));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    @PlainSQL
    public JobEntryLog where(SQL condition) {
        return where(DSL.condition(condition));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    @PlainSQL
    public JobEntryLog where(@Stringly.SQL String condition) {
        return where(DSL.condition(condition));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    @PlainSQL
    public JobEntryLog where(@Stringly.SQL String condition, Object... binds) {
        return where(DSL.condition(condition, binds));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    @PlainSQL
    public JobEntryLog where(@Stringly.SQL String condition, QueryPart... parts) {
        return where(DSL.condition(condition, parts));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    public JobEntryLog whereExists(Select<?> select) {
        return where(DSL.exists(select));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    public JobEntryLog whereNotExists(Select<?> select) {
        return where(DSL.notExists(select));
    }
}
