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


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

import ru.micord.ervu.account_applications.db_beans.public_.Keys;
import ru.micord.ervu.account_applications.db_beans.public_.Public;
import ru.micord.ervu.account_applications.db_beans.public_.tables.records.RecruitmentSolutionRecord;


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

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of <code>public.recruitment_solution</code>
     */
    public static final RecruitmentSolution RECRUITMENT_SOLUTION = new RecruitmentSolution();

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

    /**
     * The column <code>public.recruitment_solution.recruitment_id</code>.
     * Идентификатор организации
     */
    public final TableField<RecruitmentSolutionRecord, String> RECRUITMENT_ID = createField(DSL.name("recruitment_id"), SQLDataType.VARCHAR(36).nullable(false), this, "Идентификатор организации");

    /**
     * The column <code>public.recruitment_solution.solution_id</code>.
     * Идентификатор группы ролей
     */
    public final TableField<RecruitmentSolutionRecord, String> SOLUTION_ID = createField(DSL.name("solution_id"), SQLDataType.VARCHAR(36).nullable(false), this, "Идентификатор группы ролей");

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

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

    /**
     * Create an aliased <code>public.recruitment_solution</code> table
     * reference
     */
    public RecruitmentSolution(String alias) {
        this(DSL.name(alias), RECRUITMENT_SOLUTION);
    }

    /**
     * Create an aliased <code>public.recruitment_solution</code> table
     * reference
     */
    public RecruitmentSolution(Name alias) {
        this(alias, RECRUITMENT_SOLUTION);
    }

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

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

    @Override
    public UniqueKey<RecruitmentSolutionRecord> getPrimaryKey() {
        return Keys.PK_RECRUITMENT_SOLUTION;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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