All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netflix.spinnaker.keel.persistence.metamodel.tables.EnvironmentArtifactQueuedApproval Maven / Gradle / Ivy

There is a newer version: 1.4.1
Show newest version
/*
 * 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.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.EnvironmentArtifactQueuedApprovalRecord;

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.Row4;
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 EnvironmentArtifactQueuedApproval extends TableImpl {

    private static final long serialVersionUID = 969509096;

    /**
     * The reference instance of keel.environment_artifact_queued_approval
     */
    public static final EnvironmentArtifactQueuedApproval ENVIRONMENT_ARTIFACT_QUEUED_APPROVAL = new EnvironmentArtifactQueuedApproval();

    /**
     * The class holding records for this type
     */
    @Override
    public Class getRecordType() {
        return EnvironmentArtifactQueuedApprovalRecord.class;
    }

    /**
     * The column keel.environment_artifact_queued_approval.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_queued_approval.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_queued_approval.artifact_reference.
     */
    public final TableField ARTIFACT_REFERENCE = createField(DSL.name("artifact_reference"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "");

    /**
     * The column keel.environment_artifact_queued_approval.queued_at.
     */
    public final TableField QUEUED_AT = createField(DSL.name("queued_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_queued_approval table reference
     */
    public EnvironmentArtifactQueuedApproval() {
        this(DSL.name("environment_artifact_queued_approval"), null);
    }

    /**
     * Create an aliased keel.environment_artifact_queued_approval table reference
     */
    public EnvironmentArtifactQueuedApproval(String alias) {
        this(DSL.name(alias), ENVIRONMENT_ARTIFACT_QUEUED_APPROVAL);
    }

    /**
     * Create an aliased keel.environment_artifact_queued_approval table reference
     */
    public EnvironmentArtifactQueuedApproval(Name alias) {
        this(alias, ENVIRONMENT_ARTIFACT_QUEUED_APPROVAL);
    }

    private EnvironmentArtifactQueuedApproval(Name alias, Table aliased) {
        this(alias, aliased, null);
    }

    private EnvironmentArtifactQueuedApproval(Name alias, Table aliased, Field[] parameters) {
        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
    }

    public  EnvironmentArtifactQueuedApproval(Table child, ForeignKey key) {
        super(child, key, ENVIRONMENT_ARTIFACT_QUEUED_APPROVAL);
    }

    @Override
    public Schema getSchema() {
        return Keel.KEEL;
    }

    @Override
    public List getIndexes() {
        return Arrays.asList(Indexes.ENVIRONMENT_ARTIFACT_QUEUED_APPROVAL_ENV_ARTIFACT_REFERENCE_IDX);
    }

    @Override
    public UniqueKey getPrimaryKey() {
        return Keys.KEY_ENVIRONMENT_ARTIFACT_QUEUED_APPROVAL_PRIMARY;
    }

    @Override
    public List> getKeys() {
        return Arrays.>asList(Keys.KEY_ENVIRONMENT_ARTIFACT_QUEUED_APPROVAL_PRIMARY);
    }

    @Override
    public List> getReferences() {
        return Arrays.>asList(Keys.FK_ENVIRONMENT_ARTIFACT_QUEUED_APPROVAL_ENVIRONMENT);
    }

    public Environment environment() {
        return new Environment(this, Keys.FK_ENVIRONMENT_ARTIFACT_QUEUED_APPROVAL_ENVIRONMENT);
    }

    @Override
    public EnvironmentArtifactQueuedApproval as(String alias) {
        return new EnvironmentArtifactQueuedApproval(DSL.name(alias), this);
    }

    @Override
    public EnvironmentArtifactQueuedApproval as(Name alias) {
        return new EnvironmentArtifactQueuedApproval(alias, this);
    }

    /**
     * Rename this table
     */
    @Override
    public EnvironmentArtifactQueuedApproval rename(String name) {
        return new EnvironmentArtifactQueuedApproval(DSL.name(name), null);
    }

    /**
     * Rename this table
     */
    @Override
    public EnvironmentArtifactQueuedApproval rename(Name name) {
        return new EnvironmentArtifactQueuedApproval(name, null);
    }

    // -------------------------------------------------------------------------
    // Row4 type methods
    // -------------------------------------------------------------------------

    @Override
    public Row4 fieldsRow() {
        return (Row4) super.fieldsRow();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy