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

keywhiz.jooq.tables.Users 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.UsersRecord;

import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Index;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row4;
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 Users extends TableImpl {

    private static final long serialVersionUID = -318220176;

    /**
     * The reference instance of keywhizdb_test.users
     */
    public static final Users USERS = new Users();

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

    /**
     * The column keywhizdb_test.users.username.
     */
    public final TableField USERNAME = createField(DSL.name("username"), org.jooq.impl.SQLDataType.VARCHAR(255).nullable(false), this, "");

    /**
     * The column keywhizdb_test.users.password_hash.
     */
    public final TableField PASSWORD_HASH = createField(DSL.name("password_hash"), org.jooq.impl.SQLDataType.VARCHAR(128).nullable(false), this, "");

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

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

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

    /**
     * Create an aliased keywhizdb_test.users table reference
     */
    public Users(String alias) {
        this(DSL.name(alias), USERS);
    }

    /**
     * Create an aliased keywhizdb_test.users table reference
     */
    public Users(Name alias) {
        this(alias, USERS);
    }

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

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

    public  Users(Table child, ForeignKey key) {
        super(child, key, USERS);
    }

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

    @Override
    public List getIndexes() {
        return Arrays.asList(Indexes.USERS_PRIMARY);
    }

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

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

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

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

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

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

    // -------------------------------------------------------------------------
    // Row4 type methods
    // -------------------------------------------------------------------------

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy