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

fr.ght1pc9kc.testy.dsl.public_.tables.Jedi Maven / Gradle / Ivy

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


import fr.ght1pc9kc.testy.dsl.public_.Keys;
import fr.ght1pc9kc.testy.dsl.public_.Public;
import fr.ght1pc9kc.testy.dsl.public_.tables.records.JediRecord;

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.UniqueKey;
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 Jedi extends TableImpl {

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of PUBLIC.JEDI
     */
    public static final Jedi JEDI = new Jedi();

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

    /**
     * The column PUBLIC.JEDI.FIRST_NAME.
     */
    public final TableField FIRST_NAME = createField(DSL.name("FIRST_NAME"), SQLDataType.VARCHAR(50).nullable(false), this, "");

    /**
     * The column PUBLIC.JEDI.LAST_NAME.
     */
    public final TableField LAST_NAME = createField(DSL.name("LAST_NAME"), SQLDataType.VARCHAR(50), this, "");

    /**
     * The column PUBLIC.JEDI.FORCE_SIDE.
     */
    public final TableField FORCE_SIDE = createField(DSL.name("FORCE_SIDE"), SQLDataType.VARCHAR(50), this, "");

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

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

    /**
     * Create an aliased PUBLIC.JEDI table reference
     */
    public Jedi(String alias) {
        this(DSL.name(alias), JEDI);
    }

    /**
     * Create an aliased PUBLIC.JEDI table reference
     */
    public Jedi(Name alias) {
        this(alias, JEDI);
    }

    /**
     * Create a PUBLIC.JEDI table reference
     */
    public Jedi() {
        this(DSL.name("JEDI"), null);
    }

    public  Jedi(Table child, ForeignKey key) {
        super(child, key, JEDI);
    }

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

    @Override
    public UniqueKey getPrimaryKey() {
        return Keys.CONSTRAINT_2;
    }

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

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

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

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

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

    /**
     * Rename this table
     */
    @Override
    public Jedi rename(Table name) {
        return new Jedi(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));
    }
}