fr.ght1pc9kc.testy.dsl.information_schema.tables.Sessions 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.SessionsRecord;
import java.time.OffsetDateTime;
import java.util.function.Function;
import javax.annotation.processing.Generated;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Function13;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Records;
import org.jooq.Row13;
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 Sessions extends TableImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of INFORMATION_SCHEMA.SESSIONS
*/
public static final Sessions SESSIONS = new Sessions();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return SessionsRecord.class;
}
/**
* The column INFORMATION_SCHEMA.SESSIONS.SESSION_ID
.
*/
public final TableField SESSION_ID = createField(DSL.name("SESSION_ID"), SQLDataType.INTEGER, this, "");
/**
* The column INFORMATION_SCHEMA.SESSIONS.USER_NAME
.
*/
public final TableField USER_NAME = createField(DSL.name("USER_NAME"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column INFORMATION_SCHEMA.SESSIONS.SERVER
.
*/
public final TableField SERVER = createField(DSL.name("SERVER"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column INFORMATION_SCHEMA.SESSIONS.CLIENT_ADDR
.
*/
public final TableField CLIENT_ADDR = createField(DSL.name("CLIENT_ADDR"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column INFORMATION_SCHEMA.SESSIONS.CLIENT_INFO
.
*/
public final TableField CLIENT_INFO = createField(DSL.name("CLIENT_INFO"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column INFORMATION_SCHEMA.SESSIONS.SESSION_START
.
*/
public final TableField SESSION_START = createField(DSL.name("SESSION_START"), SQLDataType.TIMESTAMPWITHTIMEZONE(9), this, "");
/**
* The column INFORMATION_SCHEMA.SESSIONS.ISOLATION_LEVEL
.
*/
public final TableField ISOLATION_LEVEL = createField(DSL.name("ISOLATION_LEVEL"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column INFORMATION_SCHEMA.SESSIONS.EXECUTING_STATEMENT
.
*/
public final TableField EXECUTING_STATEMENT = createField(DSL.name("EXECUTING_STATEMENT"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column
* INFORMATION_SCHEMA.SESSIONS.EXECUTING_STATEMENT_START
.
*/
public final TableField EXECUTING_STATEMENT_START = createField(DSL.name("EXECUTING_STATEMENT_START"), SQLDataType.TIMESTAMPWITHTIMEZONE(9), this, "");
/**
* The column INFORMATION_SCHEMA.SESSIONS.CONTAINS_UNCOMMITTED
.
*/
public final TableField CONTAINS_UNCOMMITTED = createField(DSL.name("CONTAINS_UNCOMMITTED"), SQLDataType.BOOLEAN, this, "");
/**
* The column INFORMATION_SCHEMA.SESSIONS.SESSION_STATE
.
*/
public final TableField SESSION_STATE = createField(DSL.name("SESSION_STATE"), SQLDataType.VARCHAR(1000000000), this, "");
/**
* The column INFORMATION_SCHEMA.SESSIONS.BLOCKER_ID
.
*/
public final TableField BLOCKER_ID = createField(DSL.name("BLOCKER_ID"), SQLDataType.INTEGER, this, "");
/**
* The column INFORMATION_SCHEMA.SESSIONS.SLEEP_SINCE
.
*/
public final TableField SLEEP_SINCE = createField(DSL.name("SLEEP_SINCE"), SQLDataType.TIMESTAMPWITHTIMEZONE(9), this, "");
private Sessions(Name alias, Table aliased) {
this(alias, aliased, null);
}
private Sessions(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased INFORMATION_SCHEMA.SESSIONS
table
* reference
*/
public Sessions(String alias) {
this(DSL.name(alias), SESSIONS);
}
/**
* Create an aliased INFORMATION_SCHEMA.SESSIONS
table
* reference
*/
public Sessions(Name alias) {
this(alias, SESSIONS);
}
/**
* Create a INFORMATION_SCHEMA.SESSIONS
table reference
*/
public Sessions() {
this(DSL.name("SESSIONS"), null);
}
public Sessions(Table child, ForeignKey key) {
super(child, key, SESSIONS);
}
@Override
public Schema getSchema() {
return aliased() ? null : InformationSchema.INFORMATION_SCHEMA;
}
@Override
public Sessions as(String alias) {
return new Sessions(DSL.name(alias), this);
}
@Override
public Sessions as(Name alias) {
return new Sessions(alias, this);
}
@Override
public Sessions as(Table> alias) {
return new Sessions(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public Sessions rename(String name) {
return new Sessions(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public Sessions rename(Name name) {
return new Sessions(name, null);
}
/**
* Rename this table
*/
@Override
public Sessions rename(Table> name) {
return new Sessions(name.getQualifiedName(), null);
}
// -------------------------------------------------------------------------
// Row13 type methods
// -------------------------------------------------------------------------
@Override
public Row13 fieldsRow() {
return (Row13) super.fieldsRow();
}
/**
* Convenience mapping calling {@link SelectField#convertFrom(Function)}.
*/
public SelectField mapping(Function13 super Integer, ? super String, ? super String, ? super String, ? super String, ? super OffsetDateTime, ? super String, ? super String, ? super OffsetDateTime, ? super Boolean, ? super String, ? super Integer, ? super OffsetDateTime, ? extends U> from) {
return convertFrom(Records.mapping(from));
}
/**
* Convenience mapping calling {@link SelectField#convertFrom(Class,
* Function)}.
*/
public SelectField mapping(Class toType, Function13 super Integer, ? super String, ? super String, ? super String, ? super String, ? super OffsetDateTime, ? super String, ? super String, ? super OffsetDateTime, ? super Boolean, ? super String, ? super Integer, ? super OffsetDateTime, ? extends U> from) {
return convertFrom(toType, Records.mapping(from));
}
}