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.Ehr Maven / Gradle / Ivy
/*
* This file is generated by jOOQ.
*/
package org.ehrbase.jooq.pg.tables;
import java.time.OffsetDateTime;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.UUID;
import org.ehrbase.jooq.pg.Indexes;
import org.ehrbase.jooq.pg.Keys;
import org.ehrbase.jooq.pg.tables.CompVersion.CompVersionPath;
import org.ehrbase.jooq.pg.tables.CompVersionHistory.CompVersionHistoryPath;
import org.ehrbase.jooq.pg.tables.Contribution.ContributionPath;
import org.ehrbase.jooq.pg.tables.EhrFolderData.EhrFolderDataPath;
import org.ehrbase.jooq.pg.tables.EhrFolderDataHistory.EhrFolderDataHistoryPath;
import org.ehrbase.jooq.pg.tables.EhrFolderVersion.EhrFolderVersionPath;
import org.ehrbase.jooq.pg.tables.EhrFolderVersionHistory.EhrFolderVersionHistoryPath;
import org.ehrbase.jooq.pg.tables.EhrItemTag.EhrItemTagPath;
import org.ehrbase.jooq.pg.tables.EhrStatusData.EhrStatusDataPath;
import org.ehrbase.jooq.pg.tables.EhrStatusDataHistory.EhrStatusDataHistoryPath;
import org.ehrbase.jooq.pg.tables.EhrStatusVersion.EhrStatusVersionPath;
import org.ehrbase.jooq.pg.tables.EhrStatusVersionHistory.EhrStatusVersionHistoryPath;
import org.ehrbase.jooq.pg.tables.records.EhrRecord;
import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Index;
import org.jooq.InverseForeignKey;
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 Ehr extends TableImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of ehr.ehr
*/
public static final Ehr EHR_ = new Ehr();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return EhrRecord.class;
}
/**
* The column ehr.ehr.id
.
*/
public final TableField ID = createField(DSL.name("id"), SQLDataType.UUID.nullable(false), this, "");
/**
* The column ehr.ehr.creation_date
.
*/
public final TableField CREATION_DATE = createField(DSL.name("creation_date"), SQLDataType.TIMESTAMPWITHTIMEZONE(6), this, "");
private Ehr(Name alias, Table aliased) {
this(alias, aliased, (Field>[]) null, null);
}
private Ehr(Name alias, Table aliased, Field>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased ehr.ehr
table reference
*/
public Ehr(String alias) {
this(DSL.name(alias), EHR_);
}
/**
* Create an aliased ehr.ehr
table reference
*/
public Ehr(Name alias) {
this(alias, EHR_);
}
/**
* Create a ehr.ehr
table reference
*/
public Ehr() {
this(DSL.name("ehr"), null);
}
public Ehr(Table path, ForeignKey childPath, InverseForeignKey parentPath) {
super(path, childPath, parentPath, EHR_);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class EhrPath extends Ehr implements Path {
private static final long serialVersionUID = 1L;
public EhrPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) {
super(path, childPath, parentPath);
}
private EhrPath(Name alias, Table aliased) {
super(alias, aliased);
}
@Override
public EhrPath as(String alias) {
return new EhrPath(DSL.name(alias), this);
}
@Override
public EhrPath as(Name alias) {
return new EhrPath(alias, this);
}
@Override
public EhrPath as(Table> alias) {
return new EhrPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : org.ehrbase.jooq.pg.Ehr.EHR;
}
@Override
public List getIndexes() {
return Arrays.asList(Indexes.EHR_TIME_CREATED_IDX);
}
@Override
public UniqueKey getPrimaryKey() {
return Keys.EHR_PKEY;
}
private transient CompVersionPath _compVersion;
/**
* Get the implicit to-many join path to the ehr.comp_version
* table
*/
public CompVersionPath compVersion() {
if (_compVersion == null)
_compVersion = new CompVersionPath(this, null, Keys.COMP_VERSION__COMP_VERSION_EHR_ID_FKEY.getInverseKey());
return _compVersion;
}
private transient CompVersionHistoryPath _compVersionHistory;
/**
* Get the implicit to-many join path to the
* ehr.comp_version_history
table
*/
public CompVersionHistoryPath compVersionHistory() {
if (_compVersionHistory == null)
_compVersionHistory = new CompVersionHistoryPath(this, null, Keys.COMP_VERSION_HISTORY__COMP_VERSION_HISTORY_EHR_ID_FKEY.getInverseKey());
return _compVersionHistory;
}
private transient ContributionPath _contribution;
/**
* Get the implicit to-many join path to the ehr.contribution
* table
*/
public ContributionPath contribution() {
if (_contribution == null)
_contribution = new ContributionPath(this, null, Keys.CONTRIBUTION__CONTRIBUTION_EHR_ID_FKEY.getInverseKey());
return _contribution;
}
private transient EhrFolderDataPath _ehrFolderData;
/**
* Get the implicit to-many join path to the
* ehr.ehr_folder_data
table
*/
public EhrFolderDataPath ehrFolderData() {
if (_ehrFolderData == null)
_ehrFolderData = new EhrFolderDataPath(this, null, Keys.EHR_FOLDER_DATA__EHR_FOLDER_EHR_ID_FKEY.getInverseKey());
return _ehrFolderData;
}
private transient EhrFolderDataHistoryPath _ehrFolderDataHistory;
/**
* Get the implicit to-many join path to the
* ehr.ehr_folder_data_history
table
*/
public EhrFolderDataHistoryPath ehrFolderDataHistory() {
if (_ehrFolderDataHistory == null)
_ehrFolderDataHistory = new EhrFolderDataHistoryPath(this, null, Keys.EHR_FOLDER_DATA_HISTORY__EHR_FOLDER_HISTORY_EHR_ID_FKEY.getInverseKey());
return _ehrFolderDataHistory;
}
private transient EhrFolderVersionPath _ehrFolderVersion;
/**
* Get the implicit to-many join path to the
* ehr.ehr_folder_version
table
*/
public EhrFolderVersionPath ehrFolderVersion() {
if (_ehrFolderVersion == null)
_ehrFolderVersion = new EhrFolderVersionPath(this, null, Keys.EHR_FOLDER_VERSION__EHR_FOLDER_VERSION_EHR_ID_FKEY.getInverseKey());
return _ehrFolderVersion;
}
private transient EhrFolderVersionHistoryPath _ehrFolderVersionHistory;
/**
* Get the implicit to-many join path to the
* ehr.ehr_folder_version_history
table
*/
public EhrFolderVersionHistoryPath ehrFolderVersionHistory() {
if (_ehrFolderVersionHistory == null)
_ehrFolderVersionHistory = new EhrFolderVersionHistoryPath(this, null, Keys.EHR_FOLDER_VERSION_HISTORY__EHR_FOLDER_VERSION_HISTORY_EHR_ID_FKEY.getInverseKey());
return _ehrFolderVersionHistory;
}
private transient EhrItemTagPath _ehrItemTag;
/**
* Get the implicit to-many join path to the ehr.ehr_item_tag
* table
*/
public EhrItemTagPath ehrItemTag() {
if (_ehrItemTag == null)
_ehrItemTag = new EhrItemTagPath(this, null, Keys.EHR_ITEM_TAG__EHR_ITEM_TAG_EHR_ID_FKEY.getInverseKey());
return _ehrItemTag;
}
private transient EhrStatusDataPath _ehrStatusData;
/**
* Get the implicit to-many join path to the
* ehr.ehr_status_data
table
*/
public EhrStatusDataPath ehrStatusData() {
if (_ehrStatusData == null)
_ehrStatusData = new EhrStatusDataPath(this, null, Keys.EHR_STATUS_DATA__EHR_STATUS_EHR_ID_FKEY.getInverseKey());
return _ehrStatusData;
}
private transient EhrStatusDataHistoryPath _ehrStatusDataHistory;
/**
* Get the implicit to-many join path to the
* ehr.ehr_status_data_history
table
*/
public EhrStatusDataHistoryPath ehrStatusDataHistory() {
if (_ehrStatusDataHistory == null)
_ehrStatusDataHistory = new EhrStatusDataHistoryPath(this, null, Keys.EHR_STATUS_DATA_HISTORY__EHR_STATUS_HISTORY_EHR_ID_FKEY.getInverseKey());
return _ehrStatusDataHistory;
}
private transient EhrStatusVersionPath _ehrStatusVersion;
/**
* Get the implicit to-many join path to the
* ehr.ehr_status_version
table
*/
public EhrStatusVersionPath ehrStatusVersion() {
if (_ehrStatusVersion == null)
_ehrStatusVersion = new EhrStatusVersionPath(this, null, Keys.EHR_STATUS_VERSION__EHR_STATUS_VERSION_EHR_ID_FKEY.getInverseKey());
return _ehrStatusVersion;
}
private transient EhrStatusVersionHistoryPath _ehrStatusVersionHistory;
/**
* Get the implicit to-many join path to the
* ehr.ehr_status_version_history
table
*/
public EhrStatusVersionHistoryPath ehrStatusVersionHistory() {
if (_ehrStatusVersionHistory == null)
_ehrStatusVersionHistory = new EhrStatusVersionHistoryPath(this, null, Keys.EHR_STATUS_VERSION_HISTORY__EHR_STATUS_VERSION_HISTORY_EHR_ID_FKEY.getInverseKey());
return _ehrStatusVersionHistory;
}
@Override
public Ehr as(String alias) {
return new Ehr(DSL.name(alias), this);
}
@Override
public Ehr as(Name alias) {
return new Ehr(alias, this);
}
@Override
public Ehr as(Table> alias) {
return new Ehr(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public Ehr rename(String name) {
return new Ehr(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public Ehr rename(Name name) {
return new Ehr(name, null);
}
/**
* Rename this table
*/
@Override
public Ehr rename(Table> name) {
return new Ehr(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public Ehr where(Condition condition) {
return new Ehr(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public Ehr where(Collection extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public Ehr where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public Ehr where(Field condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Ehr where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Ehr where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Ehr where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Ehr where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public Ehr whereExists(Select> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public Ehr whereNotExists(Select> select) {
return where(DSL.notExists(select));
}
}