Clover coverage report - brownies library - 1.0-beta-1 Coverage timestamp: 月 8 16 2004 17:14:42 GMT+09:00 FRAMES NO FRAMES |
file stats: | LOC: | 290 |  | Methods: | 35
| NCLOC: | 131 |  | Classes: | 1
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
LogScrollableResults.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.logger;
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 |  |
     import org.asyrinx.brownie.core.log.CascadeNamedLog;
23 |  |
     import org.asyrinx.brownie.hibernate.wrapper.ScrollableResultsWrapper;
24 |  |
25 |  |
     /**
26 |  |
      * @author akima
27 |  |
      */
28 |  |
     public class LogScrollableResults extends ScrollableResultsWrapper {
29 |  |
30 |  |
         /**
31 |  |
          * @param wrapped
32 |  |
          * @param log
33 |  |
          */
34 | 0 |
         public LogScrollableResults(ScrollableResults wrapped,
35 |  |
                 CascadeNamedLog parentLog) {
36 | 0 |
             super(wrapped);
37 | 0 |
             this.log = parentLog.subLog(wrapped);
38 |  |
         }
39 |  |
40 |  |
         protected final CascadeNamedLog log;
41 |  |
42 |  |
         /**
43 |  |
          * @see net.sf.hibernate.ScrollableResults#afterLast()
44 |  |
          */
45 | 0 |
         public void afterLast() throws HibernateException {
46 | 0 |
             log.log("afterLast()");
47 | 0 |
             super.afterLast();
48 |  |
         }
49 |  |
50 |  |
         /**
51 |  |
          * @see net.sf.hibernate.ScrollableResults#beforeFirst()
52 |  |
          */
53 | 0 |
         public void beforeFirst() throws HibernateException {
54 | 0 |
             log.log("beforeFirst()");
55 | 0 |
             super.beforeFirst();
56 |  |
         }
57 |  |
58 |  |
         /**
59 |  |
          * @see net.sf.hibernate.ScrollableResults#close()
60 |  |
          */
61 | 0 |
         public void close() throws HibernateException {
62 | 0 |
             log.log("close()");
63 | 0 |
             super.close();
64 |  |
         }
65 |  |
66 |  |
         /**
67 |  |
          * @see net.sf.hibernate.ScrollableResults#first()
68 |  |
          */
69 | 0 |
         public boolean first() throws HibernateException {
70 | 0 |
             log.log("first()");
71 | 0 |
             return super.first();
72 |  |
         }
73 |  |
74 |  |
         /**
75 |  |
          * @see net.sf.hibernate.ScrollableResults#get()
76 |  |
          */
77 | 0 |
         public Object[] get() throws HibernateException {
78 | 0 |
             return super.get();
79 |  |
         }
80 |  |
81 |  |
         /**
82 |  |
          * @see net.sf.hibernate.ScrollableResults#get(int,
83 |  |
          *      net.sf.hibernate.type.Type)
84 |  |
          */
85 | 0 |
         public Object get(int i, Type type) throws HibernateException {
86 | 0 |
             return super.get(i, type);
87 |  |
         }
88 |  |
89 |  |
         /**
90 |  |
          * @see net.sf.hibernate.ScrollableResults#get(int)
91 |  |
          */
92 | 0 |
         public Object get(int i) throws HibernateException {
93 | 0 |
             return super.get(i);
94 |  |
         }
95 |  |
96 |  |
         /**
97 |  |
          * @see net.sf.hibernate.ScrollableResults#getBigDecimal(int)
98 |  |
          */
99 | 0 |
         public BigDecimal getBigDecimal(int col) throws HibernateException {
100 | 0 |
             return super.getBigDecimal(col);
101 |  |
         }
102 |  |
103 |  |
         /**
104 |  |
          * @see net.sf.hibernate.ScrollableResults#getBinary(int)
105 |  |
          */
106 | 0 |
         public byte[] getBinary(int col) throws HibernateException {
107 | 0 |
             return super.getBinary(col);
108 |  |
         }
109 |  |
110 |  |
         /**
111 |  |
          * @see net.sf.hibernate.ScrollableResults#getBlob(int)
112 |  |
          */
113 | 0 |
         public Blob getBlob(int col) throws HibernateException {
114 | 0 |
             return super.getBlob(col);
115 |  |
         }
116 |  |
117 |  |
         /**
118 |  |
          * @see net.sf.hibernate.ScrollableResults#getBoolean(int)
119 |  |
          */
120 | 0 |
         public Boolean getBoolean(int col) throws HibernateException {
121 | 0 |
             return super.getBoolean(col);
122 |  |
         }
123 |  |
124 |  |
         /**
125 |  |
          * @see net.sf.hibernate.ScrollableResults#getByte(int)
126 |  |
          */
127 | 0 |
         public Byte getByte(int col) throws HibernateException {
128 | 0 |
             return super.getByte(col);
129 |  |
         }
130 |  |
131 |  |
         /**
132 |  |
          * @see net.sf.hibernate.ScrollableResults#getCalendar(int)
133 |  |
          */
134 | 0 |
         public Calendar getCalendar(int col) throws HibernateException {
135 | 0 |
             return super.getCalendar(col);
136 |  |
         }
137 |  |
138 |  |
         /**
139 |  |
          * @see net.sf.hibernate.ScrollableResults#getCharacter(int)
140 |  |
          */
141 | 0 |
         public Character getCharacter(int col) throws HibernateException {
142 | 0 |
             return super.getCharacter(col);
143 |  |
         }
144 |  |
145 |  |
         /**
146 |  |
          * @see net.sf.hibernate.ScrollableResults#getClob(int)
147 |  |
          */
148 | 0 |
         public Clob getClob(int col) throws HibernateException {
149 | 0 |
             return super.getClob(col);
150 |  |
         }
151 |  |
152 |  |
         /**
153 |  |
          * @see net.sf.hibernate.ScrollableResults#getDate(int)
154 |  |
          */
155 | 0 |
         public Date getDate(int col) throws HibernateException {
156 | 0 |
             return super.getDate(col);
157 |  |
         }
158 |  |
159 |  |
         /**
160 |  |
          * @see net.sf.hibernate.ScrollableResults#getDouble(int)
161 |  |
          */
162 | 0 |
         public Double getDouble(int col) throws HibernateException {
163 | 0 |
             return super.getDouble(col);
164 |  |
         }
165 |  |
166 |  |
         /**
167 |  |
          * @see net.sf.hibernate.ScrollableResults#getFloat(int)
168 |  |
          */
169 | 0 |
         public Float getFloat(int col) throws HibernateException {
170 | 0 |
             return super.getFloat(col);
171 |  |
         }
172 |  |
173 |  |
         /**
174 |  |
          * @see net.sf.hibernate.ScrollableResults#getInteger(int)
175 |  |
          */
176 | 0 |
         public Integer getInteger(int col) throws HibernateException {
177 | 0 |
             return super.getInteger(col);
178 |  |
         }
179 |  |
180 |  |
         /**
181 |  |
          * @see net.sf.hibernate.ScrollableResults#getLocale(int)
182 |  |
          */
183 | 0 |
         public Locale getLocale(int col) throws HibernateException {
184 | 0 |
             return super.getLocale(col);
185 |  |
         }
186 |  |
187 |  |
         /**
188 |  |
          * @see net.sf.hibernate.ScrollableResults#getLong(int)
189 |  |
          */
190 | 0 |
         public Long getLong(int col) throws HibernateException {
191 | 0 |
             return super.getLong(col);
192 |  |
         }
193 |  |
194 |  |
         /**
195 |  |
          * @see net.sf.hibernate.ScrollableResults#getRowNumber()
196 |  |
          */
197 | 0 |
         public int getRowNumber() throws HibernateException {
198 | 0 |
             return super.getRowNumber();
199 |  |
         }
200 |  |
201 |  |
         /**
202 |  |
          * @see net.sf.hibernate.ScrollableResults#getShort(int)
203 |  |
          */
204 | 0 |
         public Short getShort(int col) throws HibernateException {
205 | 0 |
             return super.getShort(col);
206 |  |
         }
207 |  |
208 |  |
         /**
209 |  |
          * @see net.sf.hibernate.ScrollableResults#getString(int)
210 |  |
          */
211 | 0 |
         public String getString(int col) throws HibernateException {
212 | 0 |
             return super.getString(col);
213 |  |
         }
214 |  |
215 |  |
         /**
216 |  |
          * @see net.sf.hibernate.ScrollableResults#getText(int)
217 |  |
          */
218 | 0 |
         public String getText(int col) throws HibernateException {
219 | 0 |
             return super.getText(col);
220 |  |
         }
221 |  |
222 |  |
         /**
223 |  |
          * @see net.sf.hibernate.ScrollableResults#getTimeZone(int)
224 |  |
          */
225 | 0 |
         public TimeZone getTimeZone(int col) throws HibernateException {
226 | 0 |
             return super.getTimeZone(col);
227 |  |
         }
228 |  |
229 |  |
         /**
230 |  |
          * @see net.sf.hibernate.ScrollableResults#getType(int)
231 |  |
          */
232 | 0 |
         public Type getType(int i) {
233 | 0 |
             return super.getType(i);
234 |  |
         }
235 |  |
236 |  |
         /**
237 |  |
          * @see net.sf.hibernate.ScrollableResults#isFirst()
238 |  |
          */
239 | 0 |
         public boolean isFirst() throws HibernateException {
240 | 0 |
             return super.isFirst();
241 |  |
         }
242 |  |
243 |  |
         /**
244 |  |
          * @see net.sf.hibernate.ScrollableResults#isLast()
245 |  |
          */
246 | 0 |
         public boolean isLast() throws HibernateException {
247 | 0 |
             return super.isLast();
248 |  |
         }
249 |  |
250 |  |
         /**
251 |  |
          * @see net.sf.hibernate.ScrollableResults#last()
252 |  |
          */
253 | 0 |
         public boolean last() throws HibernateException {
254 | 0 |
             log.log("last()");
255 | 0 |
             return super.last();
256 |  |
         }
257 |  |
258 |  |
         /**
259 |  |
          * @see net.sf.hibernate.ScrollableResults#next()
260 |  |
          */
261 | 0 |
         public boolean next() throws HibernateException {
262 | 0 |
             log.log("next()");
263 | 0 |
             return super.next();
264 |  |
         }
265 |  |
266 |  |
         /**
267 |  |
          * @see net.sf.hibernate.ScrollableResults#previous()
268 |  |
          */
269 | 0 |
         public boolean previous() throws HibernateException {
270 | 0 |
             log.log("previous()");
271 | 0 |
             return super.previous();
272 |  |
         }
273 |  |
274 |  |
         /**
275 |  |
          * @see net.sf.hibernate.ScrollableResults#scroll(int)
276 |  |
          */
277 | 0 |
         public boolean scroll(int i) throws HibernateException {
278 | 0 |
             log.log("scroll(" + i + ")");
279 | 0 |
             return super.scroll(i);
280 |  |
         }
281 |  |
282 |  |
         /**
283 |  |
          * @see net.sf.hibernate.ScrollableResults#setRowNumber(int)
284 |  |
          */
285 | 0 |
         public boolean setRowNumber(int rowNumber) throws HibernateException {
286 | 0 |
             log.log("setRowNumber(" + rowNumber + ")");
287 | 0 |
             return super.setRowNumber(rowNumber);
288 |  |
         }
289 |  |
290 |  |
     }