package com.ejie.ab04b.dao;

import java.util.List;

import com.ejie.ab04b.model.CoordinadorObra;
import com.ejie.x38.dto.JQGridRequestDto;
import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * Ab0484s00Dao generated by UDA, 20-feb-2017 12:41:54.
 * 
 * @author UDA
 */

public interface CoordinadorObraDao {

	/**
	 * Inserts a single row in the Ab0484s00 table.
	 * 
	 *  ab0484s00
	 *            Ab0484s00
	 *  Ab0484s00
	 *
	 * @param ab0484s00 the ab 0484 s 00
	 * @return the coordinador obra
	 */
	CoordinadorObra add(CoordinadorObra ab0484s00);

	/**
	 * Inserts a single row in the Ab0484s00 table.
	 * 
	 *  ab0484s00
	 *            Ab0484s00
	 *  Ab0484s00
	 *
	 * @param ab0484s00 the ab 0484 s 00
	 * @return the coordinador obra
	 */
	CoordinadorObra addFromSolicitud(CoordinadorObra ab0484s00);

	/**
	 * Updates a single row in the Ab0484s00 table.
	 * 
	 *  ab0484s00
	 *            Ab0484s00
	 *  Ab0484s00
	 *
	 * @param ab0484s00 the ab 0484 s 00
	 * @return the coordinador obra
	 */
	CoordinadorObra update(CoordinadorObra ab0484s00);

	/**
	 * Finds a single row in the Ab0484s00 table.
	 * 
	 *  ab0484s00
	 *            Ab0484s00
	 *  Ab0484s00
	 *
	 * @param ab0484s00 the ab 0484 s 00
	 * @return the coordinador obra
	 */
	CoordinadorObra find(CoordinadorObra ab0484s00);

	/**
	 * Finds a single row in the Ab0484s00 table.
	 * 
	 *  ab0484s00
	 *            Ab0484s00
	 *  Ab0484s00
	 *
	 * @param ab0484s00 the ab 0484 s 00
	 * @return the list
	 */
	List<CoordinadorObra> findCoordinadorMaxFecAlta(CoordinadorObra ab0484s00);

	/**
	 * Removes a single row in the Ab0484s00 table.
	 * 
	 *  ab0484s00
	 *            Ab0484s00
	 *
	 * @param ab0484s00 the ab 0484 s 00
	 */
	void remove(CoordinadorObra ab0484s00);

	/**
	 * Finds a List of rows in the Ab0484s00 table.
	 * 
	 *  ab0484s00
	 *            Ab0484s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  List
	 *
	 * @param ab0484s00 the ab 0484 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the list
	 */
	List<CoordinadorObra> findAll(CoordinadorObra ab0484s00,
			JQGridRequestDto jqGridRequestDto);

	/**
	 * Finds rows in the Ab0484s00 table using like.
	 * 
	 *  ab0484s00
	 *            Ab0484s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  List
	 *
	 * @param ab0484s00 the ab 0484 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<CoordinadorObra> findAllLike(CoordinadorObra ab0484s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Filter in the Ab0484s00 table.
	 * 
	 *  filterAb0484s00
	 *            Ab0484s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *
	 * @param filterAb0484s00 the filter ab 0484 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 */
	void removeMultiple(CoordinadorObra filterAb0484s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Counts rows in the Ab0484s00 table using like.
	 * 
	 *  ab0484s00
	 *            Ab0484s00
	 *  startsWith
	 *            Boolean
	 *  Long
	 *
	 * @param ab0484s00 the ab 0484 s 00
	 * @param startsWith the starts with
	 * @return the long
	 */
	Long findAllLikeCount(CoordinadorObra ab0484s00, Boolean startsWith);

	/**
	 * Counts rows in the Ab0484s00 table.
	 * 
	 *  ab0484s00
	 *            Ab0484s00
	 *  Long
	 *
	 * @param ab0484s00 the ab 0484 s 00
	 * @return the long
	 */
	Long findAllCount(CoordinadorObra ab0484s00);

	/**
	 * Reorder selection.
	 * 
	 *  filterAb0484s00
	 *            Ab0484s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  List<TableRowDto<Ab0484s00>>
	 *
	 * @param filterAb0484s00 the filter ab 0484 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<TableRowDto<CoordinadorObra>> reorderSelection(
			CoordinadorObra filterAb0484s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Searches in the Usuario table.
	 * 
	 *  filterAb0484s00
	 *            Ab0484s00
	 *  searchAb0484s00
	 *            Ab0484s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  startsWith
	 *            Boolean
	 *  List<TableRowDto<Ab0484s00>>
	 *
	 * @param filterAb0484s00 the filter ab 0484 s 00
	 * @param searchAb0484s00 the search ab 0484 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @param startsWith the starts with
	 * @return the list
	 */
	List<TableRowDto<CoordinadorObra>> search(CoordinadorObra filterAb0484s00,
			CoordinadorObra searchAb0484s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Filter in the hierarchical Ab0484s00 table.
	 * 
	 *  filterAb0484s00
	 *            Ab0484s00
	 *  jqGridRequestDto
	 *            JQGridRequestDto
	 *  List<JerarquiaDto<Ab0484s00>>
	 *
	 * @param filterAb0484s00 the filter ab 0484 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the list
	 */
	List<JerarquiaDto<CoordinadorObra>> findAllLikeJerarquia(
			CoordinadorObra filterAb0484s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Count rows in hierarchy.
	 * 
	 *  filterAb0484s00            Ab0484s00
	 *  jqGridRequestDto            JQGridRequestDto
	 *  Long
	 *
	 * @param filterAb0484s00 the filter ab 0484 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the long
	 */
	Long findAllLikeCountJerarquia(CoordinadorObra filterAb0484s00,
			JQGridRequestDto jqGridRequestDto);

	/**
	 * Find dependent hierarchical rows.
	 * 
	 *  filterAb0484s00            Ab0484s00
	 *  jqGridRequestDto            JQGridRequestDto
	 *  List<TableRowDto<Ab0484s00>>
	 *
	 * @param filterAb0484s00 the filter ab 0484 s 00
	 * @param jqGridRequestDto the jq grid request dto
	 * @return the list
	 */
	List<TableRowDto<CoordinadorObra>> findAllChild(
			CoordinadorObra filterAb0484s00, JQGridRequestDto jqGridRequestDto);

}
