fr.ght1pc9kc.testy.dsl.public_.tables.LightSaber 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.LightSaberRecord;
import java.util.Arrays;
import java.util.List;
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 LightSaber extends TableImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of PUBLIC.LIGHT_SABER
*/
public static final LightSaber LIGHT_SABER = new LightSaber();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return LightSaberRecord.class;
}
/**
* The column PUBLIC.LIGHT_SABER.OWNER
.
*/
public final TableField OWNER = createField(DSL.name("OWNER"), SQLDataType.VARCHAR(50).nullable(false), this, "");
/**
* The column PUBLIC.LIGHT_SABER.COLOR
.
*/
public final TableField COLOR = createField(DSL.name("COLOR"), SQLDataType.VARCHAR(50), this, "");
/**
* The column PUBLIC.LIGHT_SABER.DESCRIPTION
.
*/
public final TableField DESCRIPTION = createField(DSL.name("DESCRIPTION"), SQLDataType.VARCHAR(50), this, "");
private LightSaber(Name alias, Table aliased) {
this(alias, aliased, null);
}
private LightSaber(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased PUBLIC.LIGHT_SABER
table reference
*/
public LightSaber(String alias) {
this(DSL.name(alias), LIGHT_SABER);
}
/**
* Create an aliased PUBLIC.LIGHT_SABER
table reference
*/
public LightSaber(Name alias) {
this(alias, LIGHT_SABER);
}
/**
* Create a PUBLIC.LIGHT_SABER
table reference
*/
public LightSaber() {
this(DSL.name("LIGHT_SABER"), null);
}
public LightSaber(Table child, ForeignKey key) {
super(child, key, LIGHT_SABER);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public List> getReferences() {
return Arrays.asList(Keys.FK_LIGHT_SABER_OWNER);
}
private transient Jedi _jedi;
/**
* Get the implicit join path to the PUBLIC.JEDI
table.
*/
public Jedi jedi() {
if (_jedi == null)
_jedi = new Jedi(this, Keys.FK_LIGHT_SABER_OWNER);
return _jedi;
}
@Override
public LightSaber as(String alias) {
return new LightSaber(DSL.name(alias), this);
}
@Override
public LightSaber as(Name alias) {
return new LightSaber(alias, this);
}
@Override
public LightSaber as(Table> alias) {
return new LightSaber(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public LightSaber rename(String name) {
return new LightSaber(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public LightSaber rename(Name name) {
return new LightSaber(name, null);
}
/**
* Rename this table
*/
@Override
public LightSaber rename(Table> name) {
return new LightSaber(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 super String, ? super String, ? super String, ? extends U> from) {
return convertFrom(Records.mapping(from));
}
/**
* Convenience mapping calling {@link SelectField#convertFrom(Class,
* Function)}.
*/
public SelectField mapping(Class toType, Function3 super String, ? super String, ? super String, ? extends U> from) {
return convertFrom(toType, Records.mapping(from));
}
}