1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kew.impl.document.search; |
17 | |
|
18 | |
import org.kuali.rice.core.api.uif.RemotableAttributeError; |
19 | |
import org.kuali.rice.core.api.uif.RemotableAttributeField; |
20 | |
import org.kuali.rice.kew.api.document.search.DocumentSearchCriteria; |
21 | |
import org.kuali.rice.kew.api.document.search.DocumentSearchResults; |
22 | |
|
23 | |
import java.sql.ResultSet; |
24 | |
import java.sql.SQLException; |
25 | |
import java.sql.Statement; |
26 | |
import java.util.List; |
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
public interface DocumentSearchGenerator { |
35 | |
|
36 | |
List<RemotableAttributeError> validateSearchableAttributes(DocumentSearchCriteria.Builder criteria); |
37 | |
|
38 | |
String generateSearchSql(DocumentSearchCriteria criteria, List<RemotableAttributeField> searchFields); |
39 | |
|
40 | |
DocumentSearchResults.Builder processResultSet(DocumentSearchCriteria criteria, boolean criteriaModified, Statement searchAttributeStatement, ResultSet resultSet, int actualMaxResults, int fetchLimit) throws SQLException; |
41 | |
|
42 | |
DocumentSearchCriteria clearSearch(DocumentSearchCriteria criteria); |
43 | |
|
44 | |
} |