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.
com.netflix.spinnaker.keel.persistence.metamodel.tables.ActiveEnvironment Maven / Gradle / Ivy
/*
* This file is generated by jOOQ.
*/
package com.netflix.spinnaker.keel.persistence.metamodel.tables;
import com.netflix.spinnaker.keel.persistence.metamodel.Keel;
import com.netflix.spinnaker.keel.persistence.metamodel.tables.records.ActiveEnvironmentRecord;
import javax.annotation.processing.Generated;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row10;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.impl.DSL;
import org.jooq.impl.TableImpl;
/**
* VIEW
*/
@Generated(
value = {
"https://www.jooq.org",
"jOOQ version:3.13.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class ActiveEnvironment extends TableImpl {
private static final long serialVersionUID = -1153888491;
/**
* The reference instance of keel.active_environment
*/
public static final ActiveEnvironment ACTIVE_ENVIRONMENT = new ActiveEnvironment();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return ActiveEnvironmentRecord.class;
}
/**
* The column keel.active_environment.uid
.
*/
public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.CHAR(26).nullable(false), this, "");
/**
* The column keel.active_environment.delivery_config_uid
.
*/
public final TableField DELIVERY_CONFIG_UID = createField(DSL.name("delivery_config_uid"), org.jooq.impl.SQLDataType.CHAR(26).nullable(false), this, "");
/**
* The column keel.active_environment.name
.
*/
public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column keel.active_environment.version
.
*/
public final TableField VERSION = createField(DSL.name("version"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("1", org.jooq.impl.SQLDataType.INTEGER)), this, "");
/**
* The column keel.active_environment.is_preview
.
*/
public final TableField IS_PREVIEW = createField(DSL.name("is_preview"), org.jooq.impl.SQLDataType.BIT.nullable(false).defaultValue(org.jooq.impl.DSL.inline("b'0'", org.jooq.impl.SQLDataType.BIT)), this, "");
/**
* The column keel.active_environment.constraints
.
*/
public final TableField CONSTRAINTS = createField(DSL.name("constraints"), org.jooq.impl.SQLDataType.LONGVARCHAR.nullable(false), this, "");
/**
* The column keel.active_environment.notifications
.
*/
public final TableField NOTIFICATIONS = createField(DSL.name("notifications"), org.jooq.impl.SQLDataType.LONGVARCHAR.nullable(false), this, "");
/**
* The column keel.active_environment.verifications
.
*/
public final TableField VERIFICATIONS = createField(DSL.name("verifications"), org.jooq.impl.SQLDataType.LONGVARCHAR.nullable(false), this, "");
/**
* The column keel.active_environment.post_deploy_actions
.
*/
public final TableField POST_DEPLOY_ACTIONS = createField(DSL.name("post_deploy_actions"), org.jooq.impl.SQLDataType.LONGVARCHAR.nullable(false), this, "");
/**
* The column keel.active_environment.metadata
.
*/
public final TableField METADATA = createField(DSL.name("metadata"), org.jooq.impl.SQLDataType.LONGVARCHAR, this, "");
/**
* Create a keel.active_environment
table reference
*/
public ActiveEnvironment() {
this(DSL.name("active_environment"), null);
}
/**
* Create an aliased keel.active_environment
table reference
*/
public ActiveEnvironment(String alias) {
this(DSL.name(alias), ACTIVE_ENVIRONMENT);
}
/**
* Create an aliased keel.active_environment
table reference
*/
public ActiveEnvironment(Name alias) {
this(alias, ACTIVE_ENVIRONMENT);
}
private ActiveEnvironment(Name alias, Table aliased) {
this(alias, aliased, null);
}
private ActiveEnvironment(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment("VIEW"), TableOptions.view("create view `active_environment` as select `keel`.`environment`.`uid` AS `uid`,`keel`.`environment`.`delivery_config_uid` AS `delivery_config_uid`,`keel`.`environment`.`name` AS `name`,`keel`.`environment_version`.`version` AS `version`,`keel`.`environment`.`is_preview` AS `is_preview`,`keel`.`environment`.`constraints` AS `constraints`,`keel`.`environment`.`notifications` AS `notifications`,`keel`.`environment`.`verifications` AS `verifications`,`keel`.`environment`.`post_deploy_actions` AS `post_deploy_actions`,`keel`.`environment`.`metadata` AS `metadata` from ((`keel`.`environment` join `keel`.`active_environment_version` on((`keel`.`environment`.`uid` = `keel`.`active_environment_version`.`environment_uid`))) join `keel`.`environment_version` on(((`keel`.`environment_version`.`environment_uid` = `keel`.`active_environment_version`.`environment_uid`) and (`keel`.`environment_version`.`version` = `keel`.`active_environment_version`.`active_version`))))"));
}
public ActiveEnvironment(Table child, ForeignKey key) {
super(child, key, ACTIVE_ENVIRONMENT);
}
@Override
public Schema getSchema() {
return Keel.KEEL;
}
@Override
public ActiveEnvironment as(String alias) {
return new ActiveEnvironment(DSL.name(alias), this);
}
@Override
public ActiveEnvironment as(Name alias) {
return new ActiveEnvironment(alias, this);
}
/**
* Rename this table
*/
@Override
public ActiveEnvironment rename(String name) {
return new ActiveEnvironment(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public ActiveEnvironment rename(Name name) {
return new ActiveEnvironment(name, null);
}
// -------------------------------------------------------------------------
// Row10 type methods
// -------------------------------------------------------------------------
@Override
public Row10 fieldsRow() {
return (Row10) super.fieldsRow();
}
}