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

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 SysAdminMenuDao extends DAOImpl<SysAdminMenuRecord, jj.tech.paolu.repository.jooq.tables.pojos.SysAdminMenu, String> {

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

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

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

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

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

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

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

    /**
     * Fetch records that have <code>adminid BETWEEN lowerInclusive AND
     * upperInclusive</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysAdminMenu> fetchRangeOfAdminid(String lowerInclusive, String upperInclusive) {
        return fetchRange(SysAdminMenu.SYS_ADMIN_MENU.ADMINID, lowerInclusive, upperInclusive);
    }

    /**
     * Fetch records that have <code>adminid IN (values)</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysAdminMenu> fetchByAdminid(String... values) {
        return fetch(SysAdminMenu.SYS_ADMIN_MENU.ADMINID, values);
    }

    /**
     * Fetch records that have <code>memuid BETWEEN lowerInclusive AND
     * upperInclusive</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysAdminMenu> fetchRangeOfMemuid(String lowerInclusive, String upperInclusive) {
        return fetchRange(SysAdminMenu.SYS_ADMIN_MENU.MEMUID, lowerInclusive, upperInclusive);
    }

    /**
     * Fetch records that have <code>memuid IN (values)</code>
     */
    public List<jj.tech.paolu.repository.jooq.tables.pojos.SysAdminMenu> fetchByMemuid(String... values) {
        return fetch(SysAdminMenu.SYS_ADMIN_MENU.MEMUID, values);
    }
}
