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

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

/**
 * This class is generated by jOOQ
 */
package keywhiz.jooq.tables;


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

import javax.annotation.Generated;

import keywhiz.jooq.Keys;
import keywhiz.jooq.Public;
import keywhiz.jooq.tables.records.UsersRecord;
import keywhiz.model.TimestampConverter;

import org.jooq.Field;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.TableImpl;


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

	private static final long serialVersionUID = -1336650000;

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

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

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

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

	/**
	 * The column public.users.created_at.
	 */
	public final TableField CREATED_AT = createField("created_at", org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false), this, "", new TimestampConverter());

	/**
	 * The column public.users.updated_at.
	 */
	public final TableField UPDATED_AT = createField("updated_at", org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false), this, "", new TimestampConverter());

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

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

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

	private Users(String alias, Table aliased, Field[] parameters) {
		super(alias, Public.PUBLIC, aliased, parameters, "");
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public UniqueKey getPrimaryKey() {
		return Keys.USERS_PKEY;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public List> getKeys() {
		return Arrays.>asList(Keys.USERS_PKEY);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public Users as(String alias) {
		return new Users(alias, this);
	}

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy