/*
 * This file is generated by jOOQ.
 */
package jj.tech.paolu.repository.jooq.tables.daos;


import java.util.List;
import java.util.Optional;

import jj.tech.paolu.repository.jooq.tables.SysResource;
import jj.tech.paolu.repository.jooq.tables.records.SysResourceRecord;

import org.jooq.Configuration;
import org.jooq.impl.DAOImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
@Repository
public class SysResourceDao extends DAOImpl<SysResourceRecord, jj.tech.paolu.repository.jooq.tables.pojos.SysResource, String> {

    /**
     * Create a new SysResourceDao without any configuration
     */
    public SysResourceDao() {
        super(SysResource.SYS_RESOURCE, jj.tech.paolu.repository.jooq.tables.pojos.SysResource.class);
    }

    /**
     * Create a new SysResourceDao with an attached configuration
     */
    @Autowired
    public SysResourceDao(Configuration configuration) {
        super(SysResource.SYS_RESOURCE, jj.tech.paolu.repository.jooq.tables.pojos.SysResource.class, configuration);
    }

    @Override
    public String getId(jj.tech.paolu.repository.jooq.tables.pojos.SysResource object) {
        return object.getId();
    }

    /**
     * Fetch records that have <code>id BETWEEN lowerInclusive AND
     * upperInclusive</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysResource> fetchRangeOfId(String lowerInclusive, String upperInclusive) {
        return fetchRange(SysResource.SYS_RESOURCE.ID, lowerInclusive, upperInclusive);
    }

    /**
     * Fetch records that have <code>id IN (values)</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysResource> fetchById(String... values) {
        return fetch(SysResource.SYS_RESOURCE.ID, values);
    }

    /**
     * Fetch a unique record that has <code>id = value</code>
     */
    public jj.tech.paolu.repository.jooq.tables.pojos.SysResource fetchOneById(String value) {
        return fetchOne(SysResource.SYS_RESOURCE.ID, value);
    }

    /**
     * Fetch a unique record that has <code>id = value</code>
     */
    public Optional<jj.tech.paolu.repository.jooq.tables.pojos.SysResource> fetchOptionalById(String value) {
        return fetchOptional(SysResource.SYS_RESOURCE.ID, value);
    }

    /**
     * Fetch records that have <code>parent_id BETWEEN lowerInclusive AND
     * upperInclusive</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysResource> fetchRangeOfParentId(String lowerInclusive, String upperInclusive) {
        return fetchRange(SysResource.SYS_RESOURCE.PARENT_ID, lowerInclusive, upperInclusive);
    }

    /**
     * Fetch records that have <code>parent_id IN (values)</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysResource> fetchByParentId(String... values) {
        return fetch(SysResource.SYS_RESOURCE.PARENT_ID, values);
    }

    /**
     * Fetch records that have <code>level BETWEEN lowerInclusive AND
     * upperInclusive</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysResource> fetchRangeOfLevel(Short lowerInclusive, Short upperInclusive) {
        return fetchRange(SysResource.SYS_RESOURCE.LEVEL, lowerInclusive, upperInclusive);
    }

    /**
     * Fetch records that have <code>level IN (values)</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysResource> fetchByLevel(Short... values) {
        return fetch(SysResource.SYS_RESOURCE.LEVEL, values);
    }

    /**
     * Fetch records that have <code>name BETWEEN lowerInclusive AND
     * upperInclusive</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysResource> fetchRangeOfName(String lowerInclusive, String upperInclusive) {
        return fetchRange(SysResource.SYS_RESOURCE.NAME, lowerInclusive, upperInclusive);
    }

    /**
     * Fetch records that have <code>name IN (values)</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysResource> fetchByName(String... values) {
        return fetch(SysResource.SYS_RESOURCE.NAME, values);
    }

    /**
     * Fetch records that have <code>types BETWEEN lowerInclusive AND
     * upperInclusive</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysResource> fetchRangeOfTypes(String lowerInclusive, String upperInclusive) {
        return fetchRange(SysResource.SYS_RESOURCE.TYPES, lowerInclusive, upperInclusive);
    }

    /**
     * Fetch records that have <code>types IN (values)</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysResource> fetchByTypes(String... values) {
        return fetch(SysResource.SYS_RESOURCE.TYPES, values);
    }

    /**
     * Fetch records that have <code>url BETWEEN lowerInclusive AND
     * upperInclusive</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysResource> fetchRangeOfUrl(String lowerInclusive, String upperInclusive) {
        return fetchRange(SysResource.SYS_RESOURCE.URL, lowerInclusive, upperInclusive);
    }

    /**
     * Fetch records that have <code>url IN (values)</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysResource> fetchByUrl(String... values) {
        return fetch(SysResource.SYS_RESOURCE.URL, values);
    }

    /**
     * Fetch records that have <code>icon BETWEEN lowerInclusive AND
     * upperInclusive</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysResource> fetchRangeOfIcon(String lowerInclusive, String upperInclusive) {
        return fetchRange(SysResource.SYS_RESOURCE.ICON, lowerInclusive, upperInclusive);
    }

    /**
     * Fetch records that have <code>icon IN (values)</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysResource> fetchByIcon(String... values) {
        return fetch(SysResource.SYS_RESOURCE.ICON, values);
    }

    /**
     * Fetch records that have <code>ishide BETWEEN lowerInclusive AND
     * upperInclusive</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysResource> fetchRangeOfIshide(Byte lowerInclusive, Byte upperInclusive) {
        return fetchRange(SysResource.SYS_RESOURCE.ISHIDE, lowerInclusive, upperInclusive);
    }

    /**
     * Fetch records that have <code>ishide IN (values)</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysResource> fetchByIshide(Byte... values) {
        return fetch(SysResource.SYS_RESOURCE.ISHIDE, values);
    }

    /**
     * Fetch records that have <code>description BETWEEN lowerInclusive AND
     * upperInclusive</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysResource> fetchRangeOfDescription(String lowerInclusive, String upperInclusive) {
        return fetchRange(SysResource.SYS_RESOURCE.DESCRIPTION, lowerInclusive, upperInclusive);
    }

    /**
     * Fetch records that have <code>description IN (values)</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysResource> fetchByDescription(String... values) {
        return fetch(SysResource.SYS_RESOURCE.DESCRIPTION, values);
    }
}
