package com.ejie.ab63.service;

import java.util.List;

import com.ejie.ab63.model.Direccion;
import com.ejie.x38.dto.JQGridRequestDto;
import com.ejie.x38.dto.JQGridResponseDto;
import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * Ab6328s00Service  
 * 
 *  
 */

public interface DireccionService {

	/**
	 * Inserts a single row in the Ab6328s00 table.
	 *
	 * @param ab6328s00
	 *            Ab6328s00
	 * @return Ab6328s00
	 */
	Direccion add(Direccion ab6328s00);

	/**
	 * Updates a single row in the Ab6328s00 table.
	 *
	 * @param ab6328s00
	 *            Ab6328s00
	 * @return Ab6328s00
	 */
	Direccion update(Direccion ab6328s00);

	/**
	 * Finds a single row in the Ab6328s00 table.
	 *
	 * @param ab6328s00
	 *            Ab6328s00
	 * @return Ab6328s00
	 */
	Direccion find(Direccion ab6328s00);

	/**
	 * Deletes a single row in the Ab6328s00 table.
	 *
	 * @param ab6328s00
	 *            Ab6328s00
	 */
	void remove(Direccion ab6328s00);

	/**
	 * Finds a list of rows in the Ab6328s00 table.
	 *
	 * @param ab6328s00
	 *            Ab6328s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return List<Ab6328s00>
	 */
	List<Direccion> findAll(Direccion ab6328s00, JQGridRequestDto jqGridRequestDto);

	/**
	 * Finds rows in the Ab6328s00 table using like.
	 *
	 * @param ab6328s00
	 *            Ab6328s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<Ab6328s00>
	 */
	List<Direccion> findAllLike(Direccion ab6328s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Removes rows from the Ab6328s00 table.
	 *
	 * @param filterAb6328s00
	 *            Ab6328s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 */
	void removeMultiple(Direccion filterAb6328s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Filter method in the Ab6328s00 table.
	 *
	 * @param filterAb6328s00
	 *            Ab6328s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return JQGridResponseDto<Ab6328s00>
	 */
	JQGridResponseDto<Direccion> filter(Direccion filterAb6328s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Searches rows in the Ab6328s00 table.
	 *
	 * @param filterAb6328s00
	 *            Ab6328s00
	 * @param searchAb6328s00
	 *            Ab6328s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return List<TableRowDto<Ab6328s00>>
	 */
	List<TableRowDto<Direccion>> search(Direccion filterAb6328s00, Direccion searchAb6328s00,
			JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/**
	 * Reorder the selection made in Ab6328s00 table.
	 *
	 * @param filterAb6328s00
	 *            Ab6328s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return Object
	 */
	Object reorderSelection(Direccion filterAb6328s00, JQGridRequestDto jqGridRequestDto, Boolean startsWith);

	/*
	 * OPERACIONES RUP_TABLE JERARQUIA
	 */

	/**
	 * Finder method in the hierarchical the Ab6328s00 table.
	 *
	 * @param filterAb6328s00
	 *            Ab6328s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @param startsWith
	 *            Boolean
	 * @return JQGridResponseDto<JerarquiaDto<Ab6328s00>>
	 */
	JQGridResponseDto<JerarquiaDto<Direccion>> jerarquia(Direccion filterAb6328s00, JQGridRequestDto jqGridRequestDto,
			Boolean startsWith);

	/**
	 * Finder method for siblings rows in the hierarchical the Ab6328s00 table.
	 *
	 * @param filterAb6328s00
	 *            Ab6328s00
	 * @param jqGridRequestDto
	 *            JQGridRequestDto
	 * @return JQGridResponseDto<JerarquiaDto<Ab6328s00>>
	 */
	JQGridResponseDto<JerarquiaDto<Direccion>> jerarquiaChildren(Direccion filterAb6328s00,
			JQGridRequestDto jqGridRequestDto);

}
