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: | 103 |  | Methods: | 10
| NCLOC: | 39 |  | 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
DataSourceWrapper.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 2003/12/11
7 |  |
      */
8 |  |
     package org.asyrinx.brownie.jdbc.wrapper;
9 |  |
10 |  |
     import java.io.PrintWriter;
11 |  |
     import java.sql.Connection;
12 |  |
     import java.sql.SQLException;
13 |  |
14 |  |
     import javax.sql.DataSource;
15 |  |
16 |  |
     /**
17 |  |
      * @author akima
18 |  |
      */
19 |  |
     public class DataSourceWrapper implements DataSource {
20 |  |
21 |  |
         /**
22 |  |
          * @param wrapped
23 |  |
          */
24 | 0 |
         public DataSourceWrapper(DataSource dataSource) {
25 | 0 |
             super();
26 | 0 |
             this.source = dataSource;
27 |  |
         }
28 |  |
29 |  |
         /**
30 |  |
          * @param wrapped
31 |  |
          */
32 | 0 |
         public DataSourceWrapper() {
33 | 0 |
             this(null);
34 |  |
         }
35 |  |
36 |  |
         protected DataSource source;
37 |  |
38 |  |
         /**
39 |  |
          * @return @throws
40 |  |
          *         java.sql.SQLException
41 |  |
          */
42 | 0 |
         public Connection getConnection() throws SQLException {
43 | 0 |
             return source.getConnection();
44 |  |
         }
45 |  |
46 |  |
         /**
47 |  |
          * @param username
48 |  |
          * @param password
49 |  |
          * @return @throws
50 |  |
          *         java.sql.SQLException
51 |  |
          */
52 | 0 |
         public Connection getConnection(String username, String password)
53 |  |
                 throws SQLException {
54 | 0 |
             return source.getConnection(username, password);
55 |  |
         }
56 |  |
57 |  |
         /**
58 |  |
          * @return @throws
59 |  |
          *         java.sql.SQLException
60 |  |
          */
61 | 0 |
         public int getLoginTimeout() throws SQLException {
62 | 0 |
             return source.getLoginTimeout();
63 |  |
         }
64 |  |
65 |  |
         /**
66 |  |
          * @return @throws
67 |  |
          *         java.sql.SQLException
68 |  |
          */
69 | 0 |
         public PrintWriter getLogWriter() throws SQLException {
70 | 0 |
             return source.getLogWriter();
71 |  |
         }
72 |  |
73 |  |
         /**
74 |  |
          * @param seconds
75 |  |
          * @throws java.sql.SQLException
76 |  |
          */
77 | 0 |
         public void setLoginTimeout(int seconds) throws SQLException {
78 | 0 |
             source.setLoginTimeout(seconds);
79 |  |
         }
80 |  |
81 |  |
         /**
82 |  |
          * @param out
83 |  |
          * @throws java.sql.SQLException
84 |  |
          */
85 | 0 |
         public void setLogWriter(PrintWriter out) throws SQLException {
86 | 0 |
             source.setLogWriter(out);
87 |  |
         }
88 |  |
89 |  |
         /**
90 |  |
          * @return
91 |  |
          */
92 | 0 |
         public DataSource getSource() {
93 | 0 |
             return source;
94 |  |
         }
95 |  |
96 |  |
         /**
97 |  |
          * @param source
98 |  |
          */
99 | 0 |
         public void setSource(DataSource source) {
100 | 0 |
             this.source = source;
101 |  |
         }
102 |  |
103 |  |
     }