Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.netflix.spinnaker.keel.persistence.metamodel.tables.LifecycleEvent Maven / Gradle / Ivy
/*
* This file is generated by jOOQ.
*/
package com.netflix.spinnaker.keel.persistence.metamodel.tables;
import com.netflix.spinnaker.jooq.LifecycleEventConverter;
import com.netflix.spinnaker.jooq.LocalDateTimeToInstantConverter;
import com.netflix.spinnaker.keel.lifecycle.LifecycleEventStatus;
import com.netflix.spinnaker.keel.lifecycle.LifecycleEventType;
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.LifecycleEventRecord;
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.Row10;
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 LifecycleEvent extends TableImpl {
private static final long serialVersionUID = -1407888714;
/**
* The reference instance of keel.lifecycle_event
*/
public static final LifecycleEvent LIFECYCLE_EVENT = new LifecycleEvent();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return LifecycleEventRecord.class;
}
/**
* The column keel.lifecycle_event.uid
.
*/
public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.CHAR(26).nullable(false), this, "");
/**
* The column keel.lifecycle_event.scope
.
*/
public final TableField SCOPE = createField(DSL.name("scope"), org.jooq.impl.SQLDataType.VARCHAR(50).nullable(false), this, "");
/**
* The column keel.lifecycle_event.delivery_config_name
.
*/
public final TableField DELIVERY_CONFIG_NAME = createField(DSL.name("delivery_config_name"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column keel.lifecycle_event.artifact_reference
.
*/
public final TableField ARTIFACT_REFERENCE = createField(DSL.name("artifact_reference"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column keel.lifecycle_event.artifact_version
.
*/
public final TableField ARTIFACT_VERSION = createField(DSL.name("artifact_version"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column keel.lifecycle_event.type
.
*/
public final TableField TYPE = createField(DSL.name("type"), org.jooq.impl.SQLDataType.VARCHAR(50).nullable(false), this, "", new org.jooq.impl.EnumConverter(java.lang.String.class, com.netflix.spinnaker.keel.lifecycle.LifecycleEventType.class));
/**
* The column keel.lifecycle_event.id
.
*/
public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.VARCHAR(100).nullable(false), this, "");
/**
* The column keel.lifecycle_event.status
.
*/
public final TableField STATUS = createField(DSL.name("status"), org.jooq.impl.SQLDataType.VARCHAR(50).nullable(false), this, "", new org.jooq.impl.EnumConverter(java.lang.String.class, com.netflix.spinnaker.keel.lifecycle.LifecycleEventStatus.class));
/**
* The column keel.lifecycle_event.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());
/**
* The column keel.lifecycle_event.json
.
*/
public final TableField JSON = createField(DSL.name("json"), org.jooq.impl.SQLDataType.JSON, this, "", new LifecycleEventConverter());
/**
* Create a keel.lifecycle_event
table reference
*/
public LifecycleEvent() {
this(DSL.name("lifecycle_event"), null);
}
/**
* Create an aliased keel.lifecycle_event
table reference
*/
public LifecycleEvent(String alias) {
this(DSL.name(alias), LIFECYCLE_EVENT);
}
/**
* Create an aliased keel.lifecycle_event
table reference
*/
public LifecycleEvent(Name alias) {
this(alias, LIFECYCLE_EVENT);
}
private LifecycleEvent(Name alias, Table aliased) {
this(alias, aliased, null);
}
private LifecycleEvent(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
public LifecycleEvent(Table child, ForeignKey key) {
super(child, key, LIFECYCLE_EVENT);
}
@Override
public Schema getSchema() {
return Keel.KEEL;
}
@Override
public List getIndexes() {
return Arrays.asList(Indexes.LIFECYCLE_EVENT_LIFECYCLE_REF_VERSION_IDX);
}
@Override
public UniqueKey getPrimaryKey() {
return Keys.KEY_LIFECYCLE_EVENT_PRIMARY;
}
@Override
public List> getKeys() {
return Arrays.>asList(Keys.KEY_LIFECYCLE_EVENT_PRIMARY);
}
@Override
public LifecycleEvent as(String alias) {
return new LifecycleEvent(DSL.name(alias), this);
}
@Override
public LifecycleEvent as(Name alias) {
return new LifecycleEvent(alias, this);
}
/**
* Rename this table
*/
@Override
public LifecycleEvent rename(String name) {
return new LifecycleEvent(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public LifecycleEvent rename(Name name) {
return new LifecycleEvent(name, null);
}
// -------------------------------------------------------------------------
// Row10 type methods
// -------------------------------------------------------------------------
@Override
public Row10 fieldsRow() {
return (Row10) super.fieldsRow();
}
}