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

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

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

    private static final long serialVersionUID = 819596090;

    /**
     * The reference instance of keel.unhappy_veto
     */
    public static final UnhappyVeto UNHAPPY_VETO = new UnhappyVeto();

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

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

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

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

    /**
     * Create an aliased keel.unhappy_veto table reference
     */
    public UnhappyVeto(String alias) {
        this(DSL.name(alias), UNHAPPY_VETO);
    }

    /**
     * Create an aliased keel.unhappy_veto table reference
     */
    public UnhappyVeto(Name alias) {
        this(alias, UNHAPPY_VETO);
    }

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

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

    public  UnhappyVeto(Table child, ForeignKey key) {
        super(child, key, UNHAPPY_VETO);
    }

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

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

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

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

    public Resource resource() {
        return new Resource(this, Keys.FK_UNHAPPY_VETO_RESOURCE);
    }

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

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy