package controller;

import java.util.HashMap;

import org.sig.fw.db.bddc.model.Client;

import controller.client.Get_Client_Controller;
import controller.history.Application_Controller;
import view.View_Search_Frame;

public abstract class Search_Controller extends Controller
{
	protected Thread search = null;
	
	protected View_Search_Frame vw_search = null;
	
	protected Get_Client_Controller ctrl_search_client = null;
	
	protected Client search_client_model = null;
	
	public Search_Controller(Application_Controller ctrl_application)
	{
		super(ctrl_application);
		this.ctrl_search_client = new Get_Client_Controller(ctrl_application);
	}
	
	public Client searchClient(String value)
	{
		return (Client) this.ctrl_search_client.show(value);
	}
	
	public void setSearchClientModel(Client client)
	{
		this.search_client_model = client;
	}
	
	public Client getSearchClientModel()
	{
		return this.search_client_model;
	}
	
	public View_Search_Frame getView()
	{
		return this.vw_search;
	}

	public abstract void refine(HashMap<Integer, Object> datas);
	public abstract void search(HashMap<Integer, Object> datas);

}
