1 /*
2 * Copyright 2003-2005 Michael Franken, Zilverline.
3 *
4 * The contents of this file, or the files included with this file, are subject to
5 * the current version of ZILVERLINE Collaborative Source License for the
6 * Zilverline Search Engine (the "License"); You may not use this file except in
7 * compliance with the License.
8 *
9 * You may obtain a copy of the License at
10 *
11 * http://www.zilverline.org.
12 *
13 * See the License for the rights, obligations and
14 * limitations governing use of the contents of the file.
15 *
16 * The Original and Upgraded Code is the Zilverline Search Engine. The developer of
17 * the Original and Upgraded Code is Michael Franken. Michael Franken owns the
18 * copyrights in the portions it created. All Rights Reserved.
19 *
20 */
21
22 package org.zilverline.dao;
23
24 import org.zilverline.service.SearchServiceImpl;
25
26 /***
27 * Interface towards data access of a SearchService.
28 *
29 * @author Michael Franken
30 * @version $Revision: 1.6 $
31 */
32 public interface SearchServiceDAO {
33 /***
34 * Retrieve the SearchService from store.
35 *
36 * @return SearchService the service
37 */
38 SearchServiceImpl load();
39
40 /***
41 * Save the SearchService to the datastore.
42 *
43 * @param service the SearchService
44 * @throws DAOException if the service can not be stored
45 */
46 void store(SearchServiceImpl service) throws DAOException;
47
48 }