fr.ght1pc9kc.testy.dsl.information_schema.tables.Settings 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.SettingsRecord;
import java.util.function.Function;
import javax.annotation.processing.Generated;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Function2;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Records;
import org.jooq.Row2;
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 Settings extends TableImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of INFORMATION_SCHEMA.SETTINGS
*/
public static final Settings SETTINGS = new Settings();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return SettingsRecord.class;
}
/**
* The column INFORMATION_SCHEMA.SETTINGS.SETTING_NAME
.
*/
public final TableField SETTING_NAME = createField(DSL.name("SETTING_NAME"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column INFORMATION_SCHEMA.SETTINGS.SETTING_VALUE
.
*/
public final TableField SETTING_VALUE = createField(DSL.name("SETTING_VALUE"), SQLDataType.VARCHAR(1000000000), this, "");
private Settings(Name alias, Table aliased) {
this(alias, aliased, null);
}
private Settings(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased INFORMATION_SCHEMA.SETTINGS
table
* reference
*/
public Settings(String alias) {
this(DSL.name(alias), SETTINGS);
}
/**
* Create an aliased INFORMATION_SCHEMA.SETTINGS
table
* reference
*/
public Settings(Name alias) {
this(alias, SETTINGS);
}
/**
* Create a INFORMATION_SCHEMA.SETTINGS
table reference
*/
public Settings() {
this(DSL.name("SETTINGS"), null);
}
public Settings(Table child, ForeignKey key) {
super(child, key, SETTINGS);
}
@Override
public Schema getSchema() {
return aliased() ? null : InformationSchema.INFORMATION_SCHEMA;
}
@Override
public Settings as(String alias) {
return new Settings(DSL.name(alias), this);
}
@Override
public Settings as(Name alias) {
return new Settings(alias, this);
}
@Override
public Settings as(Table> alias) {
return new Settings(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public Settings rename(String name) {
return new Settings(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public Settings rename(Name name) {
return new Settings(name, null);
}
/**
* Rename this table
*/
@Override
public Settings rename(Table> name) {
return new Settings(name.getQualifiedName(), null);
}
// -------------------------------------------------------------------------
// Row2 type methods
// -------------------------------------------------------------------------
@Override
public Row2 fieldsRow() {
return (Row2) super.fieldsRow();
}
/**
* Convenience mapping calling {@link SelectField#convertFrom(Function)}.
*/
public SelectField mapping(Function2 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, Function2 super String, ? super String, ? extends U> from) {
return convertFrom(toType, Records.mapping(from));
}
}