org.ehrbase.jooq.pg.tables.EhrFolderVersionHistory Maven / Gradle / Ivy
The newest version!
/*
* 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.Ehr;
import org.ehrbase.jooq.pg.Keys;
import org.ehrbase.jooq.pg.tables.AuditDetails.AuditDetailsPath;
import org.ehrbase.jooq.pg.tables.Contribution.ContributionPath;
import org.ehrbase.jooq.pg.tables.Ehr.EhrPath;
import org.ehrbase.jooq.pg.tables.EhrFolderDataHistory.EhrFolderDataHistoryPath;
import org.ehrbase.jooq.pg.tables.records.EhrFolderVersionHistoryRecord;
import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.ForeignKey;
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 EhrFolderVersionHistory extends TableImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of ehr.ehr_folder_version_history
*/
public static final EhrFolderVersionHistory EHR_FOLDER_VERSION_HISTORY = new EhrFolderVersionHistory();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return EhrFolderVersionHistoryRecord.class;
}
/**
* The column ehr.ehr_folder_version_history.vo_id
.
*/
public final TableField VO_ID = createField(DSL.name("vo_id"), SQLDataType.UUID.nullable(false), this, "");
/**
* The column ehr.ehr_folder_version_history.ehr_id
.
*/
public final TableField EHR_ID = createField(DSL.name("ehr_id"), SQLDataType.UUID.nullable(false), this, "");
/**
* The column ehr.ehr_folder_version_history.contribution_id
.
*/
public final TableField CONTRIBUTION_ID = createField(DSL.name("contribution_id"), SQLDataType.UUID.nullable(false), this, "");
/**
* The column ehr.ehr_folder_version_history.audit_id
.
*/
public final TableField AUDIT_ID = createField(DSL.name("audit_id"), SQLDataType.UUID.nullable(false), this, "");
/**
* The column ehr.ehr_folder_version_history.sys_version
.
*/
public final TableField SYS_VERSION = createField(DSL.name("sys_version"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column ehr.ehr_folder_version_history.sys_period_lower
.
*/
public final TableField SYS_PERIOD_LOWER = createField(DSL.name("sys_period_lower"), SQLDataType.TIMESTAMPWITHTIMEZONE(6).nullable(false), this, "");
/**
* The column ehr.ehr_folder_version_history.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_version_history.sys_period_upper
.
*/
public final TableField SYS_PERIOD_UPPER = createField(DSL.name("sys_period_upper"), SQLDataType.TIMESTAMPWITHTIMEZONE(6), this, "");
/**
* The column ehr.ehr_folder_version_history.sys_deleted
.
*/
public final TableField SYS_DELETED = createField(DSL.name("sys_deleted"), SQLDataType.BOOLEAN.nullable(false), this, "");
private EhrFolderVersionHistory(Name alias, Table aliased) {
this(alias, aliased, (Field>[]) null, null);
}
private EhrFolderVersionHistory(Name alias, Table aliased, Field>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased ehr.ehr_folder_version_history
table
* reference
*/
public EhrFolderVersionHistory(String alias) {
this(DSL.name(alias), EHR_FOLDER_VERSION_HISTORY);
}
/**
* Create an aliased ehr.ehr_folder_version_history
table
* reference
*/
public EhrFolderVersionHistory(Name alias) {
this(alias, EHR_FOLDER_VERSION_HISTORY);
}
/**
* Create a ehr.ehr_folder_version_history
table reference
*/
public EhrFolderVersionHistory() {
this(DSL.name("ehr_folder_version_history"), null);
}
public EhrFolderVersionHistory(Table path, ForeignKey childPath, InverseForeignKey parentPath) {
super(path, childPath, parentPath, EHR_FOLDER_VERSION_HISTORY);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class EhrFolderVersionHistoryPath extends EhrFolderVersionHistory implements Path {
private static final long serialVersionUID = 1L;
public EhrFolderVersionHistoryPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) {
super(path, childPath, parentPath);
}
private EhrFolderVersionHistoryPath(Name alias, Table aliased) {
super(alias, aliased);
}
@Override
public EhrFolderVersionHistoryPath as(String alias) {
return new EhrFolderVersionHistoryPath(DSL.name(alias), this);
}
@Override
public EhrFolderVersionHistoryPath as(Name alias) {
return new EhrFolderVersionHistoryPath(alias, this);
}
@Override
public EhrFolderVersionHistoryPath as(Table> alias) {
return new EhrFolderVersionHistoryPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Ehr.EHR;
}
@Override
public UniqueKey getPrimaryKey() {
return Keys.EHR_FOLDER_VERSION_HISTORY_PKEY;
}
@Override
public List> getReferences() {
return Arrays.asList(Keys.EHR_FOLDER_VERSION_HISTORY__EHR_FOLDER_VERSION_HISTORY_AUDIT_ID_FKEY, Keys.EHR_FOLDER_VERSION_HISTORY__EHR_FOLDER_VERSION_HISTORY_CONTRIBUTION_ID_FKEY, Keys.EHR_FOLDER_VERSION_HISTORY__EHR_FOLDER_VERSION_HISTORY_EHR_ID_FKEY);
}
private transient AuditDetailsPath _auditDetails;
/**
* Get the implicit join path to the ehr.audit_details
table.
*/
public AuditDetailsPath auditDetails() {
if (_auditDetails == null)
_auditDetails = new AuditDetailsPath(this, Keys.EHR_FOLDER_VERSION_HISTORY__EHR_FOLDER_VERSION_HISTORY_AUDIT_ID_FKEY, null);
return _auditDetails;
}
private transient ContributionPath _contribution;
/**
* Get the implicit join path to the ehr.contribution
table.
*/
public ContributionPath contribution() {
if (_contribution == null)
_contribution = new ContributionPath(this, Keys.EHR_FOLDER_VERSION_HISTORY__EHR_FOLDER_VERSION_HISTORY_CONTRIBUTION_ID_FKEY, null);
return _contribution;
}
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_VERSION_HISTORY__EHR_FOLDER_VERSION_HISTORY_EHR_ID_FKEY, null);
return _ehr;
}
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_DATA_HISTORY_EHR_ID_EHR_FOLDERS_IDX_SYS_VERSION_FKEY.getInverseKey());
return _ehrFolderDataHistory;
}
@Override
public EhrFolderVersionHistory as(String alias) {
return new EhrFolderVersionHistory(DSL.name(alias), this);
}
@Override
public EhrFolderVersionHistory as(Name alias) {
return new EhrFolderVersionHistory(alias, this);
}
@Override
public EhrFolderVersionHistory as(Table> alias) {
return new EhrFolderVersionHistory(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public EhrFolderVersionHistory rename(String name) {
return new EhrFolderVersionHistory(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public EhrFolderVersionHistory rename(Name name) {
return new EhrFolderVersionHistory(name, null);
}
/**
* Rename this table
*/
@Override
public EhrFolderVersionHistory rename(Table> name) {
return new EhrFolderVersionHistory(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public EhrFolderVersionHistory where(Condition condition) {
return new EhrFolderVersionHistory(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public EhrFolderVersionHistory where(Collection extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public EhrFolderVersionHistory where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public EhrFolderVersionHistory where(Field condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public EhrFolderVersionHistory where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public EhrFolderVersionHistory where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public EhrFolderVersionHistory where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public EhrFolderVersionHistory where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public EhrFolderVersionHistory whereExists(Select> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public EhrFolderVersionHistory whereNotExists(Select> select) {
return where(DSL.notExists(select));
}
}