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.EnvironmentArtifactVersions Maven / Gradle / Ivy
/*
* This file is generated by jOOQ.
*/
package com.netflix.spinnaker.keel.persistence.metamodel.tables;
import com.netflix.spinnaker.jooq.LocalDateTimeToInstantConverter;
import com.netflix.spinnaker.keel.core.api.PromotionStatus;
import com.netflix.spinnaker.keel.persistence.metamodel.Indexes;
import com.netflix.spinnaker.keel.persistence.metamodel.Keel;
import com.netflix.spinnaker.keel.persistence.metamodel.Keys;
import com.netflix.spinnaker.keel.persistence.metamodel.tables.records.EnvironmentArtifactVersionsRecord;
import java.time.Instant;
import java.util.Arrays;
import java.util.List;
import javax.annotation.processing.Generated;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Index;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row9;
import org.jooq.Schema;
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.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"https://www.jooq.org",
"jOOQ version:3.13.6"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class EnvironmentArtifactVersions extends TableImpl {
private static final long serialVersionUID = -584161852;
/**
* The reference instance of keel.environment_artifact_versions
*/
public static final EnvironmentArtifactVersions ENVIRONMENT_ARTIFACT_VERSIONS = new EnvironmentArtifactVersions();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return EnvironmentArtifactVersionsRecord.class;
}
/**
* The column keel.environment_artifact_versions.environment_uid
.
*/
public final TableField ENVIRONMENT_UID = createField(DSL.name("environment_uid"), org.jooq.impl.SQLDataType.CHAR(26).nullable(false), this, "");
/**
* The column keel.environment_artifact_versions.artifact_uid
.
*/
public final TableField ARTIFACT_UID = createField(DSL.name("artifact_uid"), org.jooq.impl.SQLDataType.CHAR(26).nullable(false), this, "");
/**
* The column keel.environment_artifact_versions.artifact_version
.
*/
public final TableField ARTIFACT_VERSION = createField(DSL.name("artifact_version"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column keel.environment_artifact_versions.approved_at
.
*/
public final TableField APPROVED_AT = createField(DSL.name("approved_at"), org.jooq.impl.SQLDataType.LOCALDATETIME, this, "", new LocalDateTimeToInstantConverter());
/**
* The column keel.environment_artifact_versions.deployed_at
.
*/
public final TableField DEPLOYED_AT = createField(DSL.name("deployed_at"), org.jooq.impl.SQLDataType.LOCALDATETIME, this, "", new LocalDateTimeToInstantConverter());
/**
* The column keel.environment_artifact_versions.promotion_status
.
*/
public final TableField PROMOTION_STATUS = createField(DSL.name("promotion_status"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "", new org.jooq.impl.EnumConverter(java.lang.String.class, com.netflix.spinnaker.keel.core.api.PromotionStatus.class));
/**
* The column keel.environment_artifact_versions.promotion_reference
.
*/
public final TableField PROMOTION_REFERENCE = createField(DSL.name("promotion_reference"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "");
/**
* The column keel.environment_artifact_versions.replaced_by
.
*/
public final TableField REPLACED_BY = createField(DSL.name("replaced_by"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "");
/**
* The column keel.environment_artifact_versions.replaced_at
.
*/
public final TableField REPLACED_AT = createField(DSL.name("replaced_at"), org.jooq.impl.SQLDataType.LOCALDATETIME, this, "", new LocalDateTimeToInstantConverter());
/**
* Create a keel.environment_artifact_versions
table reference
*/
public EnvironmentArtifactVersions() {
this(DSL.name("environment_artifact_versions"), null);
}
/**
* Create an aliased keel.environment_artifact_versions
table reference
*/
public EnvironmentArtifactVersions(String alias) {
this(DSL.name(alias), ENVIRONMENT_ARTIFACT_VERSIONS);
}
/**
* Create an aliased keel.environment_artifact_versions
table reference
*/
public EnvironmentArtifactVersions(Name alias) {
this(alias, ENVIRONMENT_ARTIFACT_VERSIONS);
}
private EnvironmentArtifactVersions(Name alias, Table aliased) {
this(alias, aliased, null);
}
private EnvironmentArtifactVersions(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
public EnvironmentArtifactVersions(Table child, ForeignKey key) {
super(child, key, ENVIRONMENT_ARTIFACT_VERSIONS);
}
@Override
public Schema getSchema() {
return Keel.KEEL;
}
@Override
public List getIndexes() {
return Arrays.asList(Indexes.ENVIRONMENT_ARTIFACT_VERSIONS_EAV_STATUS_IDX, Indexes.ENVIRONMENT_ARTIFACT_VERSIONS_ENVIRONMENT_ARTIFACT_VERSIONS_APPROVED_AT_IDX, Indexes.ENVIRONMENT_ARTIFACT_VERSIONS_ENVIRONMENT_ARTIFACT_VERSIONS_DEPLOYED_AT_IDX);
}
@Override
public UniqueKey getPrimaryKey() {
return Keys.KEY_ENVIRONMENT_ARTIFACT_VERSIONS_PRIMARY;
}
@Override
public List> getKeys() {
return Arrays.>asList(Keys.KEY_ENVIRONMENT_ARTIFACT_VERSIONS_PRIMARY);
}
@Override
public List> getReferences() {
return Arrays.>asList(Keys.FK_ENVIRONMENT_ARTIFACT_VERSIONS_ENVIRONMENT, Keys.FK_ENVIRONMENT_ARTIFACT_VERSIONS_DELIVERY_ARTIFACT);
}
public Environment environment() {
return new Environment(this, Keys.FK_ENVIRONMENT_ARTIFACT_VERSIONS_ENVIRONMENT);
}
public DeliveryArtifact deliveryArtifact() {
return new DeliveryArtifact(this, Keys.FK_ENVIRONMENT_ARTIFACT_VERSIONS_DELIVERY_ARTIFACT);
}
@Override
public EnvironmentArtifactVersions as(String alias) {
return new EnvironmentArtifactVersions(DSL.name(alias), this);
}
@Override
public EnvironmentArtifactVersions as(Name alias) {
return new EnvironmentArtifactVersions(alias, this);
}
/**
* Rename this table
*/
@Override
public EnvironmentArtifactVersions rename(String name) {
return new EnvironmentArtifactVersions(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public EnvironmentArtifactVersions rename(Name name) {
return new EnvironmentArtifactVersions(name, null);
}
// -------------------------------------------------------------------------
// Row9 type methods
// -------------------------------------------------------------------------
@Override
public Row9 fieldsRow() {
return (Row9) super.fieldsRow();
}
}