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


import java.sql.Timestamp;

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

import ru.micord.ervu_dashboard.db_beans.ervu_dashboard.tables.VehicleCategories;


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>ervu_dashboard.vehicle_categories.code</code>.
     */
    public void setCode(String value) {
        set(0, value);
    }

    /**
     * Getter for <code>ervu_dashboard.vehicle_categories.code</code>.
     */
    public String getCode() {
        return (String) get(0);
    }

    /**
     * Setter for <code>ervu_dashboard.vehicle_categories.name</code>.
     */
    public void setName(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>ervu_dashboard.vehicle_categories.name</code>.
     */
    public String getName() {
        return (String) get(1);
    }

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

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

    /**
     * Setter for
     * <code>ervu_dashboard.vehicle_categories.is_driver_license</code>.
     */
    public void setIsDriverLicense(Boolean value) {
        set(3, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.vehicle_categories.is_driver_license</code>.
     */
    public Boolean getIsDriverLicense() {
        return (Boolean) get(3);
    }

    /**
     * Setter for <code>ervu_dashboard.vehicle_categories.created_at</code>.
     */
    public void setCreatedAt(Timestamp value) {
        set(4, value);
    }

    /**
     * Getter for <code>ervu_dashboard.vehicle_categories.created_at</code>.
     */
    public Timestamp getCreatedAt() {
        return (Timestamp) get(4);
    }

    /**
     * Setter for <code>ervu_dashboard.vehicle_categories.updated_at</code>.
     */
    public void setUpdatedAt(Timestamp value) {
        set(5, value);
    }

    /**
     * Getter for <code>ervu_dashboard.vehicle_categories.updated_at</code>.
     */
    public Timestamp getUpdatedAt() {
        return (Timestamp) get(5);
    }

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

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

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

    /**
     * Create a detached VehicleCategoriesRecord
     */
    public VehicleCategoriesRecord() {
        super(VehicleCategories.VEHICLE_CATEGORIES);
    }

    /**
     * Create a detached, initialised VehicleCategoriesRecord
     */
    public VehicleCategoriesRecord(String code, String name, String description, Boolean isDriverLicense, Timestamp createdAt, Timestamp updatedAt) {
        super(VehicleCategories.VEHICLE_CATEGORIES);

        setCode(code);
        setName(name);
        setDescription(description);
        setIsDriverLicense(isDriverLicense);
        setCreatedAt(createdAt);
        setUpdatedAt(updatedAt);
        resetChangedOnNotNull();
    }
}
