dev.bannmann.anansi.postgresql.generated.tables.Incident Maven / Gradle / Ivy
The newest version!
/*
* This file is generated by jOOQ.
*/
package dev.bannmann.anansi.postgresql.generated.tables;
import dev.bannmann.anansi.postgresql.generated.DefaultSchema;
import dev.bannmann.anansi.postgresql.generated.Keys;
import dev.bannmann.anansi.postgresql.generated.tables.records.IncidentRecord;
import java.time.OffsetDateTime;
import java.util.function.Function;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Function6;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Records;
import org.jooq.Row6;
import org.jooq.Schema;
import org.jooq.SelectField;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Incident extends TableImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of incident
*/
public static final Incident INCIDENT = new Incident();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return IncidentRecord.class;
}
/**
* The column incident.id
.
*/
public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, "");
/**
* The column incident.timestamp
.
*/
public final TableField TIMESTAMP = createField(DSL.name("timestamp"), SQLDataType.TIMESTAMPWITHTIMEZONE(6).nullable(false), this, "");
/**
* The column incident.fingerprint_id
.
*/
public final TableField FINGERPRINT_ID = createField(DSL.name("fingerprint_id"), SQLDataType.VARCHAR(8).nullable(false), this, "");
/**
* The column incident.severity
.
*/
public final TableField SEVERITY = createField(DSL.name("severity"), SQLDataType.VARCHAR(32).nullable(false), this, "");
/**
* The column incident.throwable_details
.
*/
public final TableField THROWABLE_DETAILS = createField(DSL.name("throwable_details"), SQLDataType.VARCHAR(16384).nullable(false), this, "");
/**
* The column incident.build
.
*/
public final TableField BUILD = createField(DSL.name("build"), SQLDataType.VARCHAR(64).nullable(false), this, "");
private Incident(Name alias, Table aliased) {
this(alias, aliased, null);
}
private Incident(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased incident
table reference
*/
public Incident(String alias) {
this(DSL.name(alias), INCIDENT);
}
/**
* Create an aliased incident
table reference
*/
public Incident(Name alias) {
this(alias, INCIDENT);
}
/**
* Create a incident
table reference
*/
public Incident() {
this(DSL.name("incident"), null);
}
public Incident(Table child, ForeignKey key) {
super(child, key, INCIDENT);
}
@Override
public Schema getSchema() {
return aliased() ? null : DefaultSchema.DEFAULT_SCHEMA;
}
@Override
public UniqueKey getPrimaryKey() {
return Keys.INCIDENT_PK;
}
@Override
public Incident as(String alias) {
return new Incident(DSL.name(alias), this);
}
@Override
public Incident as(Name alias) {
return new Incident(alias, this);
}
@Override
public Incident as(Table> alias) {
return new Incident(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public Incident rename(String name) {
return new Incident(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public Incident rename(Name name) {
return new Incident(name, null);
}
/**
* Rename this table
*/
@Override
public Incident rename(Table> name) {
return new Incident(name.getQualifiedName(), null);
}
// -------------------------------------------------------------------------
// Row6 type methods
// -------------------------------------------------------------------------
@Override
public Row6 fieldsRow() {
return (Row6) super.fieldsRow();
}
/**
* Convenience mapping calling {@link SelectField#convertFrom(Function)}.
*/
public SelectField mapping(Function6 super String, ? super OffsetDateTime, ? 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, Function6 super String, ? super OffsetDateTime, ? super String, ? super String, ? super String, ? super String, ? extends U> from) {
return convertFrom(toType, Records.mapping(from));
}
}