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

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

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

    private static final long serialVersionUID = -1623105687;

    /**
     * The reference instance of keel.task_tracking
     */
    public static final TaskTracking TASK_TRACKING = new TaskTracking();

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

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

    /**
     * The column keel.task_tracking.task_name.
     */
    public final TableField TASK_NAME = createField(DSL.name("task_name"), org.jooq.impl.SQLDataType.CLOB.nullable(false), this, "");

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

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

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

    /**
     * Create an aliased keel.task_tracking table reference
     */
    public TaskTracking(String alias) {
        this(DSL.name(alias), TASK_TRACKING);
    }

    /**
     * Create an aliased keel.task_tracking table reference
     */
    public TaskTracking(Name alias) {
        this(alias, TASK_TRACKING);
    }

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

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

    public  TaskTracking(Table child, ForeignKey key) {
        super(child, key, TASK_TRACKING);
    }

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

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

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

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

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy