/*
 * This file is generated by jOOQ.
 */
package ru.micord.ervu_dashboard.db_beans.space.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.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;

import ru.micord.ervu_dashboard.db_beans.space.Space;
import ru.micord.ervu_dashboard.db_beans.space.tables.records.ZtestrecruitmentRecord;


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

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of <code>space.ztestrecruitment</code>
     */
    public static final Ztestrecruitment ZTESTRECRUITMENT = new Ztestrecruitment();

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

    /**
     * The column <code>space.ztestrecruitment.id</code>.
     */
    public final TableField<ZtestrecruitmentRecord, UUID> ID = createField(DSL.name("id"), SQLDataType.UUID, this, "");

    /**
     * The column <code>space.ztestrecruitment.name</code>.
     */
    public final TableField<ZtestrecruitmentRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, "");

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

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

    /**
     * Create an aliased <code>space.ztestrecruitment</code> table reference
     */
    public Ztestrecruitment(String alias) {
        this(DSL.name(alias), ZTESTRECRUITMENT);
    }

    /**
     * Create an aliased <code>space.ztestrecruitment</code> table reference
     */
    public Ztestrecruitment(Name alias) {
        this(alias, ZTESTRECRUITMENT);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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