1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.myfaces.trinidad.model;
20
21 import java.util.List;
22
23
24
25
26
27
28
29
30
31
32
33
34 public abstract class CollectionModelDecorator
35 extends CollectionModel
36 {
37 public Object getRowKey()
38 {
39 return getCollectionModel().getRowKey();
40 }
41
42 public void setRowKey(Object key)
43 {
44 getCollectionModel().setRowKey(key);
45 }
46
47 public boolean isRowAvailable(int rowIndex)
48 {
49 return getCollectionModel().isRowAvailable(rowIndex);
50 }
51
52 public boolean isRowAvailable(Object rowKey)
53 {
54 return getCollectionModel().isRowAvailable(rowKey);
55 }
56
57 public Object getRowData(int rowIndex)
58 {
59 return getCollectionModel().getRowData(rowIndex);
60 }
61
62 public Object getRowData(Object rowKey)
63 {
64 return getCollectionModel().getRowData(rowKey);
65 }
66
67 public boolean isSortable(String property)
68 {
69 return getCollectionModel().isSortable(property);
70 }
71
72 public List<SortCriterion> getSortCriteria()
73 {
74 return getCollectionModel().getSortCriteria();
75 }
76
77 public void setSortCriteria(List<SortCriterion> criteria)
78 {
79 getCollectionModel().setSortCriteria(criteria);
80 }
81
82 public boolean areRowsAvailable(int startIndex, int rowCount)
83 {
84 return getCollectionModel().areRowsAvailable(startIndex, rowCount);
85 }
86
87 public boolean areRowsAvailable(Object startRowKey, int rowCount)
88 {
89 return getCollectionModel().areRowsAvailable(startRowKey, rowCount);
90 }
91
92 public boolean areRowsAvailable(int rowCount)
93 {
94 return getCollectionModel().areRowsAvailable(rowCount);
95 }
96
97
98
99
100
101 public boolean areRowsLocallyAvailable(int startIndex, int rowCount)
102 {
103 return getCollectionModel().areRowsLocallyAvailable(startIndex, rowCount);
104 }
105
106 public boolean areRowsLocallyAvailable(Object startRowKey, int rowCount)
107 {
108 return getCollectionModel().areRowsLocallyAvailable(startRowKey, rowCount);
109 }
110
111 public boolean areRowsLocallyAvailable(int rowCount)
112 {
113 return getCollectionModel().areRowsLocallyAvailable(rowCount);
114 }
115
116 public boolean isRowLocallyAvailable(int rowIndex)
117 {
118 return getCollectionModel().isRowLocallyAvailable(rowIndex);
119 }
120
121 public boolean isRowLocallyAvailable(Object rowKey)
122 {
123 return getCollectionModel().isRowLocallyAvailable(rowKey);
124 }
125
126 public int getEstimatedRowCount()
127 {
128 return getCollectionModel().getEstimatedRowCount();
129 }
130
131 public LocalRowKeyIndex.Confidence getEstimatedRowCountConfidence()
132 {
133 return getCollectionModel().getEstimatedRowCountConfidence();
134 }
135
136
137
138
139 public void clearLocalCache()
140 {
141 getCollectionModel().clearLocalCache();
142 }
143
144
145
146
147
148
149 public void clearCachedRows(int startingIndex, int rowsToClear)
150 {
151 getCollectionModel().clearCachedRows(startingIndex, rowsToClear);
152 }
153
154
155
156
157
158
159 public void clearCachedRows(Object startingRowKey, int rowsToClear)
160 {
161 getCollectionModel().clearCachedRows(startingRowKey, rowsToClear);
162 }
163
164
165
166
167
168 public void clearCachedRow(int index)
169 {
170 getCollectionModel().clearCachedRow(index);
171 }
172
173
174
175
176
177 public void clearCachedRow(Object rowKey)
178 {
179 getCollectionModel().clearCachedRow(rowKey);
180 }
181
182
183
184
185
186
187 public LocalRowKeyIndex.LocalCachingStrategy getCachingStrategy()
188 {
189 return getCollectionModel().getCachingStrategy();
190 }
191
192
193
194
195 public boolean isRowAvailable()
196 {
197 return getCollectionModel().isRowAvailable();
198 }
199
200 public int getRowCount()
201 {
202 return getCollectionModel().getRowCount();
203 }
204
205 public Object getRowData()
206 {
207 return getCollectionModel().getRowData();
208 }
209
210 public int getRowIndex()
211 {
212 return getCollectionModel().getRowIndex();
213 }
214
215 public void setRowIndex(int i)
216 {
217 getCollectionModel().setRowIndex(i);
218 }
219
220 public Object getWrappedData()
221 {
222 return getCollectionModel().getWrappedData();
223 }
224
225 public void setWrappedData(Object object)
226 {
227 getCollectionModel().setWrappedData(object);
228 }
229
230 public void addDataModelListener(javax.faces.model.DataModelListener listener)
231 {
232 getCollectionModel().addDataModelListener(listener);
233 }
234
235 public javax.faces.model.DataModelListener[] getDataModelListeners()
236 {
237 return getCollectionModel().getDataModelListeners();
238 }
239
240 public void removeDataModelListener(javax.faces.model.DataModelListener listener)
241 {
242 getCollectionModel().removeDataModelListener(listener);
243 }
244
245
246
247
248
249
250 protected abstract CollectionModel getCollectionModel();
251 }
252