/*
 * This file is generated by jOOQ.
 */
package ru.micord.ervu.account_applications.db_beans.public_.tables.records;


import java.sql.Timestamp;

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

import ru.micord.ervu.account_applications.db_beans.public_.tables.LinkUserApplicationUserApplicationRole;


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>public.link_user_application_user_application_role.link_user_application_user_role_id</code>.
     */
    public void setLinkUserApplicationUserRoleId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>public.link_user_application_user_application_role.link_user_application_user_role_id</code>.
     */
    public Long getLinkUserApplicationUserRoleId() {
        return (Long) get(0);
    }

    /**
     * Setter for
     * <code>public.link_user_application_user_application_role.user_application_list_id</code>.
     */
    public void setUserApplicationListId(Long value) {
        set(1, value);
    }

    /**
     * Getter for
     * <code>public.link_user_application_user_application_role.user_application_list_id</code>.
     */
    public Long getUserApplicationListId() {
        return (Long) get(1);
    }

    /**
     * Setter for
     * <code>public.link_user_application_user_application_role.user_role_id</code>.
     */
    public void setUserRoleId(String value) {
        set(2, value);
    }

    /**
     * Getter for
     * <code>public.link_user_application_user_application_role.user_role_id</code>.
     */
    public String getUserRoleId() {
        return (String) get(2);
    }

    /**
     * Setter for
     * <code>public.link_user_application_user_application_role.created</code>.
     */
    public void setCreated(Timestamp value) {
        set(3, value);
    }

    /**
     * Getter for
     * <code>public.link_user_application_user_application_role.created</code>.
     */
    public Timestamp getCreated() {
        return (Timestamp) get(3);
    }

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

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

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

    /**
     * Create a detached LinkUserApplicationUserApplicationRoleRecord
     */
    public LinkUserApplicationUserApplicationRoleRecord() {
        super(LinkUserApplicationUserApplicationRole.LINK_USER_APPLICATION_USER_APPLICATION_ROLE);
    }

    /**
     * Create a detached, initialised
     * LinkUserApplicationUserApplicationRoleRecord
     */
    public LinkUserApplicationUserApplicationRoleRecord(Long linkUserApplicationUserRoleId, Long userApplicationListId, String userRoleId, Timestamp created) {
        super(LinkUserApplicationUserApplicationRole.LINK_USER_APPLICATION_USER_APPLICATION_ROLE);

        setLinkUserApplicationUserRoleId(linkUserApplicationUserRoleId);
        setUserApplicationListId(userApplicationListId);
        setUserRoleId(userRoleId);
        setCreated(created);
        resetChangedOnNotNull();
    }
}
