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.
org.ehrbase.jooq.pg.tables.CompDataHistory Maven / Gradle / Ivy
/*
* This file is generated by jOOQ.
*/
package org.ehrbase.jooq.pg.tables;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.UUID;
import org.ehrbase.jooq.pg.Ehr;
import org.ehrbase.jooq.pg.Keys;
import org.ehrbase.jooq.pg.tables.CompVersionHistory.CompVersionHistoryPath;
import org.ehrbase.jooq.pg.tables.records.CompDataHistoryRecord;
import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.InverseForeignKey;
import org.jooq.JSONB;
import org.jooq.Name;
import org.jooq.Path;
import org.jooq.PlainSQL;
import org.jooq.QueryPart;
import org.jooq.Record;
import org.jooq.SQL;
import org.jooq.Schema;
import org.jooq.Select;
import org.jooq.Stringly;
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", "this-escape" })
public class CompDataHistory extends TableImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of ehr.comp_data_history
*/
public static final CompDataHistory COMP_DATA_HISTORY = new CompDataHistory();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return CompDataHistoryRecord.class;
}
/**
* The column ehr.comp_data_history.vo_id
.
*/
public final TableField VO_ID = createField(DSL.name("vo_id"), SQLDataType.UUID.nullable(false), this, "");
/**
* The column ehr.comp_data_history.num
.
*/
public final TableField NUM = createField(DSL.name("num"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column ehr.comp_data_history.citem_num
.
*/
public final TableField CITEM_NUM = createField(DSL.name("citem_num"), SQLDataType.INTEGER, this, "");
/**
* The column ehr.comp_data_history.rm_entity
.
*/
public final TableField RM_ENTITY = createField(DSL.name("rm_entity"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column ehr.comp_data_history.entity_concept
.
*/
public final TableField ENTITY_CONCEPT = createField(DSL.name("entity_concept"), SQLDataType.CLOB, this, "");
/**
* The column ehr.comp_data_history.entity_name
.
*/
public final TableField ENTITY_NAME = createField(DSL.name("entity_name"), SQLDataType.CLOB, this, "");
/**
* The column ehr.comp_data_history.entity_attribute
.
*/
public final TableField ENTITY_ATTRIBUTE = createField(DSL.name("entity_attribute"), SQLDataType.CLOB, this, "");
/**
* The column ehr.comp_data_history.entity_idx
.
*/
public final TableField ENTITY_IDX = createField(DSL.name("entity_idx"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column ehr.comp_data_history.entity_idx_len
.
*/
public final TableField ENTITY_IDX_LEN = createField(DSL.name("entity_idx_len"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column ehr.comp_data_history.data
.
*/
public final TableField DATA = createField(DSL.name("data"), SQLDataType.JSONB.nullable(false), this, "");
/**
* The column ehr.comp_data_history.sys_version
.
*/
public final TableField SYS_VERSION = createField(DSL.name("sys_version"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column ehr.comp_data_history.parent_num
.
*/
public final TableField PARENT_NUM = createField(DSL.name("parent_num"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column ehr.comp_data_history.num_cap
.
*/
public final TableField NUM_CAP = createField(DSL.name("num_cap"), SQLDataType.INTEGER.nullable(false), this, "");
private CompDataHistory(Name alias, Table aliased) {
this(alias, aliased, (Field>[]) null, null);
}
private CompDataHistory(Name alias, Table aliased, Field>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased ehr.comp_data_history
table reference
*/
public CompDataHistory(String alias) {
this(DSL.name(alias), COMP_DATA_HISTORY);
}
/**
* Create an aliased ehr.comp_data_history
table reference
*/
public CompDataHistory(Name alias) {
this(alias, COMP_DATA_HISTORY);
}
/**
* Create a ehr.comp_data_history
table reference
*/
public CompDataHistory() {
this(DSL.name("comp_data_history"), null);
}
public CompDataHistory(Table path, ForeignKey childPath, InverseForeignKey parentPath) {
super(path, childPath, parentPath, COMP_DATA_HISTORY);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class CompDataHistoryPath extends CompDataHistory implements Path {
private static final long serialVersionUID = 1L;
public CompDataHistoryPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) {
super(path, childPath, parentPath);
}
private CompDataHistoryPath(Name alias, Table aliased) {
super(alias, aliased);
}
@Override
public CompDataHistoryPath as(String alias) {
return new CompDataHistoryPath(DSL.name(alias), this);
}
@Override
public CompDataHistoryPath as(Name alias) {
return new CompDataHistoryPath(alias, this);
}
@Override
public CompDataHistoryPath as(Table> alias) {
return new CompDataHistoryPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Ehr.EHR;
}
@Override
public UniqueKey getPrimaryKey() {
return Keys.COMP_HISTORY_PKEY;
}
@Override
public List> getReferences() {
return Arrays.asList(Keys.COMP_DATA_HISTORY__COMP_DATA_HISTORY_VO_ID_SYS_VERSION_FKEY);
}
private transient CompVersionHistoryPath _compVersionHistory;
/**
* Get the implicit join path to the ehr.comp_version_history
* table.
*/
public CompVersionHistoryPath compVersionHistory() {
if (_compVersionHistory == null)
_compVersionHistory = new CompVersionHistoryPath(this, Keys.COMP_DATA_HISTORY__COMP_DATA_HISTORY_VO_ID_SYS_VERSION_FKEY, null);
return _compVersionHistory;
}
@Override
public CompDataHistory as(String alias) {
return new CompDataHistory(DSL.name(alias), this);
}
@Override
public CompDataHistory as(Name alias) {
return new CompDataHistory(alias, this);
}
@Override
public CompDataHistory as(Table> alias) {
return new CompDataHistory(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public CompDataHistory rename(String name) {
return new CompDataHistory(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public CompDataHistory rename(Name name) {
return new CompDataHistory(name, null);
}
/**
* Rename this table
*/
@Override
public CompDataHistory rename(Table> name) {
return new CompDataHistory(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public CompDataHistory where(Condition condition) {
return new CompDataHistory(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public CompDataHistory where(Collection extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public CompDataHistory where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public CompDataHistory where(Field condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public CompDataHistory where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public CompDataHistory where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public CompDataHistory where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public CompDataHistory where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public CompDataHistory whereExists(Select> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public CompDataHistory whereNotExists(Select> select) {
return where(DSL.notExists(select));
}
}