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

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

import java.util.function.Function;

import javax.annotation.processing.Generated;

import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Function6;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Records;
import org.jooq.Row6;
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 Rights extends TableImpl {

    private static final long serialVersionUID = 1L;

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

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

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

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

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

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

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

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

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

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

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

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

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

    public  Rights(Table child, ForeignKey key) {
        super(child, key, RIGHTS);
    }

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

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

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

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

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

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

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

    // -------------------------------------------------------------------------
    // Row6 type methods
    // -------------------------------------------------------------------------

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

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

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