|
|||||||||||||||||||
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 | |||||||||||||||
MockBaseDataSource.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.mockbase;
|
|
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 MockBaseDataSource implements DataSource { |
|
20 |
|
|
21 |
/**
|
|
22 |
*
|
|
23 |
*/
|
|
24 | 0 |
public MockBaseDataSource() {
|
25 | 0 |
super();
|
26 |
} |
|
27 |
|
|
28 |
/**
|
|
29 |
* @see javax.sql.DataSource#getConnection()
|
|
30 |
*/
|
|
31 | 0 |
public Connection getConnection() throws SQLException { |
32 | 0 |
return null; |
33 |
} |
|
34 |
|
|
35 |
/**
|
|
36 |
* @see javax.sql.DataSource#getConnection(java.lang.String,
|
|
37 |
* java.lang.String)
|
|
38 |
*/
|
|
39 | 0 |
public Connection getConnection(String username, String password)
|
40 |
throws SQLException {
|
|
41 | 0 |
return null; |
42 |
} |
|
43 |
|
|
44 |
/**
|
|
45 |
* @see javax.sql.DataSource#getLogWriter()
|
|
46 |
*/
|
|
47 | 0 |
public PrintWriter getLogWriter() throws SQLException { |
48 | 0 |
return null; |
49 |
} |
|
50 |
|
|
51 |
/**
|
|
52 |
* @see javax.sql.DataSource#setLogWriter(java.io.PrintWriter)
|
|
53 |
*/
|
|
54 | 0 |
public void setLogWriter(PrintWriter out) throws SQLException { |
55 |
//do nothing
|
|
56 |
} |
|
57 |
|
|
58 |
/**
|
|
59 |
* @see javax.sql.DataSource#setLoginTimeout(int)
|
|
60 |
*/
|
|
61 | 0 |
public void setLoginTimeout(int seconds) throws SQLException { |
62 |
//do nothing
|
|
63 |
} |
|
64 |
|
|
65 |
/**
|
|
66 |
* @see javax.sql.DataSource#getLoginTimeout()
|
|
67 |
*/
|
|
68 | 0 |
public int getLoginTimeout() throws SQLException { |
69 | 0 |
return 0;
|
70 |
} |
|
71 |
|
|
72 |
} |
|