/*
 * This file is generated by jOOQ.
 */
package ervu_dashboard.ervu_dashboard.db_beans.security.tables.records;


import ervu_dashboard.ervu_dashboard.db_beans.security.tables.EsiaUser;

import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class EsiaUserRecord extends UpdatableRecordImpl<EsiaUserRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>security.esia_user.esia_user_id</code>.
     */
    public void setEsiaUserId(String value) {
        set(0, value);
    }

    /**
     * Getter for <code>security.esia_user.esia_user_id</code>.
     */
    public String getEsiaUserId() {
        return (String) get(0);
    }

    /**
     * Setter for <code>security.esia_user.user_account_id</code>.
     */
    public void setUserAccountId(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>security.esia_user.user_account_id</code>.
     */
    public String getUserAccountId() {
        return (String) get(1);
    }

    /**
     * Setter for <code>security.esia_user.person_contact_id</code>.
     */
    public void setPersonContactId(Long value) {
        set(2, value);
    }

    /**
     * Getter for <code>security.esia_user.person_contact_id</code>.
     */
    public Long getPersonContactId() {
        return (Long) get(2);
    }

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

    @Override
    public Record1<String> key() {
        return (Record1) super.key();
    }

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

    /**
     * Create a detached EsiaUserRecord
     */
    public EsiaUserRecord() {
        super(EsiaUser.ESIA_USER);
    }

    /**
     * Create a detached, initialised EsiaUserRecord
     */
    public EsiaUserRecord(String esiaUserId, String userAccountId, Long personContactId) {
        super(EsiaUser.ESIA_USER);

        setEsiaUserId(esiaUserId);
        setUserAccountId(userAccountId);
        setPersonContactId(personContactId);
        resetChangedOnNotNull();
    }
}
