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

com.netflix.spinnaker.keel.persistence.metamodel.tables.DeliveryConfigArtifact 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.keel.persistence.metamodel.Keel;
import com.netflix.spinnaker.keel.persistence.metamodel.Keys;
import com.netflix.spinnaker.keel.persistence.metamodel.tables.records.DeliveryConfigArtifactRecord;

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.Row2;
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 DeliveryConfigArtifact extends TableImpl {

    private static final long serialVersionUID = -2025926038;

    /**
     * The reference instance of keel.delivery_config_artifact
     */
    public static final DeliveryConfigArtifact DELIVERY_CONFIG_ARTIFACT = new DeliveryConfigArtifact();

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

    /**
     * The column keel.delivery_config_artifact.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.delivery_config_artifact.artifact_uid.
     */
    public final TableField ARTIFACT_UID = createField(DSL.name("artifact_uid"), org.jooq.impl.SQLDataType.CHAR(26).nullable(false), this, "");

    /**
     * Create a keel.delivery_config_artifact table reference
     */
    public DeliveryConfigArtifact() {
        this(DSL.name("delivery_config_artifact"), null);
    }

    /**
     * Create an aliased keel.delivery_config_artifact table reference
     */
    public DeliveryConfigArtifact(String alias) {
        this(DSL.name(alias), DELIVERY_CONFIG_ARTIFACT);
    }

    /**
     * Create an aliased keel.delivery_config_artifact table reference
     */
    public DeliveryConfigArtifact(Name alias) {
        this(alias, DELIVERY_CONFIG_ARTIFACT);
    }

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

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

    public  DeliveryConfigArtifact(Table child, ForeignKey key) {
        super(child, key, DELIVERY_CONFIG_ARTIFACT);
    }

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

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

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

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

    public DeliveryConfig deliveryConfig() {
        return new DeliveryConfig(this, Keys.FK_DELIVERY_CONFIG_ARTIFACT_DELIVERY_CONFIG);
    }

    public DeliveryArtifact deliveryArtifact() {
        return new DeliveryArtifact(this, Keys.FK_DELIVERY_CONFIG_ARTIFACT_DELIVERY_ARTIFACT);
    }

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

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

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

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

    // -------------------------------------------------------------------------
    // Row2 type methods
    // -------------------------------------------------------------------------

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy