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


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

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


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>public.solution_role.role_id</code>. Идентификатор роли
     */
    public void setRoleId(String value) {
        set(0, value);
    }

    /**
     * Getter for <code>public.solution_role.role_id</code>. Идентификатор роли
     */
    public String getRoleId() {
        return (String) get(0);
    }

    /**
     * Setter for <code>public.solution_role.solution_id</code>. Идентификатор
     * группы ролей
     */
    public void setSolutionId(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>public.solution_role.solution_id</code>. Идентификатор
     * группы ролей
     */
    public String getSolutionId() {
        return (String) get(1);
    }

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

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

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

    /**
     * Create a detached SolutionRoleRecord
     */
    public SolutionRoleRecord() {
        super(SolutionRole.SOLUTION_ROLE);
    }

    /**
     * Create a detached, initialised SolutionRoleRecord
     */
    public SolutionRoleRecord(String roleId, String solutionId) {
        super(SolutionRole.SOLUTION_ROLE);

        setRoleId(roleId);
        setSolutionId(solutionId);
        resetChangedOnNotNull();
    }
}
