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

keywhiz.jooq.tables.Accessgrants Maven / Gradle / Ivy

The newest version!
/*
 * This file is generated by jOOQ.
 */
package keywhiz.jooq.tables;


import java.util.Arrays;
import java.util.List;

import javax.annotation.processing.Generated;

import keywhiz.jooq.Indexes;
import keywhiz.jooq.Keys;
import keywhiz.jooq.KeywhizdbTest;
import keywhiz.jooq.tables.records.AccessgrantsRecord;

import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Index;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row6;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.TableImpl;


/**
 * This class is generated by jOOQ.
 */
@Generated(
    value = {
        "http://www.jooq.org",
        "jOOQ version:3.12.0"
    },
    comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Accessgrants extends TableImpl {

    private static final long serialVersionUID = -2033974364;

    /**
     * The reference instance of keywhizdb_test.accessgrants
     */
    public static final Accessgrants ACCESSGRANTS = new Accessgrants();

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

    /**
     * The column keywhizdb_test.accessgrants.id.
     */
    public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).identity(true), this, "");

    /**
     * The column keywhizdb_test.accessgrants.groupid.
     */
    public final TableField GROUPID = createField(DSL.name("groupid"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");

    /**
     * The column keywhizdb_test.accessgrants.secretid.
     */
    public final TableField SECRETID = createField(DSL.name("secretid"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");

    /**
     * The column keywhizdb_test.accessgrants.updatedat.
     */
    public final TableField UPDATEDAT = createField(DSL.name("updatedat"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");

    /**
     * The column keywhizdb_test.accessgrants.createdat.
     */
    public final TableField CREATEDAT = createField(DSL.name("createdat"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, "");

    /**
     * The column keywhizdb_test.accessgrants.row_hmac.
     */
    public final TableField ROW_HMAC = createField(DSL.name("row_hmac"), org.jooq.impl.SQLDataType.VARCHAR(64).nullable(false).defaultValue(org.jooq.impl.DSL.inline("", org.jooq.impl.SQLDataType.VARCHAR)), this, "");

    /**
     * Create a keywhizdb_test.accessgrants table reference
     */
    public Accessgrants() {
        this(DSL.name("accessgrants"), null);
    }

    /**
     * Create an aliased keywhizdb_test.accessgrants table reference
     */
    public Accessgrants(String alias) {
        this(DSL.name(alias), ACCESSGRANTS);
    }

    /**
     * Create an aliased keywhizdb_test.accessgrants table reference
     */
    public Accessgrants(Name alias) {
        this(alias, ACCESSGRANTS);
    }

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

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

    public  Accessgrants(Table child, ForeignKey key) {
        super(child, key, ACCESSGRANTS);
    }

    @Override
    public Schema getSchema() {
        return KeywhizdbTest.KEYWHIZDB_TEST;
    }

    @Override
    public List getIndexes() {
        return Arrays.asList(Indexes.ACCESSGRANTS_ACCESSGRANTS_GROUPID_SECRETID_IDX, Indexes.ACCESSGRANTS_ACCESSGRANTS_SECRETID_IDX, Indexes.ACCESSGRANTS_PRIMARY);
    }

    @Override
    public Identity getIdentity() {
        return Keys.IDENTITY_ACCESSGRANTS;
    }

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

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

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

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

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

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

    // -------------------------------------------------------------------------
    // Row6 type methods
    // -------------------------------------------------------------------------

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy