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.Resource Maven / Gradle / Ivy
/*
* This file is generated by jOOQ.
*/
package com.netflix.spinnaker.keel.persistence.metamodel.tables;
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.ResourceRecord;
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 Resource extends TableImpl {
private static final long serialVersionUID = 765101622;
/**
* The reference instance of keel.resource
*/
public static final Resource RESOURCE = new Resource();
/**
* The class holding records for this type
*/
@Override
public Class getRecordType() {
return ResourceRecord.class;
}
/**
* The column keel.resource.uid
.
*/
public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.CHAR(26).nullable(false), this, "");
/**
* The column keel.resource.kind
.
*/
public final TableField KIND = createField(DSL.name("kind"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column keel.resource.id
.
*/
public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.VARCHAR(255), this, "");
/**
* The column keel.resource.application
.
*/
public final TableField APPLICATION = createField(DSL.name("application"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column keel.resource.attempted_deletions
.
*/
public final TableField ATTEMPTED_DELETIONS = createField(DSL.name("attempted_deletions"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "");
/**
* Create a keel.resource
table reference
*/
public Resource() {
this(DSL.name("resource"), null);
}
/**
* Create an aliased keel.resource
table reference
*/
public Resource(String alias) {
this(DSL.name(alias), RESOURCE);
}
/**
* Create an aliased keel.resource
table reference
*/
public Resource(Name alias) {
this(alias, RESOURCE);
}
private Resource(Name alias, Table aliased) {
this(alias, aliased, null);
}
private Resource(Name alias, Table aliased, Field>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
public Resource(Table child, ForeignKey key) {
super(child, key, RESOURCE);
}
@Override
public Schema getSchema() {
return Keel.KEEL;
}
@Override
public List getIndexes() {
return Arrays.asList(Indexes.RESOURCE_RESOURCE_APPLICATION_IDX);
}
@Override
public UniqueKey getPrimaryKey() {
return Keys.KEY_RESOURCE_PRIMARY;
}
@Override
public List> getKeys() {
return Arrays.>asList(Keys.KEY_RESOURCE_PRIMARY, Keys.KEY_RESOURCE_RESOURCE_ID_VERSION_IDX);
}
@Override
public Resource as(String alias) {
return new Resource(DSL.name(alias), this);
}
@Override
public Resource as(Name alias) {
return new Resource(alias, this);
}
/**
* Rename this table
*/
@Override
public Resource rename(String name) {
return new Resource(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public Resource rename(Name name) {
return new Resource(name, null);
}
// -------------------------------------------------------------------------
// Row5 type methods
// -------------------------------------------------------------------------
@Override
public Row5 fieldsRow() {
return (Row5) super.fieldsRow();
}
}