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.EnvironmentLease 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.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.EnvironmentLeaseRecord;
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.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 EnvironmentLease extends TableImpl {
private static final long serialVersionUID = 96217782;
/**
* The reference instance of keel.environment_lease
*/
public static final EnvironmentLease ENVIRONMENT_LEASE = new EnvironmentLease();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return EnvironmentLeaseRecord.class;
}
/**
* The column keel.environment_lease.uid
.
*/
public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.CHAR(26).nullable(false), this, "");
/**
* The column keel.environment_lease.environment_uid
.
*/
public final TableField ENVIRONMENT_UID = createField(DSL.name("environment_uid"), org.jooq.impl.SQLDataType.CHAR(26).nullable(false), this, "");
/**
* The column keel.environment_lease.leased_by
.
*/
public final TableField LEASED_BY = createField(DSL.name("leased_by"), org.jooq.impl.SQLDataType.VARCHAR(63).nullable(false), this, "");
/**
* The column keel.environment_lease.leased_at
.
*/
public final TableField LEASED_AT = createField(DSL.name("leased_at"), 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.environment_lease.comment
.
*/
public final TableField COMMENT = createField(DSL.name("comment"), org.jooq.impl.SQLDataType.VARCHAR(511).nullable(false), this, "");
/**
* Create a keel.environment_lease
table reference
*/
public EnvironmentLease() {
this(DSL.name("environment_lease"), null);
}
/**
* Create an aliased keel.environment_lease
table reference
*/
public EnvironmentLease(String alias) {
this(DSL.name(alias), ENVIRONMENT_LEASE);
}
/**
* Create an aliased keel.environment_lease
table reference
*/
public EnvironmentLease(Name alias) {
this(alias, ENVIRONMENT_LEASE);
}
private EnvironmentLease(Name alias, Table aliased) {
this(alias, aliased, null);
}
private EnvironmentLease(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
public EnvironmentLease(Table child, ForeignKey key) {
super(child, key, ENVIRONMENT_LEASE);
}
@Override
public Schema getSchema() {
return Keel.KEEL;
}
@Override
public List getIndexes() {
return Arrays.asList(Indexes.ENVIRONMENT_LEASE_ENVIRONMENT_LEASE_ENVIRONMENT_UID_IDX);
}
@Override
public UniqueKey getPrimaryKey() {
return Keys.KEY_ENVIRONMENT_LEASE_PRIMARY;
}
@Override
public List> getKeys() {
return Arrays.>asList(Keys.KEY_ENVIRONMENT_LEASE_PRIMARY);
}
@Override
public List> getReferences() {
return Arrays.>asList(Keys.FK_ENVIRONMENT_LEASE_ENVIRONMENT_UID);
}
public Environment environment() {
return new Environment(this, Keys.FK_ENVIRONMENT_LEASE_ENVIRONMENT_UID);
}
@Override
public EnvironmentLease as(String alias) {
return new EnvironmentLease(DSL.name(alias), this);
}
@Override
public EnvironmentLease as(Name alias) {
return new EnvironmentLease(alias, this);
}
/**
* Rename this table
*/
@Override
public EnvironmentLease rename(String name) {
return new EnvironmentLease(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public EnvironmentLease rename(Name name) {
return new EnvironmentLease(name, null);
}
// -------------------------------------------------------------------------
// Row5 type methods
// -------------------------------------------------------------------------
@Override
public Row5 fieldsRow() {
return (Row5) super.fieldsRow();
}
}