/**
 * This class is generated by jOOQ
 */
package org.openforis.collect.persistence.jooq.tables.daos;


import java.util.List;

import org.jooq.Configuration;
import org.jooq.impl.DAOImpl;
import org.openforis.collect.persistence.jooq.tables.OfcLogo;
import org.openforis.collect.persistence.jooq.tables.records.OfcLogoRecord;


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class OfcLogoDao extends DAOImpl<OfcLogoRecord, org.openforis.collect.persistence.jooq.tables.pojos.OfcLogo, Integer> {

	/**
	 * Create a new OfcLogoDao without any configuration
	 */
	public OfcLogoDao() {
		super(OfcLogo.OFC_LOGO, org.openforis.collect.persistence.jooq.tables.pojos.OfcLogo.class);
	}

	/**
	 * Create a new OfcLogoDao with an attached configuration
	 */
	public OfcLogoDao(Configuration configuration) {
		super(OfcLogo.OFC_LOGO, org.openforis.collect.persistence.jooq.tables.pojos.OfcLogo.class, configuration);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	protected Integer getId(org.openforis.collect.persistence.jooq.tables.pojos.OfcLogo object) {
		return object.getPos();
	}

	/**
	 * Fetch records that have <code>pos IN (values)</code>
	 */
	public List<org.openforis.collect.persistence.jooq.tables.pojos.OfcLogo> fetchByPos(Integer... values) {
		return fetch(OfcLogo.OFC_LOGO.POS, values);
	}

	/**
	 * Fetch a unique record that has <code>pos = value</code>
	 */
	public org.openforis.collect.persistence.jooq.tables.pojos.OfcLogo fetchOneByPos(Integer value) {
		return fetchOne(OfcLogo.OFC_LOGO.POS, value);
	}

	/**
	 * Fetch records that have <code>image IN (values)</code>
	 */
	public List<org.openforis.collect.persistence.jooq.tables.pojos.OfcLogo> fetchByImage(byte[]... values) {
		return fetch(OfcLogo.OFC_LOGO.IMAGE, values);
	}
}
