org.ehrbase.jooq.pg.tables.Plugin Maven / Gradle / Ivy
The newest version!
/*
* This file is generated by jOOQ.
*/
package org.ehrbase.jooq.pg.tables;
import java.util.Collection;
import java.util.UUID;
import org.ehrbase.jooq.pg.Ehr;
import org.ehrbase.jooq.pg.Keys;
import org.ehrbase.jooq.pg.tables.records.PluginRecord;
import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.Name;
import org.jooq.PlainSQL;
import org.jooq.QueryPart;
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;
/**
* key value store for plugin sub system
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class Plugin extends TableImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of ehr.plugin
*/
public static final Plugin PLUGIN = new Plugin();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return PluginRecord.class;
}
/**
* The column ehr.plugin.id
.
*/
public final TableField ID = createField(DSL.name("id"), SQLDataType.UUID.nullable(false).defaultValue(DSL.field(DSL.raw("uuid_generate_v4()"), SQLDataType.UUID)), this, "");
/**
* The column ehr.plugin.pluginid
.
*/
public final TableField PLUGINID = createField(DSL.name("pluginid"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column ehr.plugin.key
.
*/
public final TableField KEY = createField(DSL.name("key"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column ehr.plugin.value
.
*/
public final TableField VALUE = createField(DSL.name("value"), SQLDataType.CLOB, this, "");
private Plugin(Name alias, Table aliased) {
this(alias, aliased, (Field>[]) null, null);
}
private Plugin(Name alias, Table aliased, Field>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment("key value store for plugin sub system"), TableOptions.table(), where);
}
/**
* Create an aliased ehr.plugin
table reference
*/
public Plugin(String alias) {
this(DSL.name(alias), PLUGIN);
}
/**
* Create an aliased ehr.plugin
table reference
*/
public Plugin(Name alias) {
this(alias, PLUGIN);
}
/**
* Create a ehr.plugin
table reference
*/
public Plugin() {
this(DSL.name("plugin"), null);
}
@Override
public Schema getSchema() {
return aliased() ? null : Ehr.EHR;
}
@Override
public UniqueKey getPrimaryKey() {
return Keys.PLUGIN_PKEY;
}
@Override
public Plugin as(String alias) {
return new Plugin(DSL.name(alias), this);
}
@Override
public Plugin as(Name alias) {
return new Plugin(alias, this);
}
@Override
public Plugin as(Table> alias) {
return new Plugin(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public Plugin rename(String name) {
return new Plugin(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public Plugin rename(Name name) {
return new Plugin(name, null);
}
/**
* Rename this table
*/
@Override
public Plugin rename(Table> name) {
return new Plugin(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public Plugin where(Condition condition) {
return new Plugin(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public Plugin where(Collection extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public Plugin where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public Plugin where(Field condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Plugin where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Plugin where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Plugin where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Plugin where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public Plugin whereExists(Select> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public Plugin whereNotExists(Select> select) {
return where(DSL.notExists(select));
}
}