fr.ght1pc9kc.testy.dsl.information_schema.tables.Roles 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.RolesRecord;
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 Roles extends TableImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of INFORMATION_SCHEMA.ROLES
*/
public static final Roles ROLES = new Roles();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return RolesRecord.class;
}
/**
* The column INFORMATION_SCHEMA.ROLES.ROLE_NAME
.
*/
public final TableField ROLE_NAME = createField(DSL.name("ROLE_NAME"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column INFORMATION_SCHEMA.ROLES.REMARKS
.
*/
public final TableField REMARKS = createField(DSL.name("REMARKS"), SQLDataType.VARCHAR(1000000000), this, "");
private Roles(Name alias, Table aliased) {
this(alias, aliased, null);
}
private Roles(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased INFORMATION_SCHEMA.ROLES
table reference
*/
public Roles(String alias) {
this(DSL.name(alias), ROLES);
}
/**
* Create an aliased INFORMATION_SCHEMA.ROLES
table reference
*/
public Roles(Name alias) {
this(alias, ROLES);
}
/**
* Create a INFORMATION_SCHEMA.ROLES
table reference
*/
public Roles() {
this(DSL.name("ROLES"), null);
}
public Roles(Table child, ForeignKey key) {
super(child, key, ROLES);
}
@Override
public Schema getSchema() {
return aliased() ? null : InformationSchema.INFORMATION_SCHEMA;
}
@Override
public Roles as(String alias) {
return new Roles(DSL.name(alias), this);
}
@Override
public Roles as(Name alias) {
return new Roles(alias, this);
}
@Override
public Roles as(Table> alias) {
return new Roles(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public Roles rename(String name) {
return new Roles(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public Roles rename(Name name) {
return new Roles(name, null);
}
/**
* Rename this table
*/
@Override
public Roles rename(Table> name) {
return new Roles(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));
}
}