/*
 * 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.AccessLevel;

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


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>security.access_level.access_level_id</code>.
     */
    public void setAccessLevelId(String value) {
        set(0, value);
    }

    /**
     * Getter for <code>security.access_level.access_level_id</code>.
     */
    public String getAccessLevelId() {
        return (String) get(0);
    }

    /**
     * Setter for <code>security.access_level.level</code>.
     */
    public void setLevel(Short value) {
        set(1, value);
    }

    /**
     * Getter for <code>security.access_level.level</code>.
     */
    public Short getLevel() {
        return (Short) get(1);
    }

    /**
     * Setter for <code>security.access_level.description</code>.
     */
    public void setDescription(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>security.access_level.description</code>.
     */
    public String getDescription() {
        return (String) get(2);
    }

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

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

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

    /**
     * Create a detached AccessLevelRecord
     */
    public AccessLevelRecord() {
        super(AccessLevel.ACCESS_LEVEL);
    }

    /**
     * Create a detached, initialised AccessLevelRecord
     */
    public AccessLevelRecord(String accessLevelId, Short level, String description) {
        super(AccessLevel.ACCESS_LEVEL);

        setAccessLevelId(accessLevelId);
        setLevel(level);
        setDescription(description);
        resetChangedOnNotNull();
    }
}
