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

ca.ibodrov.mica.db.jooq.tables.MicaEntities Maven / Gradle / Ivy

There is a newer version: 0.0.26
Show newest version
/*
 * This file is generated by jOOQ.
 */
package ca.ibodrov.mica.db.jooq.tables;


import ca.ibodrov.mica.db.jooq.Keys;
import ca.ibodrov.mica.db.jooq.Public;
import ca.ibodrov.mica.db.jooq.tables.records.MicaEntitiesRecord;

import java.time.Instant;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;

import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.JSONB;
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.SQLDataType;
import org.jooq.impl.TableImpl;


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class MicaEntities extends TableImpl {

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of public.mica_entities
     */
    public static final MicaEntities MICA_ENTITIES = new MicaEntities();

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

    /**
     * The column public.mica_entities.id.
     */
    public final TableField ID = createField(DSL.name("id"), SQLDataType.UUID.nullable(false), this, "");

    /**
     * The column public.mica_entities.name.
     */
    public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, "");

    /**
     * The column public.mica_entities.kind.
     */
    public final TableField KIND = createField(DSL.name("kind"), SQLDataType.CLOB.nullable(false), this, "");

    /**
     * The column public.mica_entities.created_at.
     */
    public final TableField CREATED_AT = createField(DSL.name("created_at"), SQLDataType.INSTANT.nullable(false).defaultValue(DSL.field("now()", SQLDataType.INSTANT)), this, "");

    /**
     * The column public.mica_entities.updated_at.
     */
    public final TableField UPDATED_AT = createField(DSL.name("updated_at"), SQLDataType.INSTANT.nullable(false).defaultValue(DSL.field("now()", SQLDataType.INSTANT)), this, "");

    /**
     * The column public.mica_entities.data.
     */
    public final TableField DATA = createField(DSL.name("data"), SQLDataType.JSONB.nullable(false), this, "");

    /**
     * The column public.mica_entities.doc.
     */
    public final TableField DOC = createField(DSL.name("doc"), SQLDataType.BLOB, this, "");

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

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

    /**
     * Create an aliased public.mica_entities table reference
     */
    public MicaEntities(String alias) {
        this(DSL.name(alias), MICA_ENTITIES);
    }

    /**
     * Create an aliased public.mica_entities table reference
     */
    public MicaEntities(Name alias) {
        this(alias, MICA_ENTITIES);
    }

    /**
     * Create a public.mica_entities table reference
     */
    public MicaEntities() {
        this(DSL.name("mica_entities"), null);
    }

    public  MicaEntities(Table child, ForeignKey key) {
        super(child, key, MICA_ENTITIES);
    }

    @Override
    public Schema getSchema() {
        return Public.PUBLIC;
    }

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

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

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

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

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

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

    // -------------------------------------------------------------------------
    // Row7 type methods
    // -------------------------------------------------------------------------

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy