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


import java.sql.Date;
import java.sql.Timestamp;
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.metrics.Keys;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.Metrics;
import ru.micord.webbpm.ervu.business_metrics.db_beans.metrics.tables.records.ConvertInfoNotIdentifitedRecordsRecord;


/**
 * записи неидентифицированные в ГИР ВУ
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class ConvertInfoNotIdentifitedRecords extends TableImpl<ConvertInfoNotIdentifitedRecordsRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of
     * <code>metrics.convert_info_not_identifited_records</code>
     */
    public static final ConvertInfoNotIdentifitedRecords CONVERT_INFO_NOT_IDENTIFITED_RECORDS = new ConvertInfoNotIdentifitedRecords();

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

    /**
     * The column
     * <code>metrics.convert_info_not_identifited_records.convert_info_not_identifited_records_id</code>.
     */
    public final TableField<ConvertInfoNotIdentifitedRecordsRecord, Long> CONVERT_INFO_NOT_IDENTIFITED_RECORDS_ID = createField(DSL.name("convert_info_not_identifited_records_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");

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

    /**
     * The column
     * <code>metrics.convert_info_not_identifited_records.update_date</code>.
     */
    public final TableField<ConvertInfoNotIdentifitedRecordsRecord, Timestamp> UPDATE_DATE = createField(DSL.name("update_date"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "");

    /**
     * The column
     * <code>metrics.convert_info_not_identifited_records.info_date</code>.
     */
    public final TableField<ConvertInfoNotIdentifitedRecordsRecord, Date> INFO_DATE = createField(DSL.name("info_date"), SQLDataType.DATE.nullable(false), this, "");

    /**
     * The column
     * <code>metrics.convert_info_not_identifited_records.count_not_in_csv</code>.
     */
    public final TableField<ConvertInfoNotIdentifitedRecordsRecord, Long> COUNT_NOT_IN_CSV = createField(DSL.name("count_not_in_csv"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, "");

    /**
     * The column
     * <code>metrics.convert_info_not_identifited_records.count_not_in_xml</code>.
     */
    public final TableField<ConvertInfoNotIdentifitedRecordsRecord, Long> COUNT_NOT_IN_XML = createField(DSL.name("count_not_in_xml"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, "");

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

    private ConvertInfoNotIdentifitedRecords(Name alias, Table<ConvertInfoNotIdentifitedRecordsRecord> aliased, Field<?>[] parameters, Condition where) {
        super(alias, null, aliased, parameters, DSL.comment("записи неидентифицированные в ГИР ВУ"), TableOptions.table(), where);
    }

    /**
     * Create an aliased
     * <code>metrics.convert_info_not_identifited_records</code> table reference
     */
    public ConvertInfoNotIdentifitedRecords(String alias) {
        this(DSL.name(alias), CONVERT_INFO_NOT_IDENTIFITED_RECORDS);
    }

    /**
     * Create an aliased
     * <code>metrics.convert_info_not_identifited_records</code> table reference
     */
    public ConvertInfoNotIdentifitedRecords(Name alias) {
        this(alias, CONVERT_INFO_NOT_IDENTIFITED_RECORDS);
    }

    /**
     * Create a <code>metrics.convert_info_not_identifited_records</code> table
     * reference
     */
    public ConvertInfoNotIdentifitedRecords() {
        this(DSL.name("convert_info_not_identifited_records"), null);
    }

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

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

    @Override
    public UniqueKey<ConvertInfoNotIdentifitedRecordsRecord> getPrimaryKey() {
        return Keys.CONVERT_INFO_NOT_IDENTIFITED_RECORDS_PKEY;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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