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