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

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

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.Row3;
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 EnvironmentVersion extends TableImpl {

    private static final long serialVersionUID = -1612634345;

    /**
     * The reference instance of keel.environment_version
     */
    public static final EnvironmentVersion ENVIRONMENT_VERSION = new EnvironmentVersion();

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

    /**
     * The column keel.environment_version.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_version.version.
     */
    public final TableField VERSION = createField(DSL.name("version"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("1", org.jooq.impl.SQLDataType.INTEGER)), this, "");

    /**
     * The column keel.environment_version.created_at.
     */
    public final TableField CREATED_AT = createField(DSL.name("created_at"), org.jooq.impl.SQLDataType.LOCALDATETIME, this, "", new LocalDateTimeToInstantConverter());

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

    /**
     * Create an aliased keel.environment_version table reference
     */
    public EnvironmentVersion(String alias) {
        this(DSL.name(alias), ENVIRONMENT_VERSION);
    }

    /**
     * Create an aliased keel.environment_version table reference
     */
    public EnvironmentVersion(Name alias) {
        this(alias, ENVIRONMENT_VERSION);
    }

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

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

    public  EnvironmentVersion(Table child, ForeignKey key) {
        super(child, key, ENVIRONMENT_VERSION);
    }

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

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

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

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

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

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

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

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

    // -------------------------------------------------------------------------
    // Row3 type methods
    // -------------------------------------------------------------------------

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy