|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
ScrollableResultsWrapper.java | - | 0% | 0% | 0% |
|
1 |
/*
|
|
2 |
* Joey and its relative products are published under the terms
|
|
3 |
* of the Apache Software License.
|
|
4 |
*/
|
|
5 |
/*
|
|
6 |
* Created on 2004/02/29
|
|
7 |
*/
|
|
8 |
package org.asyrinx.brownie.hibernate.wrapper;
|
|
9 |
|
|
10 |
import java.math.BigDecimal;
|
|
11 |
import java.sql.Blob;
|
|
12 |
import java.sql.Clob;
|
|
13 |
import java.util.Calendar;
|
|
14 |
import java.util.Date;
|
|
15 |
import java.util.Locale;
|
|
16 |
import java.util.TimeZone;
|
|
17 |
|
|
18 |
import net.sf.hibernate.HibernateException;
|
|
19 |
import net.sf.hibernate.ScrollableResults;
|
|
20 |
import net.sf.hibernate.type.Type;
|
|
21 |
|
|
22 |
/**
|
|
23 |
* @author akima
|
|
24 |
*/
|
|
25 |
public class ScrollableResultsWrapper implements ScrollableResults { |
|
26 |
|
|
27 |
/**
|
|
28 |
*
|
|
29 |
*/
|
|
30 | 0 |
public ScrollableResultsWrapper(ScrollableResults wrapped) {
|
31 | 0 |
super();
|
32 | 0 |
this.wrapped = wrapped;
|
33 |
} |
|
34 |
|
|
35 |
protected final ScrollableResults wrapped;
|
|
36 |
|
|
37 |
/**
|
|
38 |
* @throws net.sf.hibernate.HibernateException
|
|
39 |
*/
|
|
40 | 0 |
public void afterLast() throws HibernateException { |
41 | 0 |
wrapped.afterLast(); |
42 |
} |
|
43 |
|
|
44 |
/**
|
|
45 |
* @throws net.sf.hibernate.HibernateException
|
|
46 |
*/
|
|
47 | 0 |
public void beforeFirst() throws HibernateException { |
48 | 0 |
wrapped.beforeFirst(); |
49 |
} |
|
50 |
|
|
51 |
/**
|
|
52 |
* @throws net.sf.hibernate.HibernateException
|
|
53 |
*/
|
|
54 | 0 |
public void close() throws HibernateException { |
55 | 0 |
wrapped.close(); |
56 |
} |
|
57 |
|
|
58 |
/**
|
|
59 |
* @return @throws
|
|
60 |
* net.sf.hibernate.HibernateException
|
|
61 |
*/
|
|
62 | 0 |
public boolean first() throws HibernateException { |
63 | 0 |
return wrapped.first();
|
64 |
} |
|
65 |
|
|
66 |
/**
|
|
67 |
* @return @throws
|
|
68 |
* net.sf.hibernate.HibernateException
|
|
69 |
*/
|
|
70 | 0 |
public Object[] get() throws HibernateException { |
71 | 0 |
return wrapped.get();
|
72 |
} |
|
73 |
|
|
74 |
/**
|
|
75 |
* @param i
|
|
76 |
* @return @throws
|
|
77 |
* net.sf.hibernate.HibernateException
|
|
78 |
*/
|
|
79 | 0 |
public Object get(int i) throws HibernateException { |
80 | 0 |
return wrapped.get(i);
|
81 |
} |
|
82 |
|
|
83 |
/**
|
|
84 |
* @param i
|
|
85 |
* @param type
|
|
86 |
* @return @throws
|
|
87 |
* net.sf.hibernate.HibernateException
|
|
88 |
*/
|
|
89 | 0 |
public Object get(int i, Type type) throws HibernateException { |
90 | 0 |
return wrapped.get(i, type);
|
91 |
} |
|
92 |
|
|
93 |
/**
|
|
94 |
* @param col
|
|
95 |
* @return @throws
|
|
96 |
* net.sf.hibernate.HibernateException
|
|
97 |
*/
|
|
98 | 0 |
public BigDecimal getBigDecimal(int col) throws HibernateException { |
99 | 0 |
return wrapped.getBigDecimal(col);
|
100 |
} |
|
101 |
|
|
102 |
/**
|
|
103 |
* @param col
|
|
104 |
* @return @throws
|
|
105 |
* net.sf.hibernate.HibernateException
|
|
106 |
*/
|
|
107 | 0 |
public byte[] getBinary(int col) throws HibernateException { |
108 | 0 |
return wrapped.getBinary(col);
|
109 |
} |
|
110 |
|
|
111 |
/**
|
|
112 |
* @param col
|
|
113 |
* @return @throws
|
|
114 |
* net.sf.hibernate.HibernateException
|
|
115 |
*/
|
|
116 | 0 |
public Blob getBlob(int col) throws HibernateException { |
117 | 0 |
return wrapped.getBlob(col);
|
118 |
} |
|
119 |
|
|
120 |
/**
|
|
121 |
* @param col
|
|
122 |
* @return @throws
|
|
123 |
* net.sf.hibernate.HibernateException
|
|
124 |
*/
|
|
125 | 0 |
public Boolean getBoolean(int col) throws HibernateException { |
126 | 0 |
return wrapped.getBoolean(col);
|
127 |
} |
|
128 |
|
|
129 |
/**
|
|
130 |
* @param col
|
|
131 |
* @return @throws
|
|
132 |
* net.sf.hibernate.HibernateException
|
|
133 |
*/
|
|
134 | 0 |
public Byte getByte(int col) throws HibernateException { |
135 | 0 |
return wrapped.getByte(col);
|
136 |
} |
|
137 |
|
|
138 |
/**
|
|
139 |
* @param col
|
|
140 |
* @return @throws
|
|
141 |
* net.sf.hibernate.HibernateException
|
|
142 |
*/
|
|
143 | 0 |
public Calendar getCalendar(int col) throws HibernateException { |
144 | 0 |
return wrapped.getCalendar(col);
|
145 |
} |
|
146 |
|
|
147 |
/**
|
|
148 |
* @param col
|
|
149 |
* @return @throws
|
|
150 |
* net.sf.hibernate.HibernateException
|
|
151 |
*/
|
|
152 | 0 |
public Character getCharacter(int col) throws HibernateException { |
153 | 0 |
return wrapped.getCharacter(col);
|
154 |
} |
|
155 |
|
|
156 |
/**
|
|
157 |
* @param col
|
|
158 |
* @return @throws
|
|
159 |
* net.sf.hibernate.HibernateException
|
|
160 |
*/
|
|
161 | 0 |
public Clob getClob(int col) throws HibernateException { |
162 | 0 |
return wrapped.getClob(col);
|
163 |
} |
|
164 |
|
|
165 |
/**
|
|
166 |
* @param col
|
|
167 |
* @return @throws
|
|
168 |
* net.sf.hibernate.HibernateException
|
|
169 |
*/
|
|
170 | 0 |
public Date getDate(int col) throws HibernateException { |
171 | 0 |
return wrapped.getDate(col);
|
172 |
} |
|
173 |
|
|
174 |
/**
|
|
175 |
* @param col
|
|
176 |
* @return @throws
|
|
177 |
* net.sf.hibernate.HibernateException
|
|
178 |
*/
|
|
179 | 0 |
public Double getDouble(int col) throws HibernateException { |
180 | 0 |
return wrapped.getDouble(col);
|
181 |
} |
|
182 |
|
|
183 |
/**
|
|
184 |
* @param col
|
|
185 |
* @return @throws
|
|
186 |
* net.sf.hibernate.HibernateException
|
|
187 |
*/
|
|
188 | 0 |
public Float getFloat(int col) throws HibernateException { |
189 | 0 |
return wrapped.getFloat(col);
|
190 |
} |
|
191 |
|
|
192 |
/**
|
|
193 |
* @param col
|
|
194 |
* @return @throws
|
|
195 |
* net.sf.hibernate.HibernateException
|
|
196 |
*/
|
|
197 | 0 |
public Integer getInteger(int col) throws HibernateException { |
198 | 0 |
return wrapped.getInteger(col);
|
199 |
} |
|
200 |
|
|
201 |
/**
|
|
202 |
* @param col
|
|
203 |
* @return @throws
|
|
204 |
* net.sf.hibernate.HibernateException
|
|
205 |
*/
|
|
206 | 0 |
public Locale getLocale(int col) throws HibernateException { |
207 | 0 |
return wrapped.getLocale(col);
|
208 |
} |
|
209 |
|
|
210 |
/**
|
|
211 |
* @param col
|
|
212 |
* @return @throws
|
|
213 |
* net.sf.hibernate.HibernateException
|
|
214 |
*/
|
|
215 | 0 |
public Long getLong(int col) throws HibernateException { |
216 | 0 |
return wrapped.getLong(col);
|
217 |
} |
|
218 |
|
|
219 |
/**
|
|
220 |
* @return @throws
|
|
221 |
* net.sf.hibernate.HibernateException
|
|
222 |
*/
|
|
223 | 0 |
public int getRowNumber() throws HibernateException { |
224 | 0 |
return wrapped.getRowNumber();
|
225 |
} |
|
226 |
|
|
227 |
/**
|
|
228 |
* @param col
|
|
229 |
* @return @throws
|
|
230 |
* net.sf.hibernate.HibernateException
|
|
231 |
*/
|
|
232 | 0 |
public Short getShort(int col) throws HibernateException { |
233 | 0 |
return wrapped.getShort(col);
|
234 |
} |
|
235 |
|
|
236 |
/**
|
|
237 |
* @param col
|
|
238 |
* @return @throws
|
|
239 |
* net.sf.hibernate.HibernateException
|
|
240 |
*/
|
|
241 | 0 |
public String getString(int col) throws HibernateException { |
242 | 0 |
return wrapped.getString(col);
|
243 |
} |
|
244 |
|
|
245 |
/**
|
|
246 |
* @param col
|
|
247 |
* @return @throws
|
|
248 |
* net.sf.hibernate.HibernateException
|
|
249 |
*/
|
|
250 | 0 |
public String getText(int col) throws HibernateException { |
251 | 0 |
return wrapped.getText(col);
|
252 |
} |
|
253 |
|
|
254 |
/**
|
|
255 |
* @param col
|
|
256 |
* @return @throws
|
|
257 |
* net.sf.hibernate.HibernateException
|
|
258 |
*/
|
|
259 | 0 |
public TimeZone getTimeZone(int col) throws HibernateException { |
260 | 0 |
return wrapped.getTimeZone(col);
|
261 |
} |
|
262 |
|
|
263 |
/**
|
|
264 |
* @param i
|
|
265 |
* @return
|
|
266 |
*/
|
|
267 | 0 |
public Type getType(int i) { |
268 | 0 |
return wrapped.getType(i);
|
269 |
} |
|
270 |
|
|
271 |
/**
|
|
272 |
* @return @throws
|
|
273 |
* net.sf.hibernate.HibernateException
|
|
274 |
*/
|
|
275 | 0 |
public boolean isFirst() throws HibernateException { |
276 | 0 |
return wrapped.isFirst();
|
277 |
} |
|
278 |
|
|
279 |
/**
|
|
280 |
* @return @throws
|
|
281 |
* net.sf.hibernate.HibernateException
|
|
282 |
*/
|
|
283 | 0 |
public boolean isLast() throws HibernateException { |
284 | 0 |
return wrapped.isLast();
|
285 |
} |
|
286 |
|
|
287 |
/**
|
|
288 |
* @return @throws
|
|
289 |
* net.sf.hibernate.HibernateException
|
|
290 |
*/
|
|
291 | 0 |
public boolean last() throws HibernateException { |
292 | 0 |
return wrapped.last();
|
293 |
} |
|
294 |
|
|
295 |
/**
|
|
296 |
* @return @throws
|
|
297 |
* net.sf.hibernate.HibernateException
|
|
298 |
*/
|
|
299 | 0 |
public boolean next() throws HibernateException { |
300 | 0 |
return wrapped.next();
|
301 |
} |
|
302 |
|
|
303 |
/**
|
|
304 |
* @return @throws
|
|
305 |
* net.sf.hibernate.HibernateException
|
|
306 |
*/
|
|
307 | 0 |
public boolean previous() throws HibernateException { |
308 | 0 |
return wrapped.previous();
|
309 |
} |
|
310 |
|
|
311 |
/**
|
|
312 |
* @param i
|
|
313 |
* @return @throws
|
|
314 |
* net.sf.hibernate.HibernateException
|
|
315 |
*/
|
|
316 | 0 |
public boolean scroll(int i) throws HibernateException { |
317 | 0 |
return wrapped.scroll(i);
|
318 |
} |
|
319 |
|
|
320 |
/**
|
|
321 |
* @param rowNumber
|
|
322 |
* @return @throws
|
|
323 |
* net.sf.hibernate.HibernateException
|
|
324 |
*/
|
|
325 | 0 |
public boolean setRowNumber(int rowNumber) throws HibernateException { |
326 | 0 |
return wrapped.setRowNumber(rowNumber);
|
327 |
} |
|
328 |
|
|
329 |
} |
|