/*
 * This file is generated by jOOQ.
 */
package ru.micord.webbpm.ervu.business_metrics.db_beans.idm_reconcile.tables.records;


import org.jooq.Record2;
import org.jooq.impl.UpdatableRecordImpl;

import ru.micord.webbpm.ervu.business_metrics.db_beans.idm_reconcile.tables.AccountRole;


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>idm_reconcile.account_role.account_id</code>.
     */
    public void setAccountId(String value) {
        set(0, value);
    }

    /**
     * Getter for <code>idm_reconcile.account_role.account_id</code>.
     */
    public String getAccountId() {
        return (String) get(0);
    }

    /**
     * Setter for <code>idm_reconcile.account_role.role_id</code>.
     */
    public void setRoleId(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>idm_reconcile.account_role.role_id</code>.
     */
    public String getRoleId() {
        return (String) get(1);
    }

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

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

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

    /**
     * Create a detached AccountRoleRecord
     */
    public AccountRoleRecord() {
        super(AccountRole.ACCOUNT_ROLE);
    }

    /**
     * Create a detached, initialised AccountRoleRecord
     */
    public AccountRoleRecord(String accountId, String roleId) {
        super(AccountRole.ACCOUNT_ROLE);

        setAccountId(accountId);
        setRoleId(roleId);
        resetChangedOnNotNull();
    }
}
