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

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

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 ActiveEnvironmentVersion extends TableImpl {

    private static final long serialVersionUID = 747936000;

    /**
     * The reference instance of keel.active_environment_version
     */
    public static final ActiveEnvironmentVersion ACTIVE_ENVIRONMENT_VERSION = new ActiveEnvironmentVersion();

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

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

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

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

    /**
     * Create an aliased keel.active_environment_version table reference
     */
    public ActiveEnvironmentVersion(String alias) {
        this(DSL.name(alias), ACTIVE_ENVIRONMENT_VERSION);
    }

    /**
     * Create an aliased keel.active_environment_version table reference
     */
    public ActiveEnvironmentVersion(Name alias) {
        this(alias, ACTIVE_ENVIRONMENT_VERSION);
    }

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

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

    public  ActiveEnvironmentVersion(Table child, ForeignKey key) {
        super(child, key, ACTIVE_ENVIRONMENT_VERSION);
    }

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

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

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

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

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy