KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > xml > querying > helper > SimpleStatementHelper


1 package org.exoplatform.services.xml.querying.helper;
2
3 import org.exoplatform.services.xml.querying.InvalidStatementException;
4 import org.exoplatform.services.xml.querying.Statement;
5 import org.exoplatform.services.xml.querying.XMLData;
6 import org.exoplatform.services.xml.querying.XMLWellFormedData;
7
8 public interface SimpleStatementHelper {
9    /**
10     * Append statement helper
11     * @param match - XPath expression
12     * @param source - XTAS resource identifier for query source
13     * @param destination - XTAS resource identifier for query destination
14     * @param value - new node(set) value
15     * @return Statement object
16     */

17    Statement append(String JavaDoc match, String JavaDoc source, String JavaDoc destination, XMLData value) throws InvalidStatementException;
18
19    /**
20     * Append statement helper
21     * @param match - XPath expression
22     * @param resource - XTAS resource identifier (will be used for both source and destination)
23     * @param value - new node(set) value
24     * @return Statement object
25     */

26    Statement append(String JavaDoc match, String JavaDoc resource, XMLData value) throws InvalidStatementException;
27
28    /**
29     * Append statement helper
30     * @param match - XPath expression
31     * @param value - new node(set) value
32     * @return Statement object
33     */

34    Statement append(String JavaDoc match, XMLData value) throws InvalidStatementException;
35
36    /**
37     * Create Resource statement helper
38     * @param resource - XTAS resource identifier
39     * @param initTree - initial node
40     * @return Statement object
41     */

42    Statement create(String JavaDoc resource, XMLWellFormedData initTree) throws InvalidStatementException;
43
44    /**
45     * Delete statement helper
46     * @param match - XPath expression
47     * @param source - XTAS resource identifier for query source
48     * @param destination - XTAS resource identifier for query destination
49     * @return Statement object
50     */

51    Statement delete(String JavaDoc match, String JavaDoc source, String JavaDoc destination) throws InvalidStatementException;
52
53    /**
54     * Delete statement helper
55     * @param match - XPath expression
56     * @param resource - XTAS resource identifier (will be used for both source and destination)
57     * @return Statement object
58     */

59    Statement delete(String JavaDoc match, String JavaDoc resource) throws InvalidStatementException;
60
61    /**
62     * Delete statement helper
63     * @param match - XPath expression
64     * @return Statement object
65     */

66    Statement delete(String JavaDoc match) throws InvalidStatementException;
67
68    /**
69     * Drop Resource statement helper
70     * @param resource - XTAS resource identifier
71     * @return Statement object
72     */

73    Statement drop(String JavaDoc resource) throws InvalidStatementException;
74
75    /**
76     * Select statement helper
77     * @param match - XPath expression
78     * @param source - XTAS resource identifier for query source
79     * @param destination - XTAS resource identifier for query destination
80     * @return Statement object
81     */

82    Statement select(String JavaDoc match, String JavaDoc source, String JavaDoc destination) throws InvalidStatementException;
83
84     /**
85      * Select statement helper
86      * @param match - XPath expression
87      * @param resource - XTAS resource identifier (will be used for both source and destination)
88      * @return Statement object
89      */

90    Statement select(String JavaDoc match, String JavaDoc resource) throws InvalidStatementException;
91
92    /**
93     * Select statement helper
94     * @param match - XPath expression
95     * @return Statement object
96     */

97    Statement select(String JavaDoc match) throws InvalidStatementException;
98
99    /**
100     * Update statement helper
101     * @param match - XPath expression
102     * @param source - XTAS resource identifier for query source
103     * @param destination - XTAS resource identifier for query destination
104     * @param value - new node(set) value
105     * @return Statement object
106     */

107    Statement update(String JavaDoc match, String JavaDoc source, String JavaDoc destination, XMLData value) throws InvalidStatementException;
108
109    /**
110     * Update statement helper
111     * @param match - XPath expression
112     * @param resource - XTAS resource identifier (will be used for both source and destination)
113     * @param value - new node(set) value
114     * @return Statement object
115     */

116    Statement update(String JavaDoc match, String JavaDoc resource, XMLData value) throws InvalidStatementException;
117
118    /**
119     * Update statement helper
120     * @param match - XPath expression
121     * @param value - new node(set) value
122     * @return Statement object
123     */

124    Statement update(String JavaDoc match, XMLData value) throws InvalidStatementException;
125 }
126
Popular Tags