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

fr.ght1pc9kc.testy.dsl.information_schema.tables.Synonyms 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.SynonymsRecord;

import java.util.function.Function;

import javax.annotation.processing.Generated;

import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Function8;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Records;
import org.jooq.Row8;
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 Synonyms extends TableImpl {

    private static final long serialVersionUID = 1L;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    public  Synonyms(Table child, ForeignKey key) {
        super(child, key, SYNONYMS);
    }

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

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

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

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

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

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

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

    // -------------------------------------------------------------------------
    // Row8 type methods
    // -------------------------------------------------------------------------

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

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

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