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

com.netflix.spinnaker.keel.persistence.metamodel.tables.EnvironmentResource 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.EnvironmentResourceRecord;

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.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 EnvironmentResource extends TableImpl {

    private static final long serialVersionUID = -1784974081;

    /**
     * The reference instance of keel.environment_resource
     */
    public static final EnvironmentResource ENVIRONMENT_RESOURCE = new EnvironmentResource();

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

    /**
     * The column keel.environment_resource.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_resource.environment_version.
     */
    public final TableField ENVIRONMENT_VERSION = createField(DSL.name("environment_version"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");

    /**
     * The column keel.environment_resource.resource_uid.
     */
    public final TableField RESOURCE_UID = createField(DSL.name("resource_uid"), org.jooq.impl.SQLDataType.CHAR(26).nullable(false), this, "");

    /**
     * The column keel.environment_resource.resource_version.
     */
    public final TableField RESOURCE_VERSION = createField(DSL.name("resource_version"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");

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

    /**
     * Create an aliased keel.environment_resource table reference
     */
    public EnvironmentResource(String alias) {
        this(DSL.name(alias), ENVIRONMENT_RESOURCE);
    }

    /**
     * Create an aliased keel.environment_resource table reference
     */
    public EnvironmentResource(Name alias) {
        this(alias, ENVIRONMENT_RESOURCE);
    }

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

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

    public  EnvironmentResource(Table child, ForeignKey key) {
        super(child, key, ENVIRONMENT_RESOURCE);
    }

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

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

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

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

    public EnvironmentVersion environmentVersion() {
        return new EnvironmentVersion(this, Keys.FK_ENVIRONMENT_RESOURCE_ENVIRONMENT_VERSION);
    }

    public ResourceVersion resourceVersion() {
        return new ResourceVersion(this, Keys.FK_ENVIRONMENT_RESOURCE_RESOURCE_VERSION);
    }

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

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy