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


import java.sql.Timestamp;

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

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


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>idm_reconcile.role.id</code>.
     */
    public void setId(String value) {
        set(0, value);
    }

    /**
     * Getter for <code>idm_reconcile.role.id</code>.
     */
    public String getId() {
        return (String) get(0);
    }

    /**
     * Setter for <code>idm_reconcile.role.version</code>.
     */
    public void setVersion(Integer value) {
        set(1, value);
    }

    /**
     * Getter for <code>idm_reconcile.role.version</code>.
     */
    public Integer getVersion() {
        return (Integer) get(1);
    }

    /**
     * Setter for <code>idm_reconcile.role.modified</code>.
     */
    public void setModified(Timestamp value) {
        set(2, value);
    }

    /**
     * Getter for <code>idm_reconcile.role.modified</code>.
     */
    public Timestamp getModified() {
        return (Timestamp) get(2);
    }

    /**
     * Setter for <code>idm_reconcile.role.schema</code>.
     */
    public void setSchema(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>idm_reconcile.role.schema</code>.
     */
    public String getSchema() {
        return (String) get(3);
    }

    /**
     * Setter for <code>idm_reconcile.role.name</code>.
     */
    public void setName(String value) {
        set(4, value);
    }

    /**
     * Getter for <code>idm_reconcile.role.name</code>.
     */
    public String getName() {
        return (String) get(4);
    }

    /**
     * Setter for <code>idm_reconcile.role.shortname</code>.
     */
    public void setShortname(String value) {
        set(5, value);
    }

    /**
     * Getter for <code>idm_reconcile.role.shortname</code>.
     */
    public String getShortname() {
        return (String) get(5);
    }

    /**
     * Setter for <code>idm_reconcile.role.display_name</code>.
     */
    public void setDisplayName(String value) {
        set(6, value);
    }

    /**
     * Getter for <code>idm_reconcile.role.display_name</code>.
     */
    public String getDisplayName() {
        return (String) get(6);
    }

    /**
     * Setter for <code>idm_reconcile.role.sessions_limit</code>.
     */
    public void setSessionsLimit(Integer value) {
        set(7, value);
    }

    /**
     * Getter for <code>idm_reconcile.role.sessions_limit</code>.
     */
    public Integer getSessionsLimit() {
        return (Integer) get(7);
    }

    /**
     * Setter for <code>idm_reconcile.role.ervu_role</code>.
     */
    public void setErvuRole(Boolean value) {
        set(8, value);
    }

    /**
     * Getter for <code>idm_reconcile.role.ervu_role</code>.
     */
    public Boolean getErvuRole() {
        return (Boolean) get(8);
    }

    /**
     * Setter for <code>idm_reconcile.role.imported</code>.
     */
    public void setImported(Integer value) {
        set(9, value);
    }

    /**
     * Getter for <code>idm_reconcile.role.imported</code>.
     */
    public Integer getImported() {
        return (Integer) get(9);
    }

    /**
     * Setter for <code>idm_reconcile.role.description</code>.
     */
    public void setDescription(String value) {
        set(10, value);
    }

    /**
     * Getter for <code>idm_reconcile.role.description</code>.
     */
    public String getDescription() {
        return (String) get(10);
    }

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

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

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

    /**
     * Create a detached RoleRecord
     */
    public RoleRecord() {
        super(Role.ROLE);
    }

    /**
     * Create a detached, initialised RoleRecord
     */
    public RoleRecord(String id, Integer version, Timestamp modified, String schema, String name, String shortname, String displayName, Integer sessionsLimit, Boolean ervuRole, Integer imported, String description) {
        super(Role.ROLE);

        setId(id);
        setVersion(version);
        setModified(modified);
        setSchema(schema);
        setName(name);
        setShortname(shortname);
        setDisplayName(displayName);
        setSessionsLimit(sessionsLimit);
        setErvuRole(ervuRole);
        setImported(imported);
        setDescription(description);
        resetChangedOnNotNull();
    }
}
