/*
 * 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.SysUrls;
import jj.tech.paolu.repository.jooq.tables.records.SysUrlsRecord;

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 SysUrlsDao extends DAOImpl<SysUrlsRecord, jj.tech.paolu.repository.jooq.tables.pojos.SysUrls, String> {

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

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

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

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

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

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

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

    /**
     * Fetch records that have <code>pid BETWEEN lowerInclusive AND
     * upperInclusive</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysUrls> fetchRangeOfPid(Integer lowerInclusive, Integer upperInclusive) {
        return fetchRange(SysUrls.SYS_URLS.PID, lowerInclusive, upperInclusive);
    }

    /**
     * Fetch records that have <code>pid IN (values)</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysUrls> fetchByPid(Integer... values) {
        return fetch(SysUrls.SYS_URLS.PID, values);
    }

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

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

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

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

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

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

    /**
     * Fetch a unique record that has <code>url = value</code>
     */
    public jj.tech.paolu.repository.jooq.tables.pojos.SysUrls fetchOneByUrl(String value) {
        return fetchOne(SysUrls.SYS_URLS.URL, value);
    }

    /**
     * Fetch a unique record that has <code>url = value</code>
     */
    public Optional<jj.tech.paolu.repository.jooq.tables.pojos.SysUrls> fetchOptionalByUrl(String value) {
        return fetchOptional(SysUrls.SYS_URLS.URL, value);
    }

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

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

    /**
     * Fetch records that have <code>method BETWEEN lowerInclusive AND
     * upperInclusive</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysUrls> fetchRangeOfMethod(String lowerInclusive, String upperInclusive) {
        return fetchRange(SysUrls.SYS_URLS.METHOD, lowerInclusive, upperInclusive);
    }

    /**
     * Fetch records that have <code>method IN (values)</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysUrls> fetchByMethod(String... values) {
        return fetch(SysUrls.SYS_URLS.METHOD, values);
    }
}
