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

com.netflix.spinnaker.keel.persistence.metamodel.tables.WorkQueue 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.Indexes;
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.WorkQueueRecord;

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.Index;
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 WorkQueue extends TableImpl {

    private static final long serialVersionUID = 891077165;

    /**
     * The reference instance of keel.work_queue
     */
    public static final WorkQueue WORK_QUEUE = new WorkQueue();

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

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

    /**
     * The column keel.work_queue.type.
     */
    public final TableField TYPE = createField(DSL.name("type"), org.jooq.impl.SQLDataType.CHAR(50).nullable(false), this, "");

    /**
     * The column keel.work_queue.first_seen.
     */
    public final TableField FIRST_SEEN = createField(DSL.name("first_seen"), org.jooq.impl.SQLDataType.LOCALDATETIME.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP(3)", org.jooq.impl.SQLDataType.LOCALDATETIME)), this, "", new LocalDateTimeToInstantConverter());

    /**
     * The column keel.work_queue.json.
     */
    public final TableField JSON = createField(DSL.name("json"), org.jooq.impl.SQLDataType.LONGVARCHAR.nullable(false), this, "");

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

    /**
     * Create an aliased keel.work_queue table reference
     */
    public WorkQueue(String alias) {
        this(DSL.name(alias), WORK_QUEUE);
    }

    /**
     * Create an aliased keel.work_queue table reference
     */
    public WorkQueue(Name alias) {
        this(alias, WORK_QUEUE);
    }

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

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

    public  WorkQueue(Table child, ForeignKey key) {
        super(child, key, WORK_QUEUE);
    }

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

    @Override
    public List getIndexes() {
        return Arrays.asList(Indexes.WORK_QUEUE_WORK_QUEUE_FIRST_SEEN_TYPE_IDX);
    }

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

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

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

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy