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: | 214 |  | Methods: | 22
| NCLOC: | 82 |  | 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
CriteriaWrapper.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.util.List;
11 |  |
12 |  |
     import net.sf.hibernate.Criteria;
13 |  |
     import net.sf.hibernate.FetchMode;
14 |  |
     import net.sf.hibernate.HibernateException;
15 |  |
     import net.sf.hibernate.LockMode;
16 |  |
     import net.sf.hibernate.expression.Criterion;
17 |  |
     import net.sf.hibernate.expression.Order;
18 |  |
     import net.sf.hibernate.transform.ResultTransformer;
19 |  |
20 |  |
     /**
21 |  |
      * @author akima
22 |  |
      */
23 |  |
     public class CriteriaWrapper implements Criteria {
24 |  |
25 |  |
         /**
26 |  |
          *
27 |  |
          */
28 | 0 |
         public CriteriaWrapper(Criteria wrapped) {
29 | 0 |
             super();
30 | 0 |
             this.wrapped = wrapped;
31 |  |
         }
32 |  |
33 |  |
         protected final Criteria wrapped;
34 |  |
35 |  |
         /**
36 |  |
          * @param criterion
37 |  |
          * @return
38 |  |
          */
39 | 0 |
         public Criteria add(Criterion criterion) {
40 | 0 |
             return wrapped.add(criterion);
41 |  |
         }
42 |  |
43 |  |
         /**
44 |  |
          * @param order
45 |  |
          * @return
46 |  |
          */
47 | 0 |
         public Criteria addOrder(Order order) {
48 | 0 |
             return wrapped.addOrder(order);
49 |  |
         }
50 |  |
51 |  |
         /**
52 |  |
          * @param associationPath
53 |  |
          * @param alias
54 |  |
          * @return @throws
55 |  |
          *         net.sf.hibernate.HibernateException
56 |  |
          */
57 | 0 |
         public Criteria createAlias(String associationPath, String alias)
58 |  |
                 throws HibernateException {
59 | 0 |
             return wrapped.createAlias(associationPath, alias);
60 |  |
         }
61 |  |
62 |  |
         /**
63 |  |
          * @param associationPath
64 |  |
          * @return @throws
65 |  |
          *         net.sf.hibernate.HibernateException
66 |  |
          */
67 | 0 |
         public Criteria createCriteria(String associationPath)
68 |  |
                 throws HibernateException {
69 | 0 |
             return wrapped.createCriteria(associationPath);
70 |  |
         }
71 |  |
72 |  |
         /**
73 |  |
          * @param associationPath
74 |  |
          * @param alias
75 |  |
          * @return @throws
76 |  |
          *         net.sf.hibernate.HibernateException
77 |  |
          */
78 | 0 |
         public Criteria createCriteria(String associationPath, String alias)
79 |  |
                 throws HibernateException {
80 | 0 |
             return wrapped.createCriteria(associationPath, alias);
81 |  |
         }
82 |  |
83 |  |
         /**
84 |  |
          * @return
85 |  |
          */
86 | 0 |
         public Class getCriteriaClass() {
87 | 0 |
             return wrapped.getCriteriaClass();
88 |  |
         }
89 |  |
90 |  |
         /**
91 |  |
          * @param alias
92 |  |
          * @return
93 |  |
          */
94 | 0 |
         public Class getCriteriaClass(String alias) {
95 | 0 |
             return wrapped.getCriteriaClass(alias);
96 |  |
         }
97 |  |
98 |  |
         /**
99 |  |
          * @return @throws
100 |  |
          *         net.sf.hibernate.HibernateException
101 |  |
          */
102 | 0 |
         public List list() throws HibernateException {
103 | 0 |
             return wrapped.list();
104 |  |
         }
105 |  |
106 |  |
         /**
107 |  |
          * @return
108 |  |
          * @deprecated
109 |  |
          */
110 | 0 |
         public Criteria returnMaps() {
111 | 0 |
             return wrapped.returnMaps();
112 |  |
         }
113 |  |
114 |  |
         /**
115 |  |
          * @return
116 |  |
          * @deprecated
117 |  |
          */
118 | 0 |
         public Criteria returnRootEntities() {
119 | 0 |
             return wrapped.returnRootEntities();
120 |  |
         }
121 |  |
122 |  |
         /**
123 |  |
          * @param associationPath
124 |  |
          * @param mode
125 |  |
          * @return @throws
126 |  |
          *         net.sf.hibernate.HibernateException
127 |  |
          */
128 | 0 |
         public Criteria setFetchMode(String associationPath, FetchMode mode)
129 |  |
                 throws HibernateException {
130 | 0 |
             return wrapped.setFetchMode(associationPath, mode);
131 |  |
         }
132 |  |
133 |  |
         /**
134 |  |
          * @param firstResult
135 |  |
          * @return
136 |  |
          */
137 | 0 |
         public Criteria setFirstResult(int firstResult) {
138 | 0 |
             return wrapped.setFirstResult(firstResult);
139 |  |
         }
140 |  |
141 |  |
         /**
142 |  |
          * @param alias
143 |  |
          * @param lockMode
144 |  |
          * @return
145 |  |
          */
146 | 0 |
         public Criteria setLockMode(String alias, LockMode lockMode) {
147 | 0 |
             return wrapped.setLockMode(alias, lockMode);
148 |  |
         }
149 |  |
150 |  |
         /**
151 |  |
          * @param lockMode
152 |  |
          * @return
153 |  |
          */
154 | 0 |
         public Criteria setLockMode(LockMode lockMode) {
155 | 0 |
             return wrapped.setLockMode(lockMode);
156 |  |
         }
157 |  |
158 |  |
         /**
159 |  |
          * @param maxResults
160 |  |
          * @return
161 |  |
          */
162 | 0 |
         public Criteria setMaxResults(int maxResults) {
163 | 0 |
             return wrapped.setMaxResults(maxResults);
164 |  |
         }
165 |  |
166 |  |
         /**
167 |  |
          * @param timeout
168 |  |
          * @return
169 |  |
          */
170 | 0 |
         public Criteria setTimeout(int timeout) {
171 | 0 |
             return wrapped.setTimeout(timeout);
172 |  |
         }
173 |  |
174 |  |
         /**
175 |  |
          * @return @throws
176 |  |
          *         net.sf.hibernate.HibernateException
177 |  |
          */
178 | 0 |
         public Object uniqueResult() throws HibernateException {
179 | 0 |
             return wrapped.uniqueResult();
180 |  |
         }
181 |  |
182 |  |
         /**
183 |  |
          * @param arg0
184 |  |
          * @return
185 |  |
          */
186 | 0 |
         public Criteria setCacheable(boolean arg0) {
187 | 0 |
             return wrapped.setCacheable(arg0);
188 |  |
         }
189 |  |
190 |  |
         /**
191 |  |
          * @param arg0
192 |  |
          * @return
193 |  |
          */
194 | 0 |
         public Criteria setCacheRegion(String arg0) {
195 | 0 |
             return wrapped.setCacheRegion(arg0);
196 |  |
         }
197 |  |
198 |  |
         /**
199 |  |
          * @param arg0
200 |  |
          * @return
201 |  |
          */
202 | 0 |
         public Criteria setFetchSize(int arg0) {
203 | 0 |
             return wrapped.setFetchSize(arg0);
204 |  |
         }
205 |  |
206 |  |
         /**
207 |  |
          * @param arg0
208 |  |
          * @return
209 |  |
          */
210 | 0 |
         public Criteria setResultTransformer(ResultTransformer arg0) {
211 | 0 |
             return wrapped.setResultTransformer(arg0);
212 |  |
         }
213 |  |
214 |  |
     }