All Downloads are FREE. Search and download functionalities are using the official Maven repository.
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.LifecycleMonitor Maven / Gradle / Ivy
/*
* 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.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.LifecycleMonitorRecord;
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.Row7;
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 LifecycleMonitor extends TableImpl {
private static final long serialVersionUID = -2083629638;
/**
* The reference instance of keel.lifecycle_monitor
*/
public static final LifecycleMonitor LIFECYCLE_MONITOR = new LifecycleMonitor();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return LifecycleMonitorRecord.class;
}
/**
* The column keel.lifecycle_monitor.uid
.
*/
public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.CHAR(26).nullable(false), this, "");
/**
* The column keel.lifecycle_monitor.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_monitor.link
.
*/
public final TableField LINK = createField(DSL.name("link"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column keel.lifecycle_monitor.last_checked
.
*/
public final TableField LAST_CHECKED = createField(DSL.name("last_checked"), 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_monitor.triggering_event_uid
.
*/
public final TableField TRIGGERING_EVENT_UID = createField(DSL.name("triggering_event_uid"), org.jooq.impl.SQLDataType.CHAR(26).nullable(false), this, "");
/**
* The column keel.lifecycle_monitor.ignore
.
*/
public final TableField IGNORE = createField(DSL.name("ignore"), org.jooq.impl.SQLDataType.BIT.nullable(false).defaultValue(org.jooq.impl.DSL.inline("b'0'", org.jooq.impl.SQLDataType.BIT)), this, "");
/**
* The column keel.lifecycle_monitor.num_failures
.
*/
public final TableField NUM_FAILURES = createField(DSL.name("num_failures"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "");
/**
* Create a keel.lifecycle_monitor
table reference
*/
public LifecycleMonitor() {
this(DSL.name("lifecycle_monitor"), null);
}
/**
* Create an aliased keel.lifecycle_monitor
table reference
*/
public LifecycleMonitor(String alias) {
this(DSL.name(alias), LIFECYCLE_MONITOR);
}
/**
* Create an aliased keel.lifecycle_monitor
table reference
*/
public LifecycleMonitor(Name alias) {
this(alias, LIFECYCLE_MONITOR);
}
private LifecycleMonitor(Name alias, Table aliased) {
this(alias, aliased, null);
}
private LifecycleMonitor(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
public LifecycleMonitor(Table child, ForeignKey key) {
super(child, key, LIFECYCLE_MONITOR);
}
@Override
public Schema getSchema() {
return Keel.KEEL;
}
@Override
public List getIndexes() {
return Arrays.asList(Indexes.LIFECYCLE_MONITOR_LIFECYCLE_MONITOR_TYPE_LAST_CHECKED_IDX);
}
@Override
public UniqueKey getPrimaryKey() {
return Keys.KEY_LIFECYCLE_MONITOR_PRIMARY;
}
@Override
public List> getKeys() {
return Arrays.>asList(Keys.KEY_LIFECYCLE_MONITOR_PRIMARY);
}
@Override
public List> getReferences() {
return Arrays.>asList(Keys.FK_TRIGGERING_EVENT_UID);
}
public LifecycleEvent lifecycleEvent() {
return new LifecycleEvent(this, Keys.FK_TRIGGERING_EVENT_UID);
}
@Override
public LifecycleMonitor as(String alias) {
return new LifecycleMonitor(DSL.name(alias), this);
}
@Override
public LifecycleMonitor as(Name alias) {
return new LifecycleMonitor(alias, this);
}
/**
* Rename this table
*/
@Override
public LifecycleMonitor rename(String name) {
return new LifecycleMonitor(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public LifecycleMonitor rename(Name name) {
return new LifecycleMonitor(name, null);
}
// -------------------------------------------------------------------------
// Row7 type methods
// -------------------------------------------------------------------------
@Override
public Row7 fieldsRow() {
return (Row7) super.fieldsRow();
}
}