org.ehrbase.jooq.pg.tables.EhrFolderData Maven / Gradle / Ivy
The newest version!
/*
* 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.Ehr.EhrPath;
import org.ehrbase.jooq.pg.tables.EhrFolderVersion.EhrFolderVersionPath;
import org.ehrbase.jooq.pg.tables.records.EhrFolderDataRecord;
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 EhrFolderData extends TableImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of ehr.ehr_folder_data
*/
public static final EhrFolderData EHR_FOLDER_DATA = new EhrFolderData();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return EhrFolderDataRecord.class;
}
/**
* The column ehr.ehr_folder_data.vo_id
.
*/
public final TableField VO_ID = createField(DSL.name("vo_id"), SQLDataType.UUID.nullable(false), this, "");
/**
* The column ehr.ehr_folder_data.num
.
*/
public final TableField NUM = createField(DSL.name("num"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column ehr.ehr_folder_data.ehr_id
.
*/
public final TableField EHR_ID = createField(DSL.name("ehr_id"), SQLDataType.UUID.nullable(false), this, "");
/**
* The column ehr.ehr_folder_data.ehr_folders_idx
.
*/
public final TableField EHR_FOLDERS_IDX = createField(DSL.name("ehr_folders_idx"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column ehr.ehr_folder_data.citem_num
.
*/
public final TableField CITEM_NUM = createField(DSL.name("citem_num"), SQLDataType.INTEGER, this, "");
/**
* The column ehr.ehr_folder_data.rm_entity
.
*/
public final TableField RM_ENTITY = createField(DSL.name("rm_entity"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column ehr.ehr_folder_data.entity_concept
.
*/
public final TableField ENTITY_CONCEPT = createField(DSL.name("entity_concept"), SQLDataType.CLOB, this, "");
/**
* The column ehr.ehr_folder_data.entity_name
.
*/
public final TableField ENTITY_NAME = createField(DSL.name("entity_name"), SQLDataType.CLOB, this, "");
/**
* The column ehr.ehr_folder_data.entity_attribute
.
*/
public final TableField ENTITY_ATTRIBUTE = createField(DSL.name("entity_attribute"), SQLDataType.CLOB, this, "");
/**
* The column ehr.ehr_folder_data.entity_idx
.
*/
public final TableField ENTITY_IDX = createField(DSL.name("entity_idx"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column ehr.ehr_folder_data.entity_idx_len
.
*/
public final TableField ENTITY_IDX_LEN = createField(DSL.name("entity_idx_len"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column ehr.ehr_folder_data.data
.
*/
public final TableField DATA = createField(DSL.name("data"), SQLDataType.JSONB.nullable(false), this, "");
/**
* The column ehr.ehr_folder_data.parent_num
.
*/
public final TableField PARENT_NUM = createField(DSL.name("parent_num"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column ehr.ehr_folder_data.num_cap
.
*/
public final TableField NUM_CAP = createField(DSL.name("num_cap"), SQLDataType.INTEGER.nullable(false), this, "");
private EhrFolderData(Name alias, Table aliased) {
this(alias, aliased, (Field>[]) null, null);
}
private EhrFolderData(Name alias, Table aliased, Field>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased ehr.ehr_folder_data
table reference
*/
public EhrFolderData(String alias) {
this(DSL.name(alias), EHR_FOLDER_DATA);
}
/**
* Create an aliased ehr.ehr_folder_data
table reference
*/
public EhrFolderData(Name alias) {
this(alias, EHR_FOLDER_DATA);
}
/**
* Create a ehr.ehr_folder_data
table reference
*/
public EhrFolderData() {
this(DSL.name("ehr_folder_data"), null);
}
public EhrFolderData(Table path, ForeignKey childPath, InverseForeignKey parentPath) {
super(path, childPath, parentPath, EHR_FOLDER_DATA);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class EhrFolderDataPath extends EhrFolderData implements Path {
private static final long serialVersionUID = 1L;
public EhrFolderDataPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) {
super(path, childPath, parentPath);
}
private EhrFolderDataPath(Name alias, Table aliased) {
super(alias, aliased);
}
@Override
public EhrFolderDataPath as(String alias) {
return new EhrFolderDataPath(DSL.name(alias), this);
}
@Override
public EhrFolderDataPath as(Name alias) {
return new EhrFolderDataPath(alias, this);
}
@Override
public EhrFolderDataPath as(Table> alias) {
return new EhrFolderDataPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Ehr.EHR;
}
@Override
public UniqueKey getPrimaryKey() {
return Keys.EHR_FOLDER_PKEY;
}
@Override
public List> getReferences() {
return Arrays.asList(Keys.EHR_FOLDER_DATA__EHR_FOLDER_DATA_EHR_ID_EHR_FOLDERS_IDX_FKEY, Keys.EHR_FOLDER_DATA__EHR_FOLDER_EHR_ID_FKEY);
}
private transient EhrFolderVersionPath _ehrFolderVersion;
/**
* Get the implicit join path to the ehr.ehr_folder_version
* table.
*/
public EhrFolderVersionPath ehrFolderVersion() {
if (_ehrFolderVersion == null)
_ehrFolderVersion = new EhrFolderVersionPath(this, Keys.EHR_FOLDER_DATA__EHR_FOLDER_DATA_EHR_ID_EHR_FOLDERS_IDX_FKEY, null);
return _ehrFolderVersion;
}
private transient EhrPath _ehr;
/**
* Get the implicit join path to the ehr.ehr
table.
*/
public EhrPath ehr() {
if (_ehr == null)
_ehr = new EhrPath(this, Keys.EHR_FOLDER_DATA__EHR_FOLDER_EHR_ID_FKEY, null);
return _ehr;
}
@Override
public EhrFolderData as(String alias) {
return new EhrFolderData(DSL.name(alias), this);
}
@Override
public EhrFolderData as(Name alias) {
return new EhrFolderData(alias, this);
}
@Override
public EhrFolderData as(Table> alias) {
return new EhrFolderData(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public EhrFolderData rename(String name) {
return new EhrFolderData(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public EhrFolderData rename(Name name) {
return new EhrFolderData(name, null);
}
/**
* Rename this table
*/
@Override
public EhrFolderData rename(Table> name) {
return new EhrFolderData(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public EhrFolderData where(Condition condition) {
return new EhrFolderData(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public EhrFolderData where(Collection extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public EhrFolderData where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public EhrFolderData where(Field condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public EhrFolderData where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public EhrFolderData where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public EhrFolderData where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public EhrFolderData where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public EhrFolderData whereExists(Select> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public EhrFolderData whereNotExists(Select> select) {
return where(DSL.notExists(select));
}
}