All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.ght1pc9kc.testy.dsl.information_schema.tables.Indexes Maven / Gradle / Ivy

The newest version!
/*
 * This file is generated by jOOQ.
 */
package fr.ght1pc9kc.testy.dsl.information_schema.tables;


import fr.ght1pc9kc.testy.dsl.information_schema.InformationSchema;
import fr.ght1pc9kc.testy.dsl.information_schema.tables.records.IndexesRecord;

import java.util.function.Function;

import javax.annotation.processing.Generated;

import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Function11;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Records;
import org.jooq.Row11;
import org.jooq.Schema;
import org.jooq.SelectField;
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;


/**
 * This class is generated by jOOQ.
 */
@Generated(
    value = {
        "https://www.jooq.org",
        "jOOQ version:3.18.7"
    },
    comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Indexes extends TableImpl {

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of INFORMATION_SCHEMA.INDEXES
     */
    public static final Indexes INDEXES = new Indexes();

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

    /**
     * The column INFORMATION_SCHEMA.INDEXES.INDEX_CATALOG.
     */
    public final TableField INDEX_CATALOG = createField(DSL.name("INDEX_CATALOG"), SQLDataType.VARCHAR(1000000000), this, "");

    /**
     * The column INFORMATION_SCHEMA.INDEXES.INDEX_SCHEMA.
     */
    public final TableField INDEX_SCHEMA = createField(DSL.name("INDEX_SCHEMA"), SQLDataType.VARCHAR(1000000000), this, "");

    /**
     * The column INFORMATION_SCHEMA.INDEXES.INDEX_NAME.
     */
    public final TableField INDEX_NAME = createField(DSL.name("INDEX_NAME"), SQLDataType.VARCHAR(1000000000), this, "");

    /**
     * The column INFORMATION_SCHEMA.INDEXES.TABLE_CATALOG.
     */
    public final TableField TABLE_CATALOG = createField(DSL.name("TABLE_CATALOG"), SQLDataType.VARCHAR(1000000000), this, "");

    /**
     * The column INFORMATION_SCHEMA.INDEXES.TABLE_SCHEMA.
     */
    public final TableField TABLE_SCHEMA = createField(DSL.name("TABLE_SCHEMA"), SQLDataType.VARCHAR(1000000000), this, "");

    /**
     * The column INFORMATION_SCHEMA.INDEXES.TABLE_NAME.
     */
    public final TableField TABLE_NAME = createField(DSL.name("TABLE_NAME"), SQLDataType.VARCHAR(1000000000), this, "");

    /**
     * The column INFORMATION_SCHEMA.INDEXES.INDEX_TYPE_NAME.
     */
    public final TableField INDEX_TYPE_NAME = createField(DSL.name("INDEX_TYPE_NAME"), SQLDataType.VARCHAR(1000000000), this, "");

    /**
     * The column INFORMATION_SCHEMA.INDEXES.NULLS_DISTINCT.
     */
    public final TableField NULLS_DISTINCT = createField(DSL.name("NULLS_DISTINCT"), SQLDataType.VARCHAR(1000000000), this, "");

    /**
     * The column INFORMATION_SCHEMA.INDEXES.IS_GENERATED.
     */
    public final TableField IS_GENERATED = createField(DSL.name("IS_GENERATED"), SQLDataType.BOOLEAN, this, "");

    /**
     * The column INFORMATION_SCHEMA.INDEXES.REMARKS.
     */
    public final TableField REMARKS = createField(DSL.name("REMARKS"), SQLDataType.VARCHAR(1000000000), this, "");

    /**
     * The column INFORMATION_SCHEMA.INDEXES.INDEX_CLASS.
     */
    public final TableField INDEX_CLASS = createField(DSL.name("INDEX_CLASS"), SQLDataType.VARCHAR(1000000000), this, "");

    private Indexes(Name alias, Table aliased) {
        this(alias, aliased, null);
    }

    private Indexes(Name alias, Table aliased, Field[] parameters) {
        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
    }

    /**
     * Create an aliased INFORMATION_SCHEMA.INDEXES table reference
     */
    public Indexes(String alias) {
        this(DSL.name(alias), INDEXES);
    }

    /**
     * Create an aliased INFORMATION_SCHEMA.INDEXES table reference
     */
    public Indexes(Name alias) {
        this(alias, INDEXES);
    }

    /**
     * Create a INFORMATION_SCHEMA.INDEXES table reference
     */
    public Indexes() {
        this(DSL.name("INDEXES"), null);
    }

    public  Indexes(Table child, ForeignKey key) {
        super(child, key, INDEXES);
    }

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

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

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

    @Override
    public Indexes as(Table alias) {
        return new Indexes(alias.getQualifiedName(), this);
    }

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

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

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

    // -------------------------------------------------------------------------
    // Row11 type methods
    // -------------------------------------------------------------------------

    @Override
    public Row11 fieldsRow() {
        return (Row11) super.fieldsRow();
    }

    /**
     * Convenience mapping calling {@link SelectField#convertFrom(Function)}.
     */
    public  SelectField mapping(Function11 from) {
        return convertFrom(Records.mapping(from));
    }

    /**
     * Convenience mapping calling {@link SelectField#convertFrom(Class,
     * Function)}.
     */
    public  SelectField mapping(Class toType, Function11 from) {
        return convertFrom(toType, Records.mapping(from));
    }
}