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

keywhiz.jooq.tables.records.UsersRecord Maven / Gradle / Ivy

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


import javax.annotation.Generated;

import keywhiz.jooq.tables.Users;

import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record4;
import org.jooq.Row4;
import org.jooq.impl.UpdatableRecordImpl;


/**
 * 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 UsersRecord extends UpdatableRecordImpl implements Record4 {

	private static final long serialVersionUID = 1247694191;

	/**
	 * Setter for public.users.username.
	 */
	public void setUsername(String value) {
		setValue(0, value);
	}

	/**
	 * Getter for public.users.username.
	 */
	public String getUsername() {
		return (String) getValue(0);
	}

	/**
	 * Setter for public.users.password_hash.
	 */
	public void setPasswordHash(String value) {
		setValue(1, value);
	}

	/**
	 * Getter for public.users.password_hash.
	 */
	public String getPasswordHash() {
		return (String) getValue(1);
	}

	/**
	 * Setter for public.users.created_at.
	 */
	public void setCreatedAt(Long value) {
		setValue(2, value);
	}

	/**
	 * Getter for public.users.created_at.
	 */
	public Long getCreatedAt() {
		return (Long) getValue(2);
	}

	/**
	 * Setter for public.users.updated_at.
	 */
	public void setUpdatedAt(Long value) {
		setValue(3, value);
	}

	/**
	 * Getter for public.users.updated_at.
	 */
	public Long getUpdatedAt() {
		return (Long) getValue(3);
	}

	// -------------------------------------------------------------------------
	// Primary key information
	// -------------------------------------------------------------------------

	/**
	 * {@inheritDoc}
	 */
	@Override
	public Record1 key() {
		return (Record1) super.key();
	}

	// -------------------------------------------------------------------------
	// Record4 type implementation
	// -------------------------------------------------------------------------

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

	/**
	 * {@inheritDoc}
	 */
	@Override
	public Row4 valuesRow() {
		return (Row4) super.valuesRow();
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public Field field1() {
		return Users.USERS.USERNAME;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public Field field2() {
		return Users.USERS.PASSWORD_HASH;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public Field field3() {
		return Users.USERS.CREATED_AT;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public Field field4() {
		return Users.USERS.UPDATED_AT;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public String value1() {
		return getUsername();
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public String value2() {
		return getPasswordHash();
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public Long value3() {
		return getCreatedAt();
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public Long value4() {
		return getUpdatedAt();
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public UsersRecord value1(String value) {
		setUsername(value);
		return this;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public UsersRecord value2(String value) {
		setPasswordHash(value);
		return this;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public UsersRecord value3(Long value) {
		setCreatedAt(value);
		return this;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public UsersRecord value4(Long value) {
		setUpdatedAt(value);
		return this;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public UsersRecord values(String value1, String value2, Long value3, Long value4) {
		value1(value1);
		value2(value2);
		value3(value3);
		value4(value4);
		return this;
	}

	// -------------------------------------------------------------------------
	// Constructors
	// -------------------------------------------------------------------------

	/**
	 * Create a detached UsersRecord
	 */
	public UsersRecord() {
		super(Users.USERS);
	}

	/**
	 * Create a detached, initialised UsersRecord
	 */
	public UsersRecord(String username, String passwordHash, Long createdAt, Long updatedAt) {
		super(Users.USERS);

		setValue(0, username);
		setValue(1, passwordHash);
		setValue(2, createdAt);
		setValue(3, updatedAt);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy