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


import ervu_dashboard.ervu_dashboard.db_beans.space.Keys;
import ervu_dashboard.ervu_dashboard.db_beans.space.Space;
import ervu_dashboard.ervu_dashboard.db_beans.space.tables.records.TestrecruitmentRecord;

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;


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

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of <code>space.testrecruitment</code>
     */
    public static final Testrecruitment TESTRECRUITMENT = new Testrecruitment();

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

    /**
     * The column <code>space.testrecruitment.id</code>.
     */
    public final TableField<TestrecruitmentRecord, String> ID = createField(DSL.name("id"), SQLDataType.CHAR(36).nullable(false), this, "");

    /**
     * The column <code>space.testrecruitment.name</code>.
     */
    public final TableField<TestrecruitmentRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CHAR(300), this, "");

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

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

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

    /**
     * Create an aliased <code>space.testrecruitment</code> table reference
     */
    public Testrecruitment(Name alias) {
        this(alias, TESTRECRUITMENT);
    }

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

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

    @Override
    public UniqueKey<TestrecruitmentRecord> getPrimaryKey() {
        return Keys.TESTRECRUITMENT_PKEY;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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