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


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

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of <code>public.recruitment_ip</code>
     */
    public static final RecruitmentIp RECRUITMENT_IP = new RecruitmentIp();

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

    /**
     * The column <code>public.recruitment_ip.ip_address</code>. IP-адрес
     */
    public final TableField<RecruitmentIpRecord, String> IP_ADDRESS = createField(DSL.name("ip_address"), SQLDataType.VARCHAR(36).nullable(false), this, "IP-адрес");

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

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

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

    /**
     * Create an aliased <code>public.recruitment_ip</code> table reference
     */
    public RecruitmentIp(String alias) {
        this(DSL.name(alias), RECRUITMENT_IP);
    }

    /**
     * Create an aliased <code>public.recruitment_ip</code> table reference
     */
    public RecruitmentIp(Name alias) {
        this(alias, RECRUITMENT_IP);
    }

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

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

    @Override
    public UniqueKey<RecruitmentIpRecord> getPrimaryKey() {
        return Keys.PK_RECRUITMENT_IP;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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