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


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

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of
     * <code>registration_change_address.support_summ_sing</code>
     */
    public static final SupportSummSing SUPPORT_SUMM_SING = new SupportSummSing();

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

    /**
     * The column
     * <code>registration_change_address.support_summ_sing.support_summ_sing_id</code>.
     */
    public final TableField<SupportSummSingRecord, Long> SUPPORT_SUMM_SING_ID = createField(DSL.name("support_summ_sing_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");

    /**
     * The column
     * <code>registration_change_address.support_summ_sing.progress</code>.
     */
    public final TableField<SupportSummSingRecord, Boolean> PROGRESS = createField(DSL.name("progress"), SQLDataType.BOOLEAN.nullable(false), this, "");

    /**
     * The column
     * <code>registration_change_address.support_summ_sing.change_rec</code>.
     */
    public final TableField<SupportSummSingRecord, Boolean> CHANGE_REC = createField(DSL.name("change_rec"), SQLDataType.BOOLEAN.nullable(false), this, "");

    /**
     * The column
     * <code>registration_change_address.support_summ_sing.code</code>.
     */
    public final TableField<SupportSummSingRecord, String> CODE = createField(DSL.name("code"), SQLDataType.VARCHAR(10), this, "");

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

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

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

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

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

    /**
     * Create an aliased
     * <code>registration_change_address.support_summ_sing</code> table
     * reference
     */
    public SupportSummSing(Name alias) {
        this(alias, SUPPORT_SUMM_SING);
    }

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

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

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

    @Override
    public UniqueKey<SupportSummSingRecord> getPrimaryKey() {
        return Keys.SUPPORT_SUMM_SING_PKEY;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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