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.dao;
20:
21: import java.util.List;
22:
23: public interface DocumentTableDao {
24:
25: /**
26: * Drops and creates the document table.
27: */
28: public void create(String table);
29:
30: /**
31: * Inserts a document in the specified table
32: */
33: public void insert(String table, String xml);
34:
35: /**
36: * Returns a list of all the docIds stored in the specified document table.
37: */
38: public List getDocIds(String table);
39:
40: /**
41: * Returns the document stored in the specified document table for the specified docId.
42: */
43: public String getDocument(String table, String docId);
44:
45: }
|