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