/*
 * This file is generated by jOOQ.
 */
package ru.micord.webbpm.ervu.business_metrics.db_beans.registration_change_address.tables;


import java.util.Collection;

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;

import ru.micord.webbpm.ervu.business_metrics.db_beans.registration_change_address.Keys;
import ru.micord.webbpm.ervu.business_metrics.db_beans.registration_change_address.RegistrationChangeAddress;
import ru.micord.webbpm.ervu.business_metrics.db_beans.registration_change_address.tables.records.SupportTmpMeasRecord;


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

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of
     * <code>registration_change_address.support_tmp_meas</code>
     */
    public static final SupportTmpMeas SUPPORT_TMP_MEAS = new SupportTmpMeas();

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

    /**
     * The column
     * <code>registration_change_address.support_tmp_meas.support_tmp_meas_id</code>.
     */
    public final TableField<SupportTmpMeasRecord, Long> SUPPORT_TMP_MEAS_ID = createField(DSL.name("support_tmp_meas_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");

    /**
     * The column
     * <code>registration_change_address.support_tmp_meas.source_last_update</code>.
     */
    public final TableField<SupportTmpMeasRecord, String> SOURCE_LAST_UPDATE = createField(DSL.name("source_last_update"), SQLDataType.VARCHAR(10).nullable(false), this, "");

    /**
     * The column
     * <code>registration_change_address.support_tmp_meas.status_applied</code>.
     */
    public final TableField<SupportTmpMeasRecord, String> STATUS_APPLIED = createField(DSL.name("status_applied"), SQLDataType.VARCHAR(10), this, "");

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

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

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

    /**
     * Create an aliased
     * <code>registration_change_address.support_tmp_meas</code> table reference
     */
    public SupportTmpMeas(String alias) {
        this(DSL.name(alias), SUPPORT_TMP_MEAS);
    }

    /**
     * Create an aliased
     * <code>registration_change_address.support_tmp_meas</code> table reference
     */
    public SupportTmpMeas(Name alias) {
        this(alias, SUPPORT_TMP_MEAS);
    }

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

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

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

    @Override
    public UniqueKey<SupportTmpMeasRecord> getPrimaryKey() {
        return Keys.SUPPORT_TMP_MEAS_PKEY;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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