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: | 198 |  | Methods: | 20
| NCLOC: | 80 |  | 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
SessionFactoryWrapper.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.io.Serializable;
11 |  |
     import java.sql.Connection;
12 |  |
     import java.util.Map;
13 |  |
14 |  |
     import javax.naming.NamingException;
15 |  |
     import javax.naming.Reference;
16 |  |
17 |  |
     import net.sf.hibernate.Databinder;
18 |  |
     import net.sf.hibernate.HibernateException;
19 |  |
     import net.sf.hibernate.Interceptor;
20 |  |
     import net.sf.hibernate.Session;
21 |  |
     import net.sf.hibernate.SessionFactory;
22 |  |
     import net.sf.hibernate.metadata.ClassMetadata;
23 |  |
     import net.sf.hibernate.metadata.CollectionMetadata;
24 |  |
25 |  |
     /**
26 |  |
      * @author akima
27 |  |
      */
28 |  |
     public class SessionFactoryWrapper implements SessionFactory {
29 |  |
30 |  |
         /**
31 |  |
          *
32 |  |
          */
33 | 0 |
         public SessionFactoryWrapper() {
34 | 0 |
             super();
35 |  |
         }
36 |  |
37 |  |
         protected SessionFactory source;
38 |  |
39 |  |
         /**
40 |  |
          * @return
41 |  |
          */
42 | 0 |
         public SessionFactory getSource() {
43 | 0 |
             return source;
44 |  |
         }
45 |  |
46 |  |
         /**
47 |  |
          * @param factory
48 |  |
          */
49 | 0 |
         public void setSource(SessionFactory factory) {
50 | 0 |
             source = factory;
51 |  |
         }
52 |  |
53 |  |
         /**
54 |  |
          * @throws net.sf.hibernate.HibernateException
55 |  |
          */
56 | 0 |
         public void close() throws HibernateException {
57 | 0 |
             source.close();
58 |  |
         }
59 |  |
60 |  |
         /**
61 |  |
          * @param persistentClass
62 |  |
          * @throws net.sf.hibernate.HibernateException
63 |  |
          */
64 | 0 |
         public void evict(Class persistentClass) throws HibernateException {
65 | 0 |
             source.evict(persistentClass);
66 |  |
         }
67 |  |
68 |  |
         /**
69 |  |
          * @param persistentClass
70 |  |
          * @param id
71 |  |
          * @throws net.sf.hibernate.HibernateException
72 |  |
          */
73 | 0 |
         public void evict(Class persistentClass, Serializable id)
74 |  |
                 throws HibernateException {
75 | 0 |
             source.evict(persistentClass, id);
76 |  |
         }
77 |  |
78 |  |
         /**
79 |  |
          * @param roleName
80 |  |
          * @throws net.sf.hibernate.HibernateException
81 |  |
          */
82 | 0 |
         public void evictCollection(String roleName) throws HibernateException {
83 | 0 |
             source.evictCollection(roleName);
84 |  |
         }
85 |  |
86 |  |
         /**
87 |  |
          * @param roleName
88 |  |
          * @param id
89 |  |
          * @throws net.sf.hibernate.HibernateException
90 |  |
          */
91 | 0 |
         public void evictCollection(String roleName, Serializable id)
92 |  |
                 throws HibernateException {
93 | 0 |
             source.evictCollection(roleName, id);
94 |  |
         }
95 |  |
96 |  |
         /**
97 |  |
          * @throws net.sf.hibernate.HibernateException
98 |  |
          */
99 | 0 |
         public void evictQueries() throws HibernateException {
100 | 0 |
             source.evictQueries();
101 |  |
         }
102 |  |
103 |  |
         /**
104 |  |
          * @param cacheRegion
105 |  |
          * @throws net.sf.hibernate.HibernateException
106 |  |
          */
107 | 0 |
         public void evictQueries(String cacheRegion) throws HibernateException {
108 | 0 |
             source.evictQueries(cacheRegion);
109 |  |
         }
110 |  |
111 |  |
         /**
112 |  |
          * @return @throws
113 |  |
          *         net.sf.hibernate.HibernateException
114 |  |
          */
115 | 0 |
         public Map getAllClassMetadata() throws HibernateException {
116 | 0 |
             return source.getAllClassMetadata();
117 |  |
         }
118 |  |
119 |  |
         /**
120 |  |
          * @return @throws
121 |  |
          *         net.sf.hibernate.HibernateException
122 |  |
          */
123 | 0 |
         public Map getAllCollectionMetadata() throws HibernateException {
124 | 0 |
             return source.getAllCollectionMetadata();
125 |  |
         }
126 |  |
127 |  |
         /**
128 |  |
          * @param persistentClass
129 |  |
          * @return @throws
130 |  |
          *         net.sf.hibernate.HibernateException
131 |  |
          */
132 | 0 |
         public ClassMetadata getClassMetadata(Class persistentClass)
133 |  |
                 throws HibernateException {
134 | 0 |
             return source.getClassMetadata(persistentClass);
135 |  |
         }
136 |  |
137 |  |
         /**
138 |  |
          * @param roleName
139 |  |
          * @return @throws
140 |  |
          *         net.sf.hibernate.HibernateException
141 |  |
          */
142 | 0 |
         public CollectionMetadata getCollectionMetadata(String roleName)
143 |  |
                 throws HibernateException {
144 | 0 |
             return source.getCollectionMetadata(roleName);
145 |  |
         }
146 |  |
147 |  |
         /**
148 |  |
          * @return @throws
149 |  |
          *         javax.naming.NamingException
150 |  |
          */
151 | 0 |
         public Reference getReference() throws NamingException {
152 | 0 |
             return source.getReference();
153 |  |
         }
154 |  |
155 |  |
         /**
156 |  |
          * @return @throws
157 |  |
          *         net.sf.hibernate.HibernateException
158 |  |
          */
159 | 0 |
         public Databinder openDatabinder() throws HibernateException {
160 | 0 |
             return source.openDatabinder();
161 |  |
         }
162 |  |
163 |  |
         /**
164 |  |
          * @return @throws
165 |  |
          *         net.sf.hibernate.HibernateException
166 |  |
          */
167 | 0 |
         public Session openSession() throws HibernateException {
168 | 0 |
             return source.openSession();
169 |  |
         }
170 |  |
171 |  |
         /**
172 |  |
          * @param connection
173 |  |
          * @return
174 |  |
          */
175 | 0 |
         public Session openSession(Connection connection) {
176 | 0 |
             return source.openSession(connection);
177 |  |
         }
178 |  |
179 |  |
         /**
180 |  |
          * @param connection
181 |  |
          * @param interceptor
182 |  |
          * @return
183 |  |
          */
184 | 0 |
         public Session openSession(Connection connection, Interceptor interceptor) {
185 | 0 |
             return source.openSession(connection, interceptor);
186 |  |
         }
187 |  |
188 |  |
         /**
189 |  |
          * @param interceptor
190 |  |
          * @return @throws
191 |  |
          *         net.sf.hibernate.HibernateException
192 |  |
          */
193 | 0 |
         public Session openSession(Interceptor interceptor)
194 |  |
                 throws HibernateException {
195 | 0 |
             return source.openSession(interceptor);
196 |  |
         }
197 |  |
198 |  |
     }