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


import java.sql.Timestamp;
import java.util.Collection;

import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.Identity;
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.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;

import ru.micord.ervu_dashboard.db_beans.public_.Keys;
import ru.micord.ervu_dashboard.db_beans.public_.Public;
import ru.micord.ervu_dashboard.db_beans.public_.tables.records.WorkflowLogsRecord;


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

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of <code>public.workflow_logs</code>
     */
    public static final WorkflowLogs WORKFLOW_LOGS = new WorkflowLogs();

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

    /**
     * The column <code>public.workflow_logs.logging_id</code>.
     */
    public final TableField<WorkflowLogsRecord, Long> LOGGING_ID = createField(DSL.name("logging_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");

    /**
     * The column <code>public.workflow_logs.loggingdate</code>.
     */
    public final TableField<WorkflowLogsRecord, Timestamp> LOGGINGDATE = createField(DSL.name("loggingdate"), SQLDataType.TIMESTAMP(0), this, "");

    /**
     * The column <code>public.workflow_logs.loggingphase</code>.
     */
    public final TableField<WorkflowLogsRecord, String> LOGGINGPHASE = createField(DSL.name("loggingphase"), SQLDataType.CLOB, this, "");

    /**
     * The column <code>public.workflow_logs.workflowname</code>.
     */
    public final TableField<WorkflowLogsRecord, String> WORKFLOWNAME = createField(DSL.name("workflowname"), SQLDataType.CLOB, this, "");

    /**
     * The column <code>public.workflow_logs.workflowfilename</code>.
     */
    public final TableField<WorkflowLogsRecord, String> WORKFLOWFILENAME = createField(DSL.name("workflowfilename"), SQLDataType.CLOB, this, "");

    /**
     * The column <code>public.workflow_logs.workflowstart</code>.
     */
    public final TableField<WorkflowLogsRecord, Timestamp> WORKFLOWSTART = createField(DSL.name("workflowstart"), SQLDataType.TIMESTAMP(0), this, "");

    /**
     * The column <code>public.workflow_logs.workflowend</code>.
     */
    public final TableField<WorkflowLogsRecord, Timestamp> WORKFLOWEND = createField(DSL.name("workflowend"), SQLDataType.TIMESTAMP(0), this, "");

    /**
     * The column <code>public.workflow_logs.workflowlogchannelid</code>.
     */
    public final TableField<WorkflowLogsRecord, String> WORKFLOWLOGCHANNELID = createField(DSL.name("workflowlogchannelid"), SQLDataType.CLOB, this, "");

    /**
     * The column <code>public.workflow_logs.workflowparentlogchannelid</code>.
     */
    public final TableField<WorkflowLogsRecord, String> WORKFLOWPARENTLOGCHANNELID = createField(DSL.name("workflowparentlogchannelid"), SQLDataType.CLOB, this, "");

    /**
     * The column <code>public.workflow_logs.workflowlogging</code>.
     */
    public final TableField<WorkflowLogsRecord, String> WORKFLOWLOGGING = createField(DSL.name("workflowlogging"), SQLDataType.CLOB, this, "");

    /**
     * The column <code>public.workflow_logs.workflowerrorcount</code>.
     */
    public final TableField<WorkflowLogsRecord, Integer> WORKFLOWERRORCOUNT = createField(DSL.name("workflowerrorcount"), SQLDataType.INTEGER, this, "");

    /**
     * The column <code>public.workflow_logs.workflowstatusdescription</code>.
     */
    public final TableField<WorkflowLogsRecord, String> WORKFLOWSTATUSDESCRIPTION = createField(DSL.name("workflowstatusdescription"), SQLDataType.CLOB, this, "");

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

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

    /**
     * Create an aliased <code>public.workflow_logs</code> table reference
     */
    public WorkflowLogs(String alias) {
        this(DSL.name(alias), WORKFLOW_LOGS);
    }

    /**
     * Create an aliased <code>public.workflow_logs</code> table reference
     */
    public WorkflowLogs(Name alias) {
        this(alias, WORKFLOW_LOGS);
    }

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

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

    @Override
    public Identity<WorkflowLogsRecord, Long> getIdentity() {
        return (Identity<WorkflowLogsRecord, Long>) super.getIdentity();
    }

    @Override
    public UniqueKey<WorkflowLogsRecord> getPrimaryKey() {
        return Keys.WORKFLOW_LOGS_PKEY;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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