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


import ervu_dashboard.ervu_dashboard.db_beans.ervu_dashboard.ErvuDashboard;
import ervu_dashboard.ervu_dashboard.db_beans.ervu_dashboard.Keys;
import ervu_dashboard.ervu_dashboard.db_beans.ervu_dashboard.tables.records.TemporaryMeasuresRecord;

import java.sql.Date;
import java.util.Collection;
import java.util.UUID;

import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.Identity;
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 TemporaryMeasures extends TableImpl<TemporaryMeasuresRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of <code>ervu_dashboard.temporary_measures</code>
     */
    public static final TemporaryMeasures TEMPORARY_MEASURES = new TemporaryMeasures();

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

    /**
     * The column
     * <code>ervu_dashboard.temporary_measures.temporary_measures_id</code>.
     */
    public final TableField<TemporaryMeasuresRecord, Long> TEMPORARY_MEASURES_ID = createField(DSL.name("temporary_measures_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");

    /**
     * The column <code>ervu_dashboard.temporary_measures.recruitment_id</code>.
     */
    public final TableField<TemporaryMeasuresRecord, String> RECRUITMENT_ID = createField(DSL.name("recruitment_id"), SQLDataType.VARCHAR.nullable(false), this, "");

    /**
     * The column <code>ervu_dashboard.temporary_measures.name</code>.
     */
    public final TableField<TemporaryMeasuresRecord, String> NAME = createField(DSL.name("name"), SQLDataType.VARCHAR.nullable(false), this, "");

    /**
     * The column
     * <code>ervu_dashboard.temporary_measures.date_application</code>.
     */
    public final TableField<TemporaryMeasuresRecord, Date> DATE_APPLICATION = createField(DSL.name("date_application"), SQLDataType.DATE.nullable(false), this, "");

    /**
     * The column
     * <code>ervu_dashboard.temporary_measures.withdrawal_date</code>.
     */
    public final TableField<TemporaryMeasuresRecord, Date> WITHDRAWAL_DATE = createField(DSL.name("withdrawal_date"), SQLDataType.DATE, this, "");

    /**
     * The column <code>ervu_dashboard.temporary_measures.status</code>.
     */
    public final TableField<TemporaryMeasuresRecord, String> STATUS = createField(DSL.name("status"), SQLDataType.CHAR(100), this, "");

    /**
     * The column <code>ervu_dashboard.temporary_measures.citizen_id</code>.
     */
    public final TableField<TemporaryMeasuresRecord, UUID> CITIZEN_ID = createField(DSL.name("citizen_id"), SQLDataType.UUID, this, "");

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

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

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

    /**
     * Create an aliased <code>ervu_dashboard.temporary_measures</code> table
     * reference
     */
    public TemporaryMeasures(Name alias) {
        this(alias, TEMPORARY_MEASURES);
    }

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

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

    @Override
    public Identity<TemporaryMeasuresRecord, Long> getIdentity() {
        return (Identity<TemporaryMeasuresRecord, Long>) super.getIdentity();
    }

    @Override
    public UniqueKey<TemporaryMeasuresRecord> getPrimaryKey() {
        return Keys.TEMPORARY_MEASURES_PKEY;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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