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.AuditDetails 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.Ehr;
import org.ehrbase.jooq.pg.Keys;
import org.ehrbase.jooq.pg.enums.ContributionChangeType;
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.EhrFolderVersion.EhrFolderVersionPath;
import org.ehrbase.jooq.pg.tables.EhrFolderVersionHistory.EhrFolderVersionHistoryPath;
import org.ehrbase.jooq.pg.tables.EhrStatusVersion.EhrStatusVersionPath;
import org.ehrbase.jooq.pg.tables.EhrStatusVersionHistory.EhrStatusVersionHistoryPath;
import org.ehrbase.jooq.pg.tables.Users.UsersPath;
import org.ehrbase.jooq.pg.tables.records.AuditDetailsRecord;
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 AuditDetails extends TableImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of ehr.audit_details
*/
public static final AuditDetails AUDIT_DETAILS = new AuditDetails();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return AuditDetailsRecord.class;
}
/**
* The column ehr.audit_details.id
.
*/
public final TableField ID = createField(DSL.name("id"), SQLDataType.UUID.nullable(false), this, "");
/**
* The column ehr.audit_details.change_type
.
*/
public final TableField CHANGE_TYPE = createField(DSL.name("change_type"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(ContributionChangeType.class), this, "");
/**
* The column ehr.audit_details.description
.
*/
public final TableField DESCRIPTION = createField(DSL.name("description"), SQLDataType.CLOB, this, "");
/**
* The column ehr.audit_details.time_committed
.
*/
public final TableField TIME_COMMITTED = createField(DSL.name("time_committed"), SQLDataType.TIMESTAMPWITHTIMEZONE(6).nullable(false), this, "");
/**
* The column ehr.audit_details.committer
.
*/
public final TableField COMMITTER = createField(DSL.name("committer"), SQLDataType.JSONB, this, "");
/**
* The column ehr.audit_details.user_id
.
*/
public final TableField USER_ID = createField(DSL.name("user_id"), SQLDataType.UUID.nullable(false), this, "");
/**
* The column ehr.audit_details.target_type
.
*/
public final TableField TARGET_TYPE = createField(DSL.name("target_type"), SQLDataType.VARCHAR.nullable(false), this, "");
private AuditDetails(Name alias, Table aliased) {
this(alias, aliased, (Field>[]) null, null);
}
private AuditDetails(Name alias, Table aliased, Field>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased ehr.audit_details
table reference
*/
public AuditDetails(String alias) {
this(DSL.name(alias), AUDIT_DETAILS);
}
/**
* Create an aliased ehr.audit_details
table reference
*/
public AuditDetails(Name alias) {
this(alias, AUDIT_DETAILS);
}
/**
* Create a ehr.audit_details
table reference
*/
public AuditDetails() {
this(DSL.name("audit_details"), null);
}
public AuditDetails(Table path, ForeignKey childPath, InverseForeignKey parentPath) {
super(path, childPath, parentPath, AUDIT_DETAILS);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class AuditDetailsPath extends AuditDetails implements Path {
private static final long serialVersionUID = 1L;
public AuditDetailsPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) {
super(path, childPath, parentPath);
}
private AuditDetailsPath(Name alias, Table aliased) {
super(alias, aliased);
}
@Override
public AuditDetailsPath as(String alias) {
return new AuditDetailsPath(DSL.name(alias), this);
}
@Override
public AuditDetailsPath as(Name alias) {
return new AuditDetailsPath(alias, this);
}
@Override
public AuditDetailsPath as(Table> alias) {
return new AuditDetailsPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Ehr.EHR;
}
@Override
public UniqueKey getPrimaryKey() {
return Keys.AUDIT_DETAILS_PKEY;
}
@Override
public List> getReferences() {
return Arrays.asList(Keys.AUDIT_DETAILS__AUDIT_DETAILS_USER_ID_FKEY);
}
private transient UsersPath _users;
/**
* Get the implicit join path to the ehr.users
table.
*/
public UsersPath users() {
if (_users == null)
_users = new UsersPath(this, Keys.AUDIT_DETAILS__AUDIT_DETAILS_USER_ID_FKEY, null);
return _users;
}
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_AUDIT_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_AUDIT_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_HAS_AUDIT_FKEY.getInverseKey());
return _contribution;
}
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_AUDIT_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_AUDIT_ID_FKEY.getInverseKey());
return _ehrFolderVersionHistory;
}
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_AUDIT_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_AUDIT_ID_FKEY.getInverseKey());
return _ehrStatusVersionHistory;
}
@Override
public AuditDetails as(String alias) {
return new AuditDetails(DSL.name(alias), this);
}
@Override
public AuditDetails as(Name alias) {
return new AuditDetails(alias, this);
}
@Override
public AuditDetails as(Table> alias) {
return new AuditDetails(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public AuditDetails rename(String name) {
return new AuditDetails(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public AuditDetails rename(Name name) {
return new AuditDetails(name, null);
}
/**
* Rename this table
*/
@Override
public AuditDetails rename(Table> name) {
return new AuditDetails(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public AuditDetails where(Condition condition) {
return new AuditDetails(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public AuditDetails where(Collection extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public AuditDetails where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public AuditDetails where(Field condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public AuditDetails where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public AuditDetails where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public AuditDetails where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public AuditDetails where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public AuditDetails whereExists(Select> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public AuditDetails whereNotExists(Select> select) {
return where(DSL.notExists(select));
}
}