All Downloads are FREE. Search and download functionalities are using the official Maven repository.
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.EnvironmentArtifactPin 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.persistence.metamodel.Keel;
import com.netflix.spinnaker.keel.persistence.metamodel.Keys;
import com.netflix.spinnaker.keel.persistence.metamodel.tables.records.EnvironmentArtifactPinRecord;
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.Name;
import org.jooq.Record;
import org.jooq.Row6;
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 EnvironmentArtifactPin extends TableImpl {
private static final long serialVersionUID = 1702785649;
/**
* The reference instance of keel.environment_artifact_pin
*/
public static final EnvironmentArtifactPin ENVIRONMENT_ARTIFACT_PIN = new EnvironmentArtifactPin();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return EnvironmentArtifactPinRecord.class;
}
/**
* The column keel.environment_artifact_pin.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_pin.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_pin.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_pin.pinned_by
.
*/
public final TableField PINNED_BY = createField(DSL.name("pinned_by"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column keel.environment_artifact_pin.comment
.
*/
public final TableField COMMENT = createField(DSL.name("comment"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "");
/**
* The column keel.environment_artifact_pin.pinned_at
.
*/
public final TableField PINNED_AT = createField(DSL.name("pinned_at"), org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP(3)", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "", new LocalDateTimeToInstantConverter());
/**
* Create a keel.environment_artifact_pin
table reference
*/
public EnvironmentArtifactPin() {
this(DSL.name("environment_artifact_pin"), null);
}
/**
* Create an aliased keel.environment_artifact_pin
table reference
*/
public EnvironmentArtifactPin(String alias) {
this(DSL.name(alias), ENVIRONMENT_ARTIFACT_PIN);
}
/**
* Create an aliased keel.environment_artifact_pin
table reference
*/
public EnvironmentArtifactPin(Name alias) {
this(alias, ENVIRONMENT_ARTIFACT_PIN);
}
private EnvironmentArtifactPin(Name alias, Table aliased) {
this(alias, aliased, null);
}
private EnvironmentArtifactPin(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
public EnvironmentArtifactPin(Table child, ForeignKey key) {
super(child, key, ENVIRONMENT_ARTIFACT_PIN);
}
@Override
public Schema getSchema() {
return Keel.KEEL;
}
@Override
public UniqueKey getPrimaryKey() {
return Keys.KEY_ENVIRONMENT_ARTIFACT_PIN_PRIMARY;
}
@Override
public List> getKeys() {
return Arrays.>asList(Keys.KEY_ENVIRONMENT_ARTIFACT_PIN_PRIMARY);
}
@Override
public List> getReferences() {
return Arrays.>asList(Keys.FK_ENVIRONMENT_ARTIFACT_PIN_ENVIRONMENT, Keys.FK_ENVIRONMENT_ARTIFACT_PIN_DELIVERY_ARTIFACT);
}
public Environment environment() {
return new Environment(this, Keys.FK_ENVIRONMENT_ARTIFACT_PIN_ENVIRONMENT);
}
public DeliveryArtifact deliveryArtifact() {
return new DeliveryArtifact(this, Keys.FK_ENVIRONMENT_ARTIFACT_PIN_DELIVERY_ARTIFACT);
}
@Override
public EnvironmentArtifactPin as(String alias) {
return new EnvironmentArtifactPin(DSL.name(alias), this);
}
@Override
public EnvironmentArtifactPin as(Name alias) {
return new EnvironmentArtifactPin(alias, this);
}
/**
* Rename this table
*/
@Override
public EnvironmentArtifactPin rename(String name) {
return new EnvironmentArtifactPin(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public EnvironmentArtifactPin rename(Name name) {
return new EnvironmentArtifactPin(name, null);
}
// -------------------------------------------------------------------------
// Row6 type methods
// -------------------------------------------------------------------------
@Override
public Row6 fieldsRow() {
return (Row6) super.fieldsRow();
}
}