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

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

import java.util.function.Function;

import javax.annotation.processing.Generated;

import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Function3;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Records;
import org.jooq.Row3;
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 Users extends TableImpl {

    private static final long serialVersionUID = 1L;

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

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

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

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

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

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

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

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

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

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

    public  Users(Table child, ForeignKey key) {
        super(child, key, USERS);
    }

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

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

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

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

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

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

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

    // -------------------------------------------------------------------------
    // Row3 type methods
    // -------------------------------------------------------------------------

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

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

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