/home/mario/oci/jnb/dataaccess/source/test/java/net/sf/hibernate/MockSession.java

1    /** 
2     * This software program, Simple Data Access Layer (SDAL), is copyrighted by Object 
3     * Computing inc of St. Louis MO USA. It is provided under the open-source model 
4     * and is free of license fees. You are free to modify this code for your own use 
5     * but you may not claim copyright. 
6     * 
7     * Since SDAL is open source and free of licensing fees, you are free to use, 
8     * modify, and distribute the source code, as long as you include this copyright 
9     * statement. 
10    * 
11    * In particular, you can use SDAL to build proprietary software and are under no 
12    * obligation to redistribute any of your source code that is built using SDAL. 
13    * Note, however, that you may not do anything to the SDAL code, such as 
14    * copyrighting it yourself or claiming authorship of the SDAL code, that will 
15    * prevent SDAL from being distributed freely using an open source development 
16    * model. 
17    * 
18    * Warranty 
19    * LICENSED PRODUCT, SDAL, IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 
20    * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE, 
21    * NONINFRINGEMENT, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. 
22    * 
23    * Support 
24    * LICENSED PRODUCT, SDAL, IS PROVIDED WITH NO SUPPORT AND WITHOUT ANY OBLIGATION ON THE 
25    * PART OF OCI OR ANY OF ITS SUBSIDIARIES OR AFFILIATES TO ASSIST IN ITS USE, 
26    * CORRECTION, MODIFICATION OR ENHANCEMENT. 
27    * 
28    * Support may be available from OCI to users who have agreed to a support 
29    * contract. 
30    * 
31    * Liability 
32    * OCI OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH 
33    * RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY 
34    * LICENSED PRODUCT OR ANY PART THEREOF. 
35    * 
36    * IN NO EVENT WILL OCI OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR ANY 
37    * LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL DAMAGES, 
38    * EVEN IF OCI HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 
39    * 
40    * Copyright OCI. St. Louis MO USA, 2004 
41    * 
42    */ 
43   package net.sf.hibernate; 
44    
45   public class MockSession implements Session { 
46    
47       public boolean flushCalled; 
48       public Throwable flushException; 
49       public void flush() throws net.sf.hibernate.HibernateException { 
50           flushCalled = true; 
51           if (flushException != null) { 
52               if (flushException instanceof net.sf.hibernate.HibernateException) 
53                   throw (net.sf.hibernate.HibernateException) flushException; 
54               if (flushException instanceof java.lang.RuntimeException) 
55                   throw (java.lang.RuntimeException) flushException; 
56               if (flushException instanceof java.lang.Error) 
57                   throw (java.lang.Error) flushException; 
58               throw new RuntimeException(); 
59           } 
60       } 
61    
62       public boolean setFlushModeCalled; 
63       public Throwable setFlushModeException; 
64       public net.sf.hibernate.FlushMode setFlushModeFlushMode; 
65       public void setFlushMode(net.sf.hibernate.FlushMode flushMode) { 
66           setFlushModeCalled = true; 
67           this.setFlushModeFlushMode = flushMode; 
68           if (setFlushModeException != null) { 
69               if (setFlushModeException instanceof java.lang.RuntimeException) 
70                   throw (java.lang.RuntimeException) setFlushModeException; 
71               if (setFlushModeException instanceof java.lang.Error) 
72                   throw (java.lang.Error) setFlushModeException; 
73               throw new RuntimeException(); 
74           } 
75       } 
76    
77       public boolean getFlushModeCalled; 
78       public net.sf.hibernate.FlushMode getFlushModeReturn; 
79       public Throwable getFlushModeException; 
80       public net.sf.hibernate.FlushMode getFlushMode() { 
81           getFlushModeCalled = true; 
82           if (getFlushModeException != null) { 
83               if (getFlushModeException instanceof java.lang.RuntimeException) 
84                   throw (java.lang.RuntimeException) getFlushModeException; 
85               if (getFlushModeException instanceof java.lang.Error) 
86                   throw (java.lang.Error) getFlushModeException; 
87               throw new RuntimeException(); 
88           } 
89           return this.getFlushModeReturn; 
90       } 
91    
92       public boolean connectionCalled; 
93       public java.sql.Connection connectionReturn; 
94       public Throwable connectionException; 
95       public java.sql.Connection connection() throws net.sf.hibernate.HibernateException { 
96           connectionCalled = true; 
97           if (connectionException != null) { 
98               if (connectionException instanceof net.sf.hibernate.HibernateException) 
99                   throw (net.sf.hibernate.HibernateException) connectionException; 
100              if (connectionException instanceof java.lang.RuntimeException) 
101                  throw (java.lang.RuntimeException) connectionException; 
102              if (connectionException instanceof java.lang.Error) 
103                  throw (java.lang.Error) connectionException; 
104              throw new RuntimeException(); 
105          } 
106          return this.connectionReturn; 
107      } 
108   
109      public boolean disconnectCalled; 
110      public java.sql.Connection disconnectReturn; 
111      public Throwable disconnectException; 
112      public java.sql.Connection disconnect() throws net.sf.hibernate.HibernateException { 
113          disconnectCalled = true; 
114          if (disconnectException != null) { 
115              if (disconnectException instanceof net.sf.hibernate.HibernateException) 
116                  throw (net.sf.hibernate.HibernateException) disconnectException; 
117              if (disconnectException instanceof java.lang.RuntimeException) 
118                  throw (java.lang.RuntimeException) disconnectException; 
119              if (disconnectException instanceof java.lang.Error) 
120                  throw (java.lang.Error) disconnectException; 
121              throw new RuntimeException(); 
122          } 
123          return this.disconnectReturn; 
124      } 
125   
126      public boolean reconnectCalled; 
127      public Throwable reconnectException; 
128      public void reconnect() throws net.sf.hibernate.HibernateException { 
129          reconnectCalled = true; 
130          if (reconnectException != null) { 
131              if (reconnectException instanceof net.sf.hibernate.HibernateException) 
132                  throw (net.sf.hibernate.HibernateException) reconnectException; 
133              if (reconnectException instanceof java.lang.RuntimeException) 
134                  throw (java.lang.RuntimeException) reconnectException; 
135              if (reconnectException instanceof java.lang.Error) 
136                  throw (java.lang.Error) reconnectException; 
137              throw new RuntimeException(); 
138          } 
139      } 
140   
141      public boolean reconnect2Called; 
142      public Throwable reconnect2Exception; 
143      public java.sql.Connection reconnect2Connection; 
144      public void reconnect(java.sql.Connection connection) throws net.sf.hibernate.HibernateException { 
145          reconnect2Called = true; 
146          this.reconnect2Connection = connection; 
147          if (reconnect2Exception != null) { 
148              if (reconnect2Exception instanceof net.sf.hibernate.HibernateException) 
149                  throw (net.sf.hibernate.HibernateException) reconnect2Exception; 
150              if (reconnect2Exception instanceof java.lang.RuntimeException) 
151                  throw (java.lang.RuntimeException) reconnect2Exception; 
152              if (reconnect2Exception instanceof java.lang.Error) 
153                  throw (java.lang.Error) reconnect2Exception; 
154              throw new RuntimeException(); 
155          } 
156      } 
157   
158      public boolean closeCalled; 
159      public java.sql.Connection closeReturn; 
160      public Throwable closeException; 
161      public java.sql.Connection close() throws net.sf.hibernate.HibernateException { 
162          closeCalled = true; 
163          if (closeException != null) { 
164              if (closeException instanceof net.sf.hibernate.HibernateException) 
165                  throw (net.sf.hibernate.HibernateException) closeException; 
166              if (closeException instanceof java.lang.RuntimeException) 
167                  throw (java.lang.RuntimeException) closeException; 
168              if (closeException instanceof java.lang.Error) 
169                  throw (java.lang.Error) closeException; 
170              throw new RuntimeException(); 
171          } 
172          return this.closeReturn; 
173      } 
174   
175      public boolean isOpenCalled; 
176      public boolean isOpenReturn; 
177      public Throwable isOpenException; 
178      public boolean isOpen() { 
179          isOpenCalled = true; 
180          if (isOpenException != null) { 
181              if (isOpenException instanceof java.lang.RuntimeException) 
182                  throw (java.lang.RuntimeException) isOpenException; 
183              if (isOpenException instanceof java.lang.Error) 
184                  throw (java.lang.Error) isOpenException; 
185              throw new RuntimeException(); 
186          } 
187          return this.isOpenReturn; 
188      } 
189   
190      public boolean isConnectedCalled; 
191      public boolean isConnectedReturn; 
192      public Throwable isConnectedException; 
193      public boolean isConnected() { 
194          isConnectedCalled = true; 
195          if (isConnectedException != null) { 
196              if (isConnectedException instanceof java.lang.RuntimeException) 
197                  throw (java.lang.RuntimeException) isConnectedException; 
198              if (isConnectedException instanceof java.lang.Error) 
199                  throw (java.lang.Error) isConnectedException; 
200              throw new RuntimeException(); 
201          } 
202          return this.isConnectedReturn; 
203      } 
204   
205      public boolean getIdentifierCalled; 
206      public java.io.Serializable getIdentifierReturn; 
207      public Throwable getIdentifierException; 
208      public java.lang.Object getIdentifierObject; 
209      public java.io.Serializable getIdentifier(java.lang.Object object) throws net.sf.hibernate.HibernateException { 
210          getIdentifierCalled = true; 
211          this.getIdentifierObject = object; 
212          if (getIdentifierException != null) { 
213              if (getIdentifierException instanceof net.sf.hibernate.HibernateException) 
214                  throw (net.sf.hibernate.HibernateException) getIdentifierException; 
215              if (getIdentifierException instanceof java.lang.RuntimeException) 
216                  throw (java.lang.RuntimeException) getIdentifierException; 
217              if (getIdentifierException instanceof java.lang.Error) 
218                  throw (java.lang.Error) getIdentifierException; 
219              throw new RuntimeException(); 
220          } 
221          return this.getIdentifierReturn; 
222      } 
223   
224      public boolean containsCalled; 
225      public boolean containsReturn; 
226      public Throwable containsException; 
227      public java.lang.Object containsObject; 
228      public boolean contains(java.lang.Object object) { 
229          containsCalled = true; 
230          this.containsObject = object; 
231          if (containsException != null) { 
232              if (containsException instanceof java.lang.RuntimeException) 
233                  throw (java.lang.RuntimeException) containsException; 
234              if (containsException instanceof java.lang.Error) 
235                  throw (java.lang.Error) containsException; 
236              throw new RuntimeException(); 
237          } 
238          return this.containsReturn; 
239      } 
240   
241      public boolean evictCalled; 
242      public Throwable evictException; 
243      public java.lang.Object evictObject; 
244      public void evict(java.lang.Object object) throws net.sf.hibernate.HibernateException { 
245          evictCalled = true; 
246          this.evictObject = object; 
247          if (evictException != null) { 
248              if (evictException instanceof net.sf.hibernate.HibernateException) 
249                  throw (net.sf.hibernate.HibernateException) evictException; 
250              if (evictException instanceof java.lang.RuntimeException) 
251                  throw (java.lang.RuntimeException) evictException; 
252              if (evictException instanceof java.lang.Error) 
253                  throw (java.lang.Error) evictException; 
254              throw new RuntimeException(); 
255          } 
256      } 
257   
258      public boolean loadCalled; 
259      public java.lang.Object loadReturn; 
260      public Throwable loadException; 
261      public java.lang.Class loadTheClass; 
262      public java.io.Serializable loadId; 
263      public net.sf.hibernate.LockMode loadLockMode; 
264      public java.lang.Object load(java.lang.Class theClass, java.io.Serializable id, net.sf.hibernate.LockMode lockMode) throws net.sf.hibernate.HibernateException { 
265          loadCalled = true; 
266          this.loadTheClass = theClass; 
267          this.loadId = id; 
268          this.loadLockMode = lockMode; 
269          if (loadException != null) { 
270              if (loadException instanceof net.sf.hibernate.HibernateException) 
271                  throw (net.sf.hibernate.HibernateException) loadException; 
272              if (loadException instanceof java.lang.RuntimeException) 
273                  throw (java.lang.RuntimeException) loadException; 
274              if (loadException instanceof java.lang.Error) 
275                  throw (java.lang.Error) loadException; 
276              throw new RuntimeException(); 
277          } 
278          return this.loadReturn; 
279      } 
280   
281      public boolean load2Called; 
282      public java.lang.Object load2Return; 
283      public Throwable load2Exception; 
284      public java.lang.Class load2TheClass; 
285      public java.io.Serializable load2Id; 
286      public java.lang.Object load(java.lang.Class theClass, java.io.Serializable id) throws net.sf.hibernate.HibernateException { 
287          load2Called = true; 
288          this.load2TheClass = theClass; 
289          this.load2Id = id; 
290          if (load2Exception != null) { 
291              if (load2Exception instanceof net.sf.hibernate.HibernateException) 
292                  throw (net.sf.hibernate.HibernateException) load2Exception; 
293              if (load2Exception instanceof java.lang.RuntimeException) 
294                  throw (java.lang.RuntimeException) load2Exception; 
295              if (load2Exception instanceof java.lang.Error) 
296                  throw (java.lang.Error) load2Exception; 
297              throw new RuntimeException(); 
298          } 
299          return this.load2Return; 
300      } 
301   
302      public boolean load3Called; 
303      public Throwable load3Exception; 
304      public java.lang.Object load3Object; 
305      public java.io.Serializable load3Id; 
306      public void load(java.lang.Object object, java.io.Serializable id) throws net.sf.hibernate.HibernateException { 
307          load3Called = true; 
308          this.load3Object = object; 
309          this.load3Id = id; 
310          if (load3Exception != null) { 
311              if (load3Exception instanceof net.sf.hibernate.HibernateException) 
312                  throw (net.sf.hibernate.HibernateException) load3Exception; 
313              if (load3Exception instanceof java.lang.RuntimeException) 
314                  throw (java.lang.RuntimeException) load3Exception; 
315              if (load3Exception instanceof java.lang.Error) 
316                  throw (java.lang.Error) load3Exception; 
317              throw new RuntimeException(); 
318          } 
319      } 
320   
321      public boolean saveCalled; 
322      public java.io.Serializable saveReturn; 
323      public Throwable saveException; 
324      public java.lang.Object saveObject; 
325      public java.io.Serializable save(java.lang.Object object) throws net.sf.hibernate.HibernateException { 
326          saveCalled = true; 
327          this.saveObject = object; 
328          if (saveException != null) { 
329              if (saveException instanceof net.sf.hibernate.HibernateException) 
330                  throw (net.sf.hibernate.HibernateException) saveException; 
331              if (saveException instanceof java.lang.RuntimeException) 
332                  throw (java.lang.RuntimeException) saveException; 
333              if (saveException instanceof java.lang.Error) 
334                  throw (java.lang.Error) saveException; 
335              throw new RuntimeException(); 
336          } 
337          return this.saveReturn; 
338      } 
339   
340      public boolean save2Called; 
341      public Throwable save2Exception; 
342      public java.lang.Object save2Object; 
343      public java.io.Serializable save2Id; 
344      public void save(java.lang.Object object, java.io.Serializable id) throws net.sf.hibernate.HibernateException { 
345          save2Called = true; 
346          this.save2Object = object; 
347          this.save2Id = id; 
348          if (save2Exception != null) { 
349              if (save2Exception instanceof net.sf.hibernate.HibernateException) 
350                  throw (net.sf.hibernate.HibernateException) save2Exception; 
351              if (save2Exception instanceof java.lang.RuntimeException) 
352                  throw (java.lang.RuntimeException) save2Exception; 
353              if (save2Exception instanceof java.lang.Error) 
354                  throw (java.lang.Error) save2Exception; 
355              throw new RuntimeException(); 
356          } 
357      } 
358   
359      public boolean saveOrUpdateCalled; 
360      public Throwable saveOrUpdateException; 
361      public java.lang.Object saveOrUpdateObject; 
362      public void saveOrUpdate(java.lang.Object object) throws net.sf.hibernate.HibernateException { 
363          saveOrUpdateCalled = true; 
364          this.saveOrUpdateObject = object; 
365          if (saveOrUpdateException != null) { 
366              if (saveOrUpdateException instanceof net.sf.hibernate.HibernateException) 
367                  throw (net.sf.hibernate.HibernateException) saveOrUpdateException; 
368              if (saveOrUpdateException instanceof java.lang.RuntimeException) 
369                  throw (java.lang.RuntimeException) saveOrUpdateException; 
370              if (saveOrUpdateException instanceof java.lang.Error) 
371                  throw (java.lang.Error) saveOrUpdateException; 
372              throw new RuntimeException(); 
373          } 
374      } 
375   
376      public boolean updateCalled; 
377      public Throwable updateException; 
378      public java.lang.Object updateObject; 
379      public void update(java.lang.Object object) throws net.sf.hibernate.HibernateException { 
380          updateCalled = true; 
381          this.updateObject = object; 
382          if (updateException != null) { 
383              if (updateException instanceof net.sf.hibernate.HibernateException) 
384                  throw (net.sf.hibernate.HibernateException) updateException; 
385              if (updateException instanceof java.lang.RuntimeException) 
386                  throw (java.lang.RuntimeException) updateException; 
387              if (updateException instanceof java.lang.Error) 
388                  throw (java.lang.Error) updateException; 
389              throw new RuntimeException(); 
390          } 
391      } 
392   
393      public boolean update2Called; 
394      public Throwable update2Exception; 
395      public java.lang.Object update2Object; 
396      public java.io.Serializable update2Id; 
397      public void update(java.lang.Object object, java.io.Serializable id) throws net.sf.hibernate.HibernateException { 
398          update2Called = true; 
399          this.update2Object = object; 
400          this.update2Id = id; 
401          if (update2Exception != null) { 
402              if (update2Exception instanceof net.sf.hibernate.HibernateException) 
403                  throw (net.sf.hibernate.HibernateException) update2Exception; 
404              if (update2Exception instanceof java.lang.RuntimeException) 
405                  throw (java.lang.RuntimeException) update2Exception; 
406              if (update2Exception instanceof java.lang.Error) 
407                  throw (java.lang.Error) update2Exception; 
408              throw new RuntimeException(); 
409          } 
410      } 
411   
412      public boolean deleteCalled; 
413      public Throwable deleteException; 
414      public java.lang.Object deleteObject; 
415      public void delete(java.lang.Object object) throws net.sf.hibernate.HibernateException { 
416          deleteCalled = true; 
417          this.deleteObject = object; 
418          if (deleteException != null) { 
419              if (deleteException instanceof net.sf.hibernate.HibernateException) 
420                  throw (net.sf.hibernate.HibernateException) deleteException; 
421              if (deleteException instanceof java.lang.RuntimeException) 
422                  throw (java.lang.RuntimeException) deleteException; 
423              if (deleteException instanceof java.lang.Error) 
424                  throw (java.lang.Error) deleteException; 
425              throw new RuntimeException(); 
426          } 
427      } 
428   
429      public boolean findCalled; 
430      public java.util.List findReturn; 
431      public Throwable findException; 
432      public java.lang.String findQuery; 
433      public java.util.List find(java.lang.String query) throws net.sf.hibernate.HibernateException { 
434          findCalled = true; 
435          this.findQuery = query; 
436          if (findException != null) { 
437              if (findException instanceof net.sf.hibernate.HibernateException) 
438                  throw (net.sf.hibernate.HibernateException) findException; 
439              if (findException instanceof java.lang.RuntimeException) 
440                  throw (java.lang.RuntimeException) findException; 
441              if (findException instanceof java.lang.Error) 
442                  throw (java.lang.Error) findException; 
443              throw new RuntimeException(); 
444          } 
445          return this.findReturn; 
446      } 
447   
448      public boolean find2Called; 
449      public java.util.List find2Return; 
450      public Throwable find2Exception; 
451      public java.lang.String find2Query; 
452      public java.lang.Object find2Value; 
453      public net.sf.hibernate.type.Type find2Type; 
454      public java.util.List find(java.lang.String query, java.lang.Object value, net.sf.hibernate.type.Type type) throws net.sf.hibernate.HibernateException { 
455          find2Called = true; 
456          this.find2Query = query; 
457          this.find2Value = value; 
458          this.find2Type = type; 
459          if (find2Exception != null) { 
460              if (find2Exception instanceof net.sf.hibernate.HibernateException) 
461                  throw (net.sf.hibernate.HibernateException) find2Exception; 
462              if (find2Exception instanceof java.lang.RuntimeException) 
463                  throw (java.lang.RuntimeException) find2Exception; 
464              if (find2Exception instanceof java.lang.Error) 
465                  throw (java.lang.Error) find2Exception; 
466              throw new RuntimeException(); 
467          } 
468          return this.find2Return; 
469      } 
470   
471      public boolean find3Called; 
472      public java.util.List find3Return; 
473      public Throwable find3Exception; 
474      public java.lang.String find3Query; 
475      public java.lang.Object[] find3Values; 
476      public net.sf.hibernate.type.Type[] find3Types; 
477      public java.util.List find(java.lang.String query, java.lang.Object[] values, net.sf.hibernate.type.Type[] types) throws net.sf.hibernate.HibernateException { 
478          find3Called = true; 
479          this.find3Query = query; 
480          this.find3Values = values; 
481          this.find3Types = types; 
482          if (find3Exception != null) { 
483              if (find3Exception instanceof net.sf.hibernate.HibernateException) 
484                  throw (net.sf.hibernate.HibernateException) find3Exception; 
485              if (find3Exception instanceof java.lang.RuntimeException) 
486                  throw (java.lang.RuntimeException) find3Exception; 
487              if (find3Exception instanceof java.lang.Error) 
488                  throw (java.lang.Error) find3Exception; 
489              throw new RuntimeException(); 
490          } 
491          return this.find3Return; 
492      } 
493   
494      public boolean iterateCalled; 
495      public java.util.Iterator iterateReturn; 
496      public Throwable iterateException; 
497      public java.lang.String iterateQuery; 
498      public java.util.Iterator iterate(java.lang.String query) throws net.sf.hibernate.HibernateException { 
499          iterateCalled = true; 
500          this.iterateQuery = query; 
501          if (iterateException != null) { 
502              if (iterateException instanceof net.sf.hibernate.HibernateException) 
503                  throw (net.sf.hibernate.HibernateException) iterateException; 
504              if (iterateException instanceof java.lang.RuntimeException) 
505                  throw (java.lang.RuntimeException) iterateException; 
506              if (iterateException instanceof java.lang.Error) 
507                  throw (java.lang.Error) iterateException; 
508              throw new RuntimeException(); 
509          } 
510          return this.iterateReturn; 
511      } 
512   
513      public boolean iterate2Called; 
514      public java.util.Iterator iterate2Return; 
515      public Throwable iterate2Exception; 
516      public java.lang.String iterate2Query; 
517      public java.lang.Object iterate2Value; 
518      public net.sf.hibernate.type.Type iterate2Type; 
519      public java.util.Iterator iterate(java.lang.String query, java.lang.Object value, net.sf.hibernate.type.Type type) throws net.sf.hibernate.HibernateException { 
520          iterate2Called = true; 
521          this.iterate2Query = query; 
522          this.iterate2Value = value; 
523          this.iterate2Type = type; 
524          if (iterate2Exception != null) { 
525              if (iterate2Exception instanceof net.sf.hibernate.HibernateException) 
526                  throw (net.sf.hibernate.HibernateException) iterate2Exception; 
527              if (iterate2Exception instanceof java.lang.RuntimeException) 
528                  throw (java.lang.RuntimeException) iterate2Exception; 
529              if (iterate2Exception instanceof java.lang.Error) 
530                  throw (java.lang.Error) iterate2Exception; 
531              throw new RuntimeException(); 
532          } 
533          return this.iterate2Return; 
534      } 
535   
536      public boolean iterate3Called; 
537      public java.util.Iterator iterate3Return; 
538      public Throwable iterate3Exception; 
539      public java.lang.String iterate3Query; 
540      public java.lang.Object[] iterate3Values; 
541      public net.sf.hibernate.type.Type[] iterate3Types; 
542      public java.util.Iterator iterate(java.lang.String query, java.lang.Object[] values, net.sf.hibernate.type.Type[] types) throws net.sf.hibernate.HibernateException { 
543          iterate3Called = true; 
544          this.iterate3Query = query; 
545          this.iterate3Values = values; 
546          this.iterate3Types = types; 
547          if (iterate3Exception != null) { 
548              if (iterate3Exception instanceof net.sf.hibernate.HibernateException) 
549                  throw (net.sf.hibernate.HibernateException) iterate3Exception; 
550              if (iterate3Exception instanceof java.lang.RuntimeException) 
551                  throw (java.lang.RuntimeException) iterate3Exception; 
552              if (iterate3Exception instanceof java.lang.Error) 
553                  throw (java.lang.Error) iterate3Exception; 
554              throw new RuntimeException(); 
555          } 
556          return this.iterate3Return; 
557      } 
558   
559      public boolean filterCalled; 
560      public java.util.Collection filterReturn; 
561      public Throwable filterException; 
562      public java.lang.Object filterCollection; 
563      public java.lang.String filterFilter; 
564      public java.util.Collection filter(java.lang.Object collection, java.lang.String filter) throws net.sf.hibernate.HibernateException { 
565          filterCalled = true; 
566          this.filterCollection = collection; 
567          this.filterFilter = filter; 
568          if (filterException != null) { 
569              if (filterException instanceof net.sf.hibernate.HibernateException) 
570                  throw (net.sf.hibernate.HibernateException) filterException; 
571              if (filterException instanceof java.lang.RuntimeException) 
572                  throw (java.lang.RuntimeException) filterException; 
573              if (filterException instanceof java.lang.Error) 
574                  throw (java.lang.Error) filterException; 
575              throw new RuntimeException(); 
576          } 
577          return this.filterReturn; 
578      } 
579   
580      public boolean filter2Called; 
581      public java.util.Collection filter2Return; 
582      public Throwable filter2Exception; 
583      public java.lang.Object filter2Collection; 
584      public java.lang.String filter2Filter; 
585      public java.lang.Object filter2Value; 
586      public net.sf.hibernate.type.Type filter2Type; 
587      public java.util.Collection filter(java.lang.Object collection, java.lang.String filter, java.lang.Object value, net.sf.hibernate.type.Type type) throws net.sf.hibernate.HibernateException { 
588          filter2Called = true; 
589          this.filter2Collection = collection; 
590          this.filter2Filter = filter; 
591          this.filter2Value = value; 
592          this.filter2Type = type; 
593          if (filter2Exception != null) { 
594              if (filter2Exception instanceof net.sf.hibernate.HibernateException) 
595                  throw (net.sf.hibernate.HibernateException) filter2Exception; 
596              if (filter2Exception instanceof java.lang.RuntimeException) 
597                  throw (java.lang.RuntimeException) filter2Exception; 
598              if (filter2Exception instanceof java.lang.Error) 
599                  throw (java.lang.Error) filter2Exception; 
600              throw new RuntimeException(); 
601          } 
602          return this.filter2Return; 
603      } 
604   
605      public boolean filter3Called; 
606      public java.util.Collection filter3Return; 
607      public Throwable filter3Exception; 
608      public java.lang.Object filter3Collection; 
609      public java.lang.String filter3Filter; 
610      public java.lang.Object[] filter3Values; 
611      public net.sf.hibernate.type.Type[] filter3Types; 
612      public java.util.Collection filter(java.lang.Object collection, java.lang.String filter, java.lang.Object[] values, net.sf.hibernate.type.Type[] types) throws net.sf.hibernate.HibernateException { 
613          filter3Called = true; 
614          this.filter3Collection = collection; 
615          this.filter3Filter = filter; 
616          this.filter3Values = values; 
617          this.filter3Types = types; 
618          if (filter3Exception != null) { 
619              if (filter3Exception instanceof net.sf.hibernate.HibernateException) 
620                  throw (net.sf.hibernate.HibernateException) filter3Exception; 
621              if (filter3Exception instanceof java.lang.RuntimeException) 
622                  throw (java.lang.RuntimeException) filter3Exception; 
623              if (filter3Exception instanceof java.lang.Error) 
624                  throw (java.lang.Error) filter3Exception; 
625              throw new RuntimeException(); 
626          } 
627          return this.filter3Return; 
628      } 
629   
630      public boolean delete2Called; 
631      public int delete2Return; 
632      public Throwable delete2Exception; 
633      public java.lang.String delete2Query; 
634      public int delete(java.lang.String query) throws net.sf.hibernate.HibernateException { 
635          delete2Called = true; 
636          this.delete2Query = query; 
637          if (delete2Exception != null) { 
638              if (delete2Exception instanceof net.sf.hibernate.HibernateException) 
639                  throw (net.sf.hibernate.HibernateException) delete2Exception; 
640              if (delete2Exception instanceof java.lang.RuntimeException) 
641                  throw (java.lang.RuntimeException) delete2Exception; 
642              if (delete2Exception instanceof java.lang.Error) 
643                  throw (java.lang.Error) delete2Exception; 
644              throw new RuntimeException(); 
645          } 
646          return this.delete2Return; 
647      } 
648   
649      public boolean delete3Called; 
650      public int delete3Return; 
651      public Throwable delete3Exception; 
652      public java.lang.String delete3Query; 
653      public java.lang.Object delete3Value; 
654      public net.sf.hibernate.type.Type delete3Type; 
655      public int delete(java.lang.String query, java.lang.Object value, net.sf.hibernate.type.Type type) throws net.sf.hibernate.HibernateException { 
656          delete3Called = true; 
657          this.delete3Query = query; 
658          this.delete3Value = value; 
659          this.delete3Type = type; 
660          if (delete3Exception != null) { 
661              if (delete3Exception instanceof net.sf.hibernate.HibernateException) 
662                  throw (net.sf.hibernate.HibernateException) delete3Exception; 
663              if (delete3Exception instanceof java.lang.RuntimeException) 
664                  throw (java.lang.RuntimeException) delete3Exception; 
665              if (delete3Exception instanceof java.lang.Error) 
666                  throw (java.lang.Error) delete3Exception; 
667              throw new RuntimeException(); 
668          } 
669          return this.delete3Return; 
670      } 
671   
672      public boolean delete4Called; 
673      public int delete4Return; 
674      public Throwable delete4Exception; 
675      public java.lang.String delete4Query; 
676      public java.lang.Object[] delete4Values; 
677      public net.sf.hibernate.type.Type[] delete4Types; 
678      public int delete(java.lang.String query, java.lang.Object[] values, net.sf.hibernate.type.Type[] types) throws net.sf.hibernate.HibernateException { 
679          delete4Called = true; 
680          this.delete4Query = query; 
681          this.delete4Values = values; 
682          this.delete4Types = types; 
683          if (delete4Exception != null) { 
684              if (delete4Exception instanceof net.sf.hibernate.HibernateException) 
685                  throw (net.sf.hibernate.HibernateException) delete4Exception; 
686              if (delete4Exception instanceof java.lang.RuntimeException) 
687                  throw (java.lang.RuntimeException) delete4Exception; 
688              if (delete4Exception instanceof java.lang.Error) 
689                  throw (java.lang.Error) delete4Exception; 
690              throw new RuntimeException(); 
691          } 
692          return this.delete4Return; 
693      } 
694   
695      public boolean lockCalled; 
696      public Throwable lockException; 
697      public java.lang.Object lockObject; 
698      public net.sf.hibernate.LockMode lockLockMode; 
699      public void lock(java.lang.Object object, net.sf.hibernate.LockMode lockMode) throws net.sf.hibernate.HibernateException { 
700          lockCalled = true; 
701          this.lockObject = object; 
702          this.lockLockMode = lockMode; 
703          if (lockException != null) { 
704              if (lockException instanceof net.sf.hibernate.HibernateException) 
705                  throw (net.sf.hibernate.HibernateException) lockException; 
706              if (lockException instanceof java.lang.RuntimeException) 
707                  throw (java.lang.RuntimeException) lockException; 
708              if (lockException instanceof java.lang.Error) 
709                  throw (java.lang.Error) lockException; 
710              throw new RuntimeException(); 
711          } 
712      } 
713   
714      public boolean refreshCalled; 
715      public Throwable refreshException; 
716      public java.lang.Object refreshObject; 
717      public void refresh(java.lang.Object object) throws net.sf.hibernate.HibernateException { 
718          refreshCalled = true; 
719          this.refreshObject = object; 
720          if (refreshException != null) { 
721              if (refreshException instanceof net.sf.hibernate.HibernateException) 
722                  throw (net.sf.hibernate.HibernateException) refreshException; 
723              if (refreshException instanceof java.lang.RuntimeException) 
724                  throw (java.lang.RuntimeException) refreshException; 
725              if (refreshException instanceof java.lang.Error) 
726                  throw (java.lang.Error) refreshException; 
727              throw new RuntimeException(); 
728          } 
729      } 
730   
731      public boolean refresh2Called; 
732      public Throwable refresh2Exception; 
733      public java.lang.Object refresh2Object; 
734      public net.sf.hibernate.LockMode refresh2LockMode; 
735      public void refresh(java.lang.Object object, net.sf.hibernate.LockMode lockMode) throws net.sf.hibernate.HibernateException { 
736          refresh2Called = true; 
737          this.refresh2Object = object; 
738          this.refresh2LockMode = lockMode; 
739          if (refresh2Exception != null) { 
740              if (refresh2Exception instanceof net.sf.hibernate.HibernateException) 
741                  throw (net.sf.hibernate.HibernateException) refresh2Exception; 
742              if (refresh2Exception instanceof java.lang.RuntimeException) 
743                  throw (java.lang.RuntimeException) refresh2Exception; 
744              if (refresh2Exception instanceof java.lang.Error) 
745                  throw (java.lang.Error) refresh2Exception; 
746              throw new RuntimeException(); 
747          } 
748      } 
749   
750      public boolean getCurrentLockModeCalled; 
751      public net.sf.hibernate.LockMode getCurrentLockModeReturn; 
752      public Throwable getCurrentLockModeException; 
753      public java.lang.Object getCurrentLockModeObject; 
754      public net.sf.hibernate.LockMode getCurrentLockMode(java.lang.Object object) throws net.sf.hibernate.HibernateException { 
755          getCurrentLockModeCalled = true; 
756          this.getCurrentLockModeObject = object; 
757          if (getCurrentLockModeException != null) { 
758              if (getCurrentLockModeException instanceof net.sf.hibernate.HibernateException) 
759                  throw (net.sf.hibernate.HibernateException) getCurrentLockModeException; 
760              if (getCurrentLockModeException instanceof java.lang.RuntimeException) 
761                  throw (java.lang.RuntimeException) getCurrentLockModeException; 
762              if (getCurrentLockModeException instanceof java.lang.Error) 
763                  throw (java.lang.Error) getCurrentLockModeException; 
764              throw new RuntimeException(); 
765          } 
766          return this.getCurrentLockModeReturn; 
767      } 
768   
769      public boolean beginTransactionCalled; 
770      public net.sf.hibernate.Transaction beginTransactionReturn; 
771      public Throwable beginTransactionException; 
772      public net.sf.hibernate.Transaction beginTransaction() throws net.sf.hibernate.HibernateException { 
773          beginTransactionCalled = true; 
774          if (beginTransactionException != null) { 
775              if (beginTransactionException instanceof net.sf.hibernate.HibernateException) 
776                  throw (net.sf.hibernate.HibernateException) beginTransactionException; 
777              if (beginTransactionException instanceof java.lang.RuntimeException) 
778                  throw (java.lang.RuntimeException) beginTransactionException; 
779              if (beginTransactionException instanceof java.lang.Error) 
780                  throw (java.lang.Error) beginTransactionException; 
781              throw new RuntimeException(); 
782          } 
783          return this.beginTransactionReturn; 
784      } 
785   
786      public boolean createCriteriaCalled; 
787      public net.sf.hibernate.Criteria createCriteriaReturn; 
788      public Throwable createCriteriaException; 
789      public java.lang.Class createCriteriaPersistentClass; 
790      public net.sf.hibernate.Criteria createCriteria(java.lang.Class persistentClass) { 
791          createCriteriaCalled = true; 
792          this.createCriteriaPersistentClass = persistentClass; 
793          if (createCriteriaException != null) { 
794              if (createCriteriaException instanceof java.lang.RuntimeException) 
795                  throw (java.lang.RuntimeException) createCriteriaException; 
796              if (createCriteriaException instanceof java.lang.Error) 
797                  throw (java.lang.Error) createCriteriaException; 
798              throw new RuntimeException(); 
799          } 
800          return this.createCriteriaReturn; 
801      } 
802   
803      public boolean createQueryCalled; 
804      public net.sf.hibernate.Query createQueryReturn; 
805      public Throwable createQueryException; 
806      public java.lang.String createQueryQueryString; 
807      public net.sf.hibernate.Query createQuery(java.lang.String queryString) throws net.sf.hibernate.HibernateException { 
808          createQueryCalled = true; 
809          this.createQueryQueryString = queryString; 
810          if (createQueryException != null) { 
811              if (createQueryException instanceof net.sf.hibernate.HibernateException) 
812                  throw (net.sf.hibernate.HibernateException) createQueryException; 
813              if (createQueryException instanceof java.lang.RuntimeException) 
814                  throw (java.lang.RuntimeException) createQueryException; 
815              if (createQueryException instanceof java.lang.Error) 
816                  throw (java.lang.Error) createQueryException; 
817              throw new RuntimeException(); 
818          } 
819          return this.createQueryReturn; 
820      } 
821   
822      public boolean createFilterCalled; 
823      public net.sf.hibernate.Query createFilterReturn; 
824      public Throwable createFilterException; 
825      public java.lang.Object createFilterCollection; 
826      public java.lang.String createFilterQueryString; 
827      public net.sf.hibernate.Query createFilter(java.lang.Object collection, java.lang.String queryString) throws net.sf.hibernate.HibernateException { 
828          createFilterCalled = true; 
829          this.createFilterCollection = collection; 
830          this.createFilterQueryString = queryString; 
831          if (createFilterException != null) { 
832              if (createFilterException instanceof net.sf.hibernate.HibernateException) 
833                  throw (net.sf.hibernate.HibernateException) createFilterException; 
834              if (createFilterException instanceof java.lang.RuntimeException) 
835                  throw (java.lang.RuntimeException) createFilterException; 
836              if (createFilterException instanceof java.lang.Error) 
837                  throw (java.lang.Error) createFilterException; 
838              throw new RuntimeException(); 
839          } 
840          return this.createFilterReturn; 
841      } 
842   
843      public boolean getNamedQueryCalled; 
844      public net.sf.hibernate.Query getNamedQueryReturn; 
845      public Throwable getNamedQueryException; 
846      public java.lang.String getNamedQueryQueryName; 
847      public net.sf.hibernate.Query getNamedQuery(java.lang.String queryName) throws net.sf.hibernate.HibernateException { 
848          getNamedQueryCalled = true; 
849          this.getNamedQueryQueryName = queryName; 
850          if (getNamedQueryException != null) { 
851              if (getNamedQueryException instanceof net.sf.hibernate.HibernateException) 
852                  throw (net.sf.hibernate.HibernateException) getNamedQueryException; 
853              if (getNamedQueryException instanceof java.lang.RuntimeException) 
854                  throw (java.lang.RuntimeException) getNamedQueryException; 
855              if (getNamedQueryException instanceof java.lang.Error) 
856                  throw (java.lang.Error) getNamedQueryException; 
857              throw new RuntimeException(); 
858          } 
859          return this.getNamedQueryReturn; 
860      } 
861   
862  }