View Javadoc

1   /***
2   Copyright (C) 2005 The Java Community
3   
4   This program is free software; you can redistribute it and/or modify  it under
5   the terms of the GNU General Public License as published by  the Free Software
6   Foundation; either version 2 of the License, or  (at your option) any later
7   version.
8   
9   This program is distributed in the hope that it will be useful,  but WITHOUT
10  ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or FITNESS
11  FOR A PARTICULAR PURPOSE. See the  GNU General Public License for more details.
12  
13  You should have received a copy of the GNU General Public License  along with
14  this program; if not, write to the Free Software  Foundation, Inc., 59 Temple
15  Place, Suite 330, Boston, MA 02111-1307 USA.
16  
17  */
18  package org.bejug.javacareers.common.search;
19  
20  /***
21   * Interface for the factory of SearchCriterias.
22   * @author Bart Meyers (last modified by $Author: ge0ffrey $)
23   * @version $Revision: 1.1 $ $Date: 2005/08/26 07:58:25 $
24   *
25   */
26  public interface SearchCriteriaFactory {
27      
28      /***
29       * creates or gets a SearchCriteria from the cache/pool.
30       * @param clazz the Class to define this searchcriteria for.
31       * @return a SearchCriteria-object.
32       */
33      SearchCriteria createSearchCriteria(Class clazz);
34      
35      
36      /***
37       * creates or gets a SearchCriteria from the cache/pool.
38       * @param clazz the Class to define this searchcriteria for.
39       * @param maxResults the max number of results wanted.
40       * @return a SearchCriteria-object.
41       */
42      SearchCriteria createSearchCriteria(Class clazz, int maxResults);
43  }
44  /***
45   * $Log: SearchCriteriaFactory.java,v $
46   * Revision 1.1  2005/08/26 07:58:25  ge0ffrey
47   * split up the sources in service, serviceimpl and webclient
48   *
49   * Revision 1.2  2005/06/09 08:18:41  bejug_cc
50   * Fix initial import
51   *
52   * Revision 1.1  2005/06/01 09:12:25  bme
53   * introduction of a factory for the searchCriteria
54   *
55   */