package it.csi.demo.democomp.business.business.dao.refappdao.dao;

import it.csi.demo.democomp.business.business.dao.refappdao.dao.*;
import it.csi.demo.democomp.business.business.dao.refappdao.dto.*;
import it.csi.demo.democomp.business.business.dao.refappdao.qbe.*;
import it.csi.demo.democomp.business.business.dao.refappdao.metadata.*;
import it.csi.demo.democomp.business.business.dao.refappdao.exceptions.*;
import it.csi.demo.democomp.business.business.dao.util.*;
import it.csi.demo.democomp.business.business.dao.qbe.*;
import java.util.*;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @generated
 */
public interface CittadinoDao {

	/**
	 * Method 'insert'
	 * 
	 * @param dto
	 * @return CittadinoPk
	 * @generated
	 */

	public CittadinoPk insert(CittadinoDto dto)

	;

	/** 
	 * Updates a single row in the REFAPP_T_CITTADINO table.
	 * @generated
	 */
	public void update(CittadinoDto dto) throws CittadinoDaoException;

	/** 
	 * Deletes a single row in the REFAPP_T_CITTADINO table.
	 * @generated
	 */

	public void delete(CittadinoPk pk) throws CittadinoDaoException;

	/**
	 * Method 'mapRow'
	 * 
	 * @param rs
	 * @param row
	 * @throws SQLException
	 * @return CittadinoDto
	 * @generated
	 */
	public CittadinoDto mapRow(ResultSet rs, int row) throws SQLException;

	/**
	 * Method 'mapRow_internal'
	 * 
	 * @param rs
	 * @param row
	 * @throws SQLException
	 * @return CittadinoDto
	 * @generated
	 */
	public CittadinoDto mapRow_internal(CittadinoDto objectToFill,
			ResultSet rs, int row) throws SQLException;

	/** 
	 * Returns all rows from the REFAPP_T_CITTADINO table that match the primary key criteria
	 * @generated
	 */
	@SuppressWarnings("unchecked")
	public CittadinoDto findByPrimaryKey(CittadinoPk pk)
			throws CittadinoDaoException;

	/** 
	 * Returns all rows from the REFAPP_T_CITTADINO table that match the criteria ''.
	 * @generated
	 */
	@SuppressWarnings("unchecked")
	public List<CittadinoDto> findAll() throws CittadinoDaoException;

	/** 
	 * Implementazione del finder findByLoc
	 * @generated
	 */
	@SuppressWarnings("unchecked")
	public List<CittadinoDto> findFindByLoc(
			it.csi.demo.democomp.dto.nspersona.Persona input)
			throws CittadinoDaoException;
}
