01: /*
02: * Piscator: a small SQL/XML search engine
03: * Copyright (C) 2007 Luk Morbee
04: *
05: * This program is free software; you can redistribute it and/or modify
06: * it under the terms of the GNU General Public License as published by
07: * the Free Software Foundation; either version 2 of the License, or
08: * (at your option) any later version.
09: *
10: * This program is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13: * GNU General Public License for more details.
14: *
15: * You should have received a copy of the GNU General Public License
16: * along with this program; if not, write to the Free Software
17: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18: */
19: package piscator.service;
20:
21: import piscator.dao.SearchDao;
22:
23: public class Searcher {
24:
25: private SearchDao searchDao = null;
26:
27: public SearchDao getSearchDao() {
28: return searchDao;
29: }
30:
31: public void setSearchDao(SearchDao searchDao) {
32: this .searchDao = searchDao;
33: }
34:
35: public String getDocuments(String sql) {
36: return searchDao.getDocuments(sql);
37: }
38:
39: public String getXML(String sql) {
40: return searchDao.getXML(sql);
41: }
42: }
|