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

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

import java.util.function.Function;

import javax.annotation.processing.Generated;

import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Function7;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Records;
import org.jooq.Row7;
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 EnumValues extends TableImpl {

    private static final long serialVersionUID = 1L;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    public  EnumValues(Table child, ForeignKey key) {
        super(child, key, ENUM_VALUES);
    }

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

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

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

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

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

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

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

    // -------------------------------------------------------------------------
    // Row7 type methods
    // -------------------------------------------------------------------------

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

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

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