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

com.netflix.spinnaker.keel.persistence.metamodel.tables.Paused 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.pause.PauseScope;
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.PausedRecord;

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.Row5;
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 Paused extends TableImpl {

    private static final long serialVersionUID = 286461849;

    /**
     * The reference instance of keel.paused
     */
    public static final Paused PAUSED = new Paused();

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

    /**
     * The column keel.paused.scope.
     */
    public final TableField SCOPE = createField(DSL.name("scope"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "", new org.jooq.impl.EnumConverter(java.lang.String.class, com.netflix.spinnaker.keel.pause.PauseScope.class));

    /**
     * The column keel.paused.name.
     */
    public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "");

    /**
     * The column keel.paused.paused_by.
     */
    public final TableField PAUSED_BY = createField(DSL.name("paused_by"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "");

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

    /**
     * The column keel.paused.comment.
     */
    public final TableField COMMENT = createField(DSL.name("comment"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "");

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

    /**
     * Create an aliased keel.paused table reference
     */
    public Paused(String alias) {
        this(DSL.name(alias), PAUSED);
    }

    /**
     * Create an aliased keel.paused table reference
     */
    public Paused(Name alias) {
        this(alias, PAUSED);
    }

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

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

    public  Paused(Table child, ForeignKey key) {
        super(child, key, PAUSED);
    }

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

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

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

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

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

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

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

    // -------------------------------------------------------------------------
    // Row5 type methods
    // -------------------------------------------------------------------------

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy