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


import java.util.Collection;
import java.util.UUID;

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

import ru.micord.ervu_dashboard.db_beans.ervu_dashboard.ErvuDashboard;
import ru.micord.ervu_dashboard.db_beans.ervu_dashboard.Keys;
import ru.micord.ervu_dashboard.db_beans.ervu_dashboard.tables.records.ArrayMildisRecord;


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

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of <code>ervu_dashboard.array_mildis</code>
     */
    public static final ArrayMildis ARRAY_MILDIS = new ArrayMildis();

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

    /**
     * The column <code>ervu_dashboard.array_mildis.recruitment_dstr_id</code>.
     */
    public final TableField<ArrayMildisRecord, UUID> RECRUITMENT_DSTR_ID = createField(DSL.name("recruitment_dstr_id"), SQLDataType.UUID.nullable(false), this, "");

    /**
     * The column <code>ervu_dashboard.array_mildis.reg_array_id</code>.
     */
    public final TableField<ArrayMildisRecord, String> REG_ARRAY_ID = createField(DSL.name("reg_array_id"), SQLDataType.VARCHAR, this, "");

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

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

    /**
     * Create an aliased <code>ervu_dashboard.array_mildis</code> table
     * reference
     */
    public ArrayMildis(String alias) {
        this(DSL.name(alias), ARRAY_MILDIS);
    }

    /**
     * Create an aliased <code>ervu_dashboard.array_mildis</code> table
     * reference
     */
    public ArrayMildis(Name alias) {
        this(alias, ARRAY_MILDIS);
    }

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

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

    @Override
    public UniqueKey<ArrayMildisRecord> getPrimaryKey() {
        return Keys.ARRAY_MILDIS_PKEY;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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