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


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

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of <code>public.action_logs</code>
     */
    public static final ActionLogs ACTION_LOGS = new ActionLogs();

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

    /**
     * The column <code>public.action_logs.action_log_id</code>.
     */
    public final TableField<ActionLogsRecord, Long> ACTION_LOG_ID = createField(DSL.name("action_log_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");

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

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

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

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

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

    /**
     * The column <code>public.action_logs.actionname</code>.
     */
    public final TableField<ActionLogsRecord, String> ACTIONNAME = createField(DSL.name("actionname"), SQLDataType.CLOB, this, "");

    /**
     * The column <code>public.action_logs.actionnr</code>.
     */
    public final TableField<ActionLogsRecord, Integer> ACTIONNR = createField(DSL.name("actionnr"), SQLDataType.INTEGER, this, "");

    /**
     * The column <code>public.action_logs.actionresult</code>.
     */
    public final TableField<ActionLogsRecord, Boolean> ACTIONRESULT = createField(DSL.name("actionresult"), SQLDataType.BOOLEAN, this, "");

    /**
     * The column <code>public.action_logs.actionlogchannelid</code>.
     */
    public final TableField<ActionLogsRecord, String> ACTIONLOGCHANNELID = createField(DSL.name("actionlogchannelid"), SQLDataType.CLOB, this, "");

    /**
     * The column <code>public.action_logs.actionloggingtext</code>.
     */
    public final TableField<ActionLogsRecord, String> ACTIONLOGGINGTEXT = createField(DSL.name("actionloggingtext"), SQLDataType.CLOB, this, "");

    /**
     * The column <code>public.action_logs.actionerrors</code>.
     */
    public final TableField<ActionLogsRecord, Integer> ACTIONERRORS = createField(DSL.name("actionerrors"), SQLDataType.INTEGER, this, "");

    /**
     * The column <code>public.action_logs.actionlogdate</code>.
     */
    public final TableField<ActionLogsRecord, Timestamp> ACTIONLOGDATE = createField(DSL.name("actionlogdate"), SQLDataType.TIMESTAMP(0), this, "");

    /**
     * The column <code>public.action_logs.actionduration</code>.
     */
    public final TableField<ActionLogsRecord, Integer> ACTIONDURATION = createField(DSL.name("actionduration"), SQLDataType.INTEGER, this, "");

    /**
     * The column <code>public.action_logs.actionexitstatus</code>.
     */
    public final TableField<ActionLogsRecord, Integer> ACTIONEXITSTATUS = createField(DSL.name("actionexitstatus"), SQLDataType.INTEGER, this, "");

    /**
     * The column <code>public.action_logs.actionnrfilesretrieved</code>.
     */
    public final TableField<ActionLogsRecord, Integer> ACTIONNRFILESRETRIEVED = createField(DSL.name("actionnrfilesretrieved"), SQLDataType.INTEGER, this, "");

    /**
     * The column <code>public.action_logs.actionfilename</code>.
     */
    public final TableField<ActionLogsRecord, String> ACTIONFILENAME = createField(DSL.name("actionfilename"), SQLDataType.CLOB, this, "");

    /**
     * The column <code>public.action_logs.actioncomment</code>.
     */
    public final TableField<ActionLogsRecord, String> ACTIONCOMMENT = createField(DSL.name("actioncomment"), SQLDataType.CLOB, this, "");

    /**
     * The column <code>public.action_logs.actionreason</code>.
     */
    public final TableField<ActionLogsRecord, String> ACTIONREASON = createField(DSL.name("actionreason"), SQLDataType.CLOB, this, "");

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

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

    /**
     * Create an aliased <code>public.action_logs</code> table reference
     */
    public ActionLogs(String alias) {
        this(DSL.name(alias), ACTION_LOGS);
    }

    /**
     * Create an aliased <code>public.action_logs</code> table reference
     */
    public ActionLogs(Name alias) {
        this(alias, ACTION_LOGS);
    }

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

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

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

    @Override
    public UniqueKey<ActionLogsRecord> getPrimaryKey() {
        return Keys.ACTION_LOGS_PKEY;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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