KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mockobjects > atg > MockRepositoryView


1 package com.mockobjects.atg;
2 import atg.repository.*;/**
3  * Creation date: (06/04/2001 09:59:28)
4  * @author:
5  */

6 public class MockRepositoryView implements RepositoryView {
7     private MockQueryBuilder queryBuilder;
8     private MockRepositoryItem[] repositoryItems;
9
10     /**
11      * MockRepositoryView constructor comment.
12      */

13     public MockRepositoryView() {
14         super();
15     }
16
17     /**
18      * executeCountQuery method comment.
19      */

20     public int executeCountQuery(Query arg1) throws RepositoryException {
21         return 0;
22     }
23
24     /**
25      * executeQuery method comment.
26      */

27     public atg.repository.RepositoryItem[] executeQuery(Query arg1) throws RepositoryException {
28         return this.repositoryItems;
29     }
30
31     /**
32      * executeQuery method comment.
33      */

34     public atg.repository.RepositoryItem[] executeQuery(Query arg1, int arg2) throws RepositoryException {
35         return this.repositoryItems;
36     }
37
38     /**
39      * executeQuery method comment.
40      */

41     public atg.repository.RepositoryItem[] executeQuery(Query arg1, int arg2, int arg3) throws RepositoryException {
42         return this.repositoryItems;
43     }
44
45     /**
46      * executeQuery method comment.
47      */

48     public atg.repository.RepositoryItem[] executeQuery(Query arg1, int arg2, int arg3, SortDirectives arg4) throws RepositoryException {
49         return this.repositoryItems;
50     }
51
52     /**
53      * executeQuery method comment.
54      */

55     public atg.repository.RepositoryItem[] executeQuery(Query arg1, int arg2, SortDirectives arg3) throws RepositoryException {
56         return this.repositoryItems;
57     }
58
59     /**
60      * executeQuery method comment.
61      */

62     public atg.repository.RepositoryItem[] executeQuery(Query arg1, QueryOptions arg2) throws RepositoryException {
63         return this.repositoryItems;
64     }
65
66     /**
67      * executeQuery method comment.
68      */

69     public atg.repository.RepositoryItem[] executeQuery(Query arg1, SortDirectives arg2) throws RepositoryException {
70         return this.repositoryItems;
71     }
72
73     /**
74      * getItemDescriptor method comment.
75      */

76     public RepositoryItemDescriptor getItemDescriptor() throws RepositoryException {
77         return null;
78     }
79
80     /**
81      * getQueryBuilder method comment.
82      */

83     public QueryBuilder getQueryBuilder() {
84         return this.queryBuilder;
85     }
86
87     /**
88      * getViewName method comment.
89      */

90     public String JavaDoc getViewName() {
91         return null;
92     }
93
94     /**
95      * getQueryBuilder method comment.
96      */

97     public void setupQueryBuilder(MockQueryBuilder queryBuilder) {
98         this.queryBuilder = queryBuilder;
99     }
100
101     /**
102      * getQueryBuilder method comment.
103      */

104     public void setupRepositoryItems(MockRepositoryItem[] items) {
105         this.repositoryItems = items;
106     }
107 }
Popular Tags