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

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

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.Row6;
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 BakedImages extends TableImpl {

    private static final long serialVersionUID = 1123962200;

    /**
     * The reference instance of keel.baked_images
     */
    public static final BakedImages BAKED_IMAGES = new BakedImages();

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

    /**
     * The column keel.baked_images.package_version.
     */
    public final TableField PACKAGE_VERSION = createField(DSL.name("package_version"), org.jooq.impl.SQLDataType.VARCHAR(150).nullable(false), this, "");

    /**
     * The column keel.baked_images.cloud_provider.
     */
    public final TableField CLOUD_PROVIDER = createField(DSL.name("cloud_provider"), org.jooq.impl.SQLDataType.VARCHAR(50).nullable(false), this, "");

    /**
     * The column keel.baked_images.base_label.
     */
    public final TableField BASE_LABEL = createField(DSL.name("base_label"), org.jooq.impl.SQLDataType.VARCHAR(50).nullable(false), this, "");

    /**
     * The column keel.baked_images.base_os.
     */
    public final TableField BASE_OS = createField(DSL.name("base_os"), org.jooq.impl.SQLDataType.VARCHAR(50).nullable(false), this, "");

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

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

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

    /**
     * Create an aliased keel.baked_images table reference
     */
    public BakedImages(String alias) {
        this(DSL.name(alias), BAKED_IMAGES);
    }

    /**
     * Create an aliased keel.baked_images table reference
     */
    public BakedImages(Name alias) {
        this(alias, BAKED_IMAGES);
    }

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

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

    public  BakedImages(Table child, ForeignKey key) {
        super(child, key, BAKED_IMAGES);
    }

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

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

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

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

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

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

    // -------------------------------------------------------------------------
    // Row6 type methods
    // -------------------------------------------------------------------------

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy