KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > xml > querying > XMLQuery


1 package org.exoplatform.services.xml.querying;
2
3 import java.io.IOException JavaDoc;
4 import java.io.InputStream JavaDoc;
5
6 public interface XMLQuery {
7     /**
8      * Executes this query
9      * For the time only one instruction will executed
10      */

11     void execute() throws InvalidSourceException, QueryRunTimeException;
12
13
14     /**
15      * Prepares this query
16      */

17     void prepare( Statement statement, Object JavaDoc resourceContext ) throws InvalidSourceException;
18
19     /**
20      * Prepares this query
21      */

22     void prepare( Statement statement ) throws InvalidSourceException;
23
24     /**
25      * Prepares this query
26      * Statement's source ID will be ignored
27      * Input for the query is result of previous execution.
28      */

29     void prepareNext( Statement statement ) throws InvalidSourceException;
30
31     /**
32      * Serializes (stores) querie's result into <destination>
33      */

34     void serialize() throws IOException JavaDoc, InvalidDestinationException;
35
36     void setDestination(String JavaDoc destination);
37
38    XMLData getInput();
39
40    void setInput(XMLData input);
41
42    void setInputStream(InputStream JavaDoc inputStream) throws InvalidSourceException;
43
44    XMLData getResult();
45
46    void setResult(XMLData result);
47
48 }
49
Popular Tags