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


import ervu_secret.ervu_secret.db_beans.pg_catalog.PgCatalog;
import ervu_secret.ervu_secret.db_beans.pg_catalog.tables.records.PgMcvListItemsRecord;

import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.Name;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.impl.DSL;
import org.jooq.impl.DefaultDataType;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;


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

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of <code>pg_catalog.pg_mcv_list_items</code>
     */
    public static final PgMcvListItems PG_MCV_LIST_ITEMS = new PgMcvListItems();

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

    /**
     * The column <code>pg_catalog.pg_mcv_list_items.index</code>.
     */
    public final TableField<PgMcvListItemsRecord, Integer> INDEX = createField(DSL.name("index"), SQLDataType.INTEGER, this, "");

    /**
     * The column <code>pg_catalog.pg_mcv_list_items.values</code>.
     */
    public final TableField<PgMcvListItemsRecord, String[]> VALUES = createField(DSL.name("values"), SQLDataType.CLOB.array(), this, "");

    /**
     * The column <code>pg_catalog.pg_mcv_list_items.nulls</code>.
     */
    public final TableField<PgMcvListItemsRecord, Boolean[]> NULLS = createField(DSL.name("nulls"), SQLDataType.BOOLEAN.array(), this, "");

    /**
     * The column <code>pg_catalog.pg_mcv_list_items.frequency</code>.
     */
    public final TableField<PgMcvListItemsRecord, Double> FREQUENCY = createField(DSL.name("frequency"), SQLDataType.DOUBLE, this, "");

    /**
     * The column <code>pg_catalog.pg_mcv_list_items.base_frequency</code>.
     */
    public final TableField<PgMcvListItemsRecord, Double> BASE_FREQUENCY = createField(DSL.name("base_frequency"), SQLDataType.DOUBLE, this, "");

    private PgMcvListItems(Name alias, Table<PgMcvListItemsRecord> aliased) {
        this(alias, aliased, new Field[] {
            DSL.val(null, DefaultDataType.getDefaultDataType("\"pg_catalog\".\"pg_mcv_list\""))
        });
    }

    private PgMcvListItems(Name alias, Table<PgMcvListItemsRecord> aliased, Field<?>[] parameters) {
        this(alias, aliased, parameters, null);
    }

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

    /**
     * Create an aliased <code>pg_catalog.pg_mcv_list_items</code> table
     * reference
     */
    public PgMcvListItems(String alias) {
        this(DSL.name(alias), PG_MCV_LIST_ITEMS);
    }

    /**
     * Create an aliased <code>pg_catalog.pg_mcv_list_items</code> table
     * reference
     */
    public PgMcvListItems(Name alias) {
        this(alias, PG_MCV_LIST_ITEMS);
    }

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

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

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

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

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

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

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

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

    /**
     * Call this table-valued function
     */
    public PgMcvListItems call(
          Object mcvList
    ) {
        PgMcvListItems result = new PgMcvListItems(DSL.name("pg_mcv_list_items"), null, new Field[] {
            DSL.val(mcvList, DefaultDataType.getDefaultDataType("\"pg_catalog\".\"pg_mcv_list\""))
        });

        return aliased() ? result.as(getUnqualifiedName()) : result;
    }

    /**
     * Call this table-valued function
     */
    public PgMcvListItems call(
          Field<Object> mcvList
    ) {
        PgMcvListItems result = new PgMcvListItems(DSL.name("pg_mcv_list_items"), null, new Field[] {
            mcvList
        });

        return aliased() ? result.as(getUnqualifiedName()) : result;
    }
}
