All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
ca.ibodrov.mica.db.jooq.tables.MicaEntityHistory Maven / Gradle / Ivy
/*
* This file is generated by jOOQ.
*/
package ca.ibodrov.mica.db.jooq.tables;
import ca.ibodrov.mica.db.jooq.Keys;
import ca.ibodrov.mica.db.jooq.Public;
import ca.ibodrov.mica.db.jooq.enums.MicaHistoryOperationType;
import ca.ibodrov.mica.db.jooq.tables.records.MicaEntityHistoryRecord;
import java.time.Instant;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row5;
import org.jooq.Schema;
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 MicaEntityHistory extends TableImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of public.mica_entity_history
*/
public static final MicaEntityHistory MICA_ENTITY_HISTORY = new MicaEntityHistory();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return MicaEntityHistoryRecord.class;
}
/**
* The column public.mica_entity_history.entity_id
.
*/
public final TableField ENTITY_ID = createField(DSL.name("entity_id"), SQLDataType.UUID.nullable(false), this, "");
/**
* The column public.mica_entity_history.updated_at
.
*/
public final TableField UPDATED_AT = createField(DSL.name("updated_at"), SQLDataType.INSTANT.nullable(false), this, "");
/**
* The column public.mica_entity_history.operation_type
.
*/
public final TableField OPERATION_TYPE = createField(DSL.name("operation_type"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(ca.ibodrov.mica.db.jooq.enums.MicaHistoryOperationType.class), this, "");
/**
* The column public.mica_entity_history.author
.
*/
public final TableField AUTHOR = createField(DSL.name("author"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column public.mica_entity_history.doc
.
*/
public final TableField DOC = createField(DSL.name("doc"), SQLDataType.BLOB, this, "");
private MicaEntityHistory(Name alias, Table aliased) {
this(alias, aliased, null);
}
private MicaEntityHistory(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased public.mica_entity_history
table reference
*/
public MicaEntityHistory(String alias) {
this(DSL.name(alias), MICA_ENTITY_HISTORY);
}
/**
* Create an aliased public.mica_entity_history
table reference
*/
public MicaEntityHistory(Name alias) {
this(alias, MICA_ENTITY_HISTORY);
}
/**
* Create a public.mica_entity_history
table reference
*/
public MicaEntityHistory() {
this(DSL.name("mica_entity_history"), null);
}
public MicaEntityHistory(Table child, ForeignKey key) {
super(child, key, MICA_ENTITY_HISTORY);
}
@Override
public Schema getSchema() {
return Public.PUBLIC;
}
@Override
public UniqueKey getPrimaryKey() {
return Keys.MICA_ENTITY_HISTORY_PKEY;
}
@Override
public List> getKeys() {
return Arrays.>asList(Keys.MICA_ENTITY_HISTORY_PKEY);
}
@Override
public MicaEntityHistory as(String alias) {
return new MicaEntityHistory(DSL.name(alias), this);
}
@Override
public MicaEntityHistory as(Name alias) {
return new MicaEntityHistory(alias, this);
}
/**
* Rename this table
*/
@Override
public MicaEntityHistory rename(String name) {
return new MicaEntityHistory(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public MicaEntityHistory rename(Name name) {
return new MicaEntityHistory(name, null);
}
// -------------------------------------------------------------------------
// Row5 type methods
// -------------------------------------------------------------------------
@Override
public Row5 fieldsRow() {
return (Row5) super.fieldsRow();
}
}