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.ArtifactVersions Maven / Gradle / Ivy
/*
* This file is generated by jOOQ.
*/
package com.netflix.spinnaker.keel.persistence.metamodel.tables;
import com.netflix.spinnaker.jooq.BuildMetadataConverter;
import com.netflix.spinnaker.jooq.GitMetadataConverter;
import com.netflix.spinnaker.jooq.LocalDateTimeToInstantConverter;
import com.netflix.spinnaker.keel.api.artifacts.ArtifactStatus;
import com.netflix.spinnaker.keel.api.artifacts.BuildMetadata;
import com.netflix.spinnaker.keel.api.artifacts.GitMetadata;
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.ArtifactVersionsRecord;
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.Row8;
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 ArtifactVersions extends TableImpl {
private static final long serialVersionUID = 178873952;
/**
* The reference instance of keel.artifact_versions
*/
public static final ArtifactVersions ARTIFACT_VERSIONS = new ArtifactVersions();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return ArtifactVersionsRecord.class;
}
/**
* The column keel.artifact_versions.name
.
*/
public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column keel.artifact_versions.type
.
*/
public final TableField TYPE = createField(DSL.name("type"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column keel.artifact_versions.version
.
*/
public final TableField VERSION = createField(DSL.name("version"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column keel.artifact_versions.release_status
.
*/
public final TableField RELEASE_STATUS = createField(DSL.name("release_status"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "", new org.jooq.impl.EnumConverter(java.lang.String.class, com.netflix.spinnaker.keel.api.artifacts.ArtifactStatus.class));
/**
* The column keel.artifact_versions.created_at
.
*/
public final TableField CREATED_AT = createField(DSL.name("created_at"), org.jooq.impl.SQLDataType.LOCALDATETIME, this, "", new LocalDateTimeToInstantConverter());
/**
* The column keel.artifact_versions.build_metadata
.
*/
public final TableField BUILD_METADATA = createField(DSL.name("build_metadata"), org.jooq.impl.SQLDataType.JSON, this, "", new BuildMetadataConverter());
/**
* The column keel.artifact_versions.git_metadata
.
*/
public final TableField GIT_METADATA = createField(DSL.name("git_metadata"), org.jooq.impl.SQLDataType.JSON, this, "", new GitMetadataConverter());
/**
* The column keel.artifact_versions.original_metadata
.
*/
public final TableField ORIGINAL_METADATA = createField(DSL.name("original_metadata"), org.jooq.impl.SQLDataType.LONGVARCHAR, this, "");
/**
* Create a keel.artifact_versions
table reference
*/
public ArtifactVersions() {
this(DSL.name("artifact_versions"), null);
}
/**
* Create an aliased keel.artifact_versions
table reference
*/
public ArtifactVersions(String alias) {
this(DSL.name(alias), ARTIFACT_VERSIONS);
}
/**
* Create an aliased keel.artifact_versions
table reference
*/
public ArtifactVersions(Name alias) {
this(alias, ARTIFACT_VERSIONS);
}
private ArtifactVersions(Name alias, Table aliased) {
this(alias, aliased, null);
}
private ArtifactVersions(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
public ArtifactVersions(Table child, ForeignKey key) {
super(child, key, ARTIFACT_VERSIONS);
}
@Override
public Schema getSchema() {
return Keel.KEEL;
}
@Override
public List getIndexes() {
return Arrays.asList(Indexes.ARTIFACT_VERSIONS_ARTIFACT_VERSIONS_NAME_TYPE_VERSION_RELEASE_STATUS_IDX);
}
@Override
public UniqueKey getPrimaryKey() {
return Keys.KEY_ARTIFACT_VERSIONS_PRIMARY;
}
@Override
public List> getKeys() {
return Arrays.>asList(Keys.KEY_ARTIFACT_VERSIONS_PRIMARY);
}
@Override
public ArtifactVersions as(String alias) {
return new ArtifactVersions(DSL.name(alias), this);
}
@Override
public ArtifactVersions as(Name alias) {
return new ArtifactVersions(alias, this);
}
/**
* Rename this table
*/
@Override
public ArtifactVersions rename(String name) {
return new ArtifactVersions(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public ArtifactVersions rename(Name name) {
return new ArtifactVersions(name, null);
}
// -------------------------------------------------------------------------
// Row8 type methods
// -------------------------------------------------------------------------
@Override
public Row8 fieldsRow() {
return (Row8) super.fieldsRow();
}
}