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 import java.util.List;
21
22 /***
23 * This class is meant to serve as interface for the implementations of all
24 * the methods supported by the SearchCriteria-class.
25 * @author Bart Meyers (last modified by $Author: ge0ffrey $)
26 * @version $Revision: 1.1 $ $Date: 2005/08/26 07:58:25 $
27 *
28 */
29 public interface SearchCriteriaService {
30
31 /***
32 * execute the query with the provided searchcriteria.
33 * @param searchCriteria the criteria to meet.
34 * @return a List of resulting objects from the database.
35 */
36 List executeQuery(SearchCriteria searchCriteria);
37
38
39 /***
40 * execute the countquery with the provided searchcriteria.
41 * @param searchCriteria the criteria to meet.
42 * @return an int indicating the count from the database.
43 */
44 int executeCountQuery(SearchCriteria searchCriteria);
45
46
47 /***
48 * execute the uniquequery with the provided searchcriteria.
49 * @param searchCriteria the criteria to meet.
50 * @return one Object from the resultset.
51 */
52 Object executeUniqueQuery(SearchCriteria searchCriteria);
53 }
54 /***
55 * $Log: SearchCriteriaService.java,v $
56 * Revision 1.1 2005/08/26 07:58:25 ge0ffrey
57 * split up the sources in service, serviceimpl and webclient
58 *
59 * Revision 1.3 2005/08/11 13:04:30 bme_jcs
60 * update searchCriteria to support ordering and paging
61 *
62 */