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


import java.sql.Timestamp;
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.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;

import ru.micord.ervu_dashboard.db_beans.public_.Public;
import ru.micord.ervu_dashboard.db_beans.public_.tables.records.LastRecordingDateRecord;


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

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of <code>public.last_recording_date</code>
     */
    public static final LastRecordingDate LAST_RECORDING_DATE = new LastRecordingDate();

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

    /**
     * The column <code>public.last_recording_date.last_recording_date</code>.
     */
    public final TableField<LastRecordingDateRecord, Timestamp> LAST_RECORDING_DATE_ = createField(DSL.name("last_recording_date"), SQLDataType.TIMESTAMP(0).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "");

    /**
     * The column <code>public.last_recording_date.entry</code>.
     */
    public final TableField<LastRecordingDateRecord, String> ENTRY = createField(DSL.name("entry"), SQLDataType.CLOB, this, "");

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

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

    /**
     * Create an aliased <code>public.last_recording_date</code> table reference
     */
    public LastRecordingDate(String alias) {
        this(DSL.name(alias), LAST_RECORDING_DATE);
    }

    /**
     * Create an aliased <code>public.last_recording_date</code> table reference
     */
    public LastRecordingDate(Name alias) {
        this(alias, LAST_RECORDING_DATE);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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