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

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

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 DiffFingerprint extends TableImpl {

    private static final long serialVersionUID = 1554625290;

    /**
     * The reference instance of keel.diff_fingerprint
     */
    public static final DiffFingerprint DIFF_FINGERPRINT = new DiffFingerprint();

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

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

    /**
     * The column keel.diff_fingerprint.count.
     */
    public final TableField COUNT = createField(DSL.name("count"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("1", org.jooq.impl.SQLDataType.INTEGER)), this, "");

    /**
     * The column keel.diff_fingerprint.count_actions_taken.
     */
    public final TableField COUNT_ACTIONS_TAKEN = createField(DSL.name("count_actions_taken"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "");

    /**
     * The column keel.diff_fingerprint.hash.
     */
    public final TableField HASH = createField(DSL.name("hash"), org.jooq.impl.SQLDataType.CHAR(40).nullable(false), this, "");

    /**
     * The column keel.diff_fingerprint.first_detection_time.
     */
    public final TableField FIRST_DETECTION_TIME = createField(DSL.name("first_detection_time"), 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.diff_fingerprint table reference
     */
    public DiffFingerprint() {
        this(DSL.name("diff_fingerprint"), null);
    }

    /**
     * Create an aliased keel.diff_fingerprint table reference
     */
    public DiffFingerprint(String alias) {
        this(DSL.name(alias), DIFF_FINGERPRINT);
    }

    /**
     * Create an aliased keel.diff_fingerprint table reference
     */
    public DiffFingerprint(Name alias) {
        this(alias, DIFF_FINGERPRINT);
    }

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

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

    public  DiffFingerprint(Table child, ForeignKey key) {
        super(child, key, DIFF_FINGERPRINT);
    }

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

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

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

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

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy