|
|||||||||||||||||||
| 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 | |||||||||||||||
| MockBaseConnection.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.sql.CallableStatement;
|
|
| 11 |
import java.sql.Connection;
|
|
| 12 |
import java.sql.DatabaseMetaData;
|
|
| 13 |
import java.sql.PreparedStatement;
|
|
| 14 |
import java.sql.SQLException;
|
|
| 15 |
import java.sql.SQLWarning;
|
|
| 16 |
import java.sql.Savepoint;
|
|
| 17 |
import java.sql.Statement;
|
|
| 18 |
import java.util.Map;
|
|
| 19 |
|
|
| 20 |
/**
|
|
| 21 |
* @author akima
|
|
| 22 |
*/
|
|
| 23 |
public class MockBaseConnection implements Connection { |
|
| 24 |
|
|
| 25 |
/**
|
|
| 26 |
*
|
|
| 27 |
*/
|
|
| 28 | 0 |
public MockBaseConnection() {
|
| 29 | 0 |
super();
|
| 30 |
} |
|
| 31 |
|
|
| 32 |
/**
|
|
| 33 |
* @see java.sql.Connection#clearWarnings()
|
|
| 34 |
*/
|
|
| 35 | 0 |
public void clearWarnings() throws SQLException { |
| 36 |
//do nothing
|
|
| 37 |
} |
|
| 38 |
|
|
| 39 |
/**
|
|
| 40 |
* @see java.sql.Connection#close()
|
|
| 41 |
*/
|
|
| 42 | 0 |
public void close() throws SQLException { |
| 43 |
//do nothing
|
|
| 44 |
} |
|
| 45 |
|
|
| 46 |
/**
|
|
| 47 |
* @see java.sql.Connection#commit()
|
|
| 48 |
*/
|
|
| 49 | 0 |
public void commit() throws SQLException { |
| 50 |
//do nothing
|
|
| 51 |
} |
|
| 52 |
|
|
| 53 |
/**
|
|
| 54 |
* @see java.sql.Connection#createStatement()
|
|
| 55 |
*/
|
|
| 56 | 0 |
public Statement createStatement() throws SQLException { |
| 57 | 0 |
return null; |
| 58 |
} |
|
| 59 |
|
|
| 60 |
/**
|
|
| 61 |
* @see java.sql.Connection#createStatement(int, int, int)
|
|
| 62 |
*/
|
|
| 63 | 0 |
public Statement createStatement(int resultSetType, |
| 64 |
int resultSetConcurrency, int resultSetHoldability) |
|
| 65 |
throws SQLException {
|
|
| 66 | 0 |
return null; |
| 67 |
} |
|
| 68 |
|
|
| 69 |
/**
|
|
| 70 |
* @see java.sql.Connection#createStatement(int, int)
|
|
| 71 |
*/
|
|
| 72 | 0 |
public Statement createStatement(int resultSetType, int resultSetConcurrency) |
| 73 |
throws SQLException {
|
|
| 74 | 0 |
return null; |
| 75 |
} |
|
| 76 |
|
|
| 77 |
/**
|
|
| 78 |
* @see java.sql.Connection#getAutoCommit()
|
|
| 79 |
*/
|
|
| 80 | 0 |
public boolean getAutoCommit() throws SQLException { |
| 81 | 0 |
return false; |
| 82 |
} |
|
| 83 |
|
|
| 84 |
/**
|
|
| 85 |
* @see java.sql.Connection#getCatalog()
|
|
| 86 |
*/
|
|
| 87 | 0 |
public String getCatalog() throws SQLException { |
| 88 | 0 |
return null; |
| 89 |
} |
|
| 90 |
|
|
| 91 |
/**
|
|
| 92 |
* @see java.sql.Connection#getHoldability()
|
|
| 93 |
*/
|
|
| 94 | 0 |
public int getHoldability() throws SQLException { |
| 95 | 0 |
return 0;
|
| 96 |
} |
|
| 97 |
|
|
| 98 |
/**
|
|
| 99 |
* @see java.sql.Connection#getMetaData()
|
|
| 100 |
*/
|
|
| 101 | 0 |
public DatabaseMetaData getMetaData() throws SQLException { |
| 102 | 0 |
return null; |
| 103 |
} |
|
| 104 |
|
|
| 105 |
/**
|
|
| 106 |
* @see java.sql.Connection#getTransactionIsolation()
|
|
| 107 |
*/
|
|
| 108 | 0 |
public int getTransactionIsolation() throws SQLException { |
| 109 | 0 |
return 0;
|
| 110 |
} |
|
| 111 |
|
|
| 112 |
/**
|
|
| 113 |
* @see java.sql.Connection#getTypeMap()
|
|
| 114 |
*/
|
|
| 115 | 0 |
public Map getTypeMap() throws SQLException { |
| 116 | 0 |
return null; |
| 117 |
} |
|
| 118 |
|
|
| 119 |
/**
|
|
| 120 |
* @see java.sql.Connection#getWarnings()
|
|
| 121 |
*/
|
|
| 122 | 0 |
public SQLWarning getWarnings() throws SQLException { |
| 123 | 0 |
return null; |
| 124 |
} |
|
| 125 |
|
|
| 126 |
/**
|
|
| 127 |
* @see java.sql.Connection#isClosed()
|
|
| 128 |
*/
|
|
| 129 | 0 |
public boolean isClosed() throws SQLException { |
| 130 | 0 |
return false; |
| 131 |
} |
|
| 132 |
|
|
| 133 |
/**
|
|
| 134 |
* @see java.sql.Connection#isReadOnly()
|
|
| 135 |
*/
|
|
| 136 | 0 |
public boolean isReadOnly() throws SQLException { |
| 137 | 0 |
return false; |
| 138 |
} |
|
| 139 |
|
|
| 140 |
/**
|
|
| 141 |
* @see java.sql.Connection#nativeSQL(java.lang.String)
|
|
| 142 |
*/
|
|
| 143 | 0 |
public String nativeSQL(String sql) throws SQLException { |
| 144 | 0 |
return null; |
| 145 |
} |
|
| 146 |
|
|
| 147 |
/**
|
|
| 148 |
* @see java.sql.Connection#prepareCall(java.lang.String, int, int, int)
|
|
| 149 |
*/
|
|
| 150 | 0 |
public CallableStatement prepareCall(String sql, int resultSetType, |
| 151 |
int resultSetConcurrency, int resultSetHoldability) |
|
| 152 |
throws SQLException {
|
|
| 153 | 0 |
return null; |
| 154 |
} |
|
| 155 |
|
|
| 156 |
/**
|
|
| 157 |
* @see java.sql.Connection#prepareCall(java.lang.String, int, int)
|
|
| 158 |
*/
|
|
| 159 | 0 |
public CallableStatement prepareCall(String sql, int resultSetType, |
| 160 |
int resultSetConcurrency) throws SQLException { |
|
| 161 | 0 |
return null; |
| 162 |
} |
|
| 163 |
|
|
| 164 |
/**
|
|
| 165 |
* @see java.sql.Connection#prepareCall(java.lang.String)
|
|
| 166 |
*/
|
|
| 167 | 0 |
public CallableStatement prepareCall(String sql) throws SQLException { |
| 168 | 0 |
return null; |
| 169 |
} |
|
| 170 |
|
|
| 171 |
/**
|
|
| 172 |
* @see java.sql.Connection#prepareStatement(java.lang.String, int, int,
|
|
| 173 |
* int)
|
|
| 174 |
*/
|
|
| 175 | 0 |
public PreparedStatement prepareStatement(String sql, int resultSetType, |
| 176 |
int resultSetConcurrency, int resultSetHoldability) |
|
| 177 |
throws SQLException {
|
|
| 178 | 0 |
return null; |
| 179 |
} |
|
| 180 |
|
|
| 181 |
/**
|
|
| 182 |
* @see java.sql.Connection#prepareStatement(java.lang.String, int, int)
|
|
| 183 |
*/
|
|
| 184 | 0 |
public PreparedStatement prepareStatement(String sql, int resultSetType, |
| 185 |
int resultSetConcurrency) throws SQLException { |
|
| 186 | 0 |
return null; |
| 187 |
} |
|
| 188 |
|
|
| 189 |
/**
|
|
| 190 |
* @see java.sql.Connection#prepareStatement(java.lang.String, int)
|
|
| 191 |
*/
|
|
| 192 | 0 |
public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) |
| 193 |
throws SQLException {
|
|
| 194 | 0 |
return null; |
| 195 |
} |
|
| 196 |
|
|
| 197 |
/**
|
|
| 198 |
* @see java.sql.Connection#prepareStatement(java.lang.String, int[])
|
|
| 199 |
*/
|
|
| 200 | 0 |
public PreparedStatement prepareStatement(String sql, int[] columnIndexes) |
| 201 |
throws SQLException {
|
|
| 202 | 0 |
return null; |
| 203 |
} |
|
| 204 |
|
|
| 205 |
/**
|
|
| 206 |
* @see java.sql.Connection#prepareStatement(java.lang.String,
|
|
| 207 |
* java.lang.String[])
|
|
| 208 |
*/
|
|
| 209 | 0 |
public PreparedStatement prepareStatement(String sql, String[] columnNames)
|
| 210 |
throws SQLException {
|
|
| 211 | 0 |
return null; |
| 212 |
} |
|
| 213 |
|
|
| 214 |
/**
|
|
| 215 |
* @see java.sql.Connection#prepareStatement(java.lang.String)
|
|
| 216 |
*/
|
|
| 217 | 0 |
public PreparedStatement prepareStatement(String sql) throws SQLException { |
| 218 | 0 |
return null; |
| 219 |
} |
|
| 220 |
|
|
| 221 |
/**
|
|
| 222 |
* @see java.sql.Connection#releaseSavepoint(java.sql.Savepoint)
|
|
| 223 |
*/
|
|
| 224 | 0 |
public void releaseSavepoint(Savepoint savepoint) throws SQLException { |
| 225 |
//do nothing
|
|
| 226 |
} |
|
| 227 |
|
|
| 228 |
/**
|
|
| 229 |
* @see java.sql.Connection#rollback()
|
|
| 230 |
*/
|
|
| 231 | 0 |
public void rollback() throws SQLException { |
| 232 |
//do nothing
|
|
| 233 |
} |
|
| 234 |
|
|
| 235 |
/**
|
|
| 236 |
* @see java.sql.Connection#rollback(java.sql.Savepoint)
|
|
| 237 |
*/
|
|
| 238 | 0 |
public void rollback(Savepoint savepoint) throws SQLException { |
| 239 |
//do nothing
|
|
| 240 |
} |
|
| 241 |
|
|
| 242 |
/**
|
|
| 243 |
* @see java.sql.Connection#setAutoCommit(boolean)
|
|
| 244 |
*/
|
|
| 245 | 0 |
public void setAutoCommit(boolean autoCommit) throws SQLException { |
| 246 |
//do nothing
|
|
| 247 |
} |
|
| 248 |
|
|
| 249 |
/**
|
|
| 250 |
* @see java.sql.Connection#setCatalog(java.lang.String)
|
|
| 251 |
*/
|
|
| 252 | 0 |
public void setCatalog(String catalog) throws SQLException { |
| 253 |
//do nothing
|
|
| 254 |
} |
|
| 255 |
|
|
| 256 |
/**
|
|
| 257 |
* @see java.sql.Connection#setHoldability(int)
|
|
| 258 |
*/
|
|
| 259 | 0 |
public void setHoldability(int holdability) throws SQLException { |
| 260 |
//do nothing
|
|
| 261 |
} |
|
| 262 |
|
|
| 263 |
/**
|
|
| 264 |
* @see java.sql.Connection#setReadOnly(boolean)
|
|
| 265 |
*/
|
|
| 266 | 0 |
public void setReadOnly(boolean readOnly) throws SQLException { |
| 267 |
//do nothing
|
|
| 268 |
} |
|
| 269 |
|
|
| 270 |
/**
|
|
| 271 |
* @see java.sql.Connection#setSavepoint()
|
|
| 272 |
*/
|
|
| 273 | 0 |
public Savepoint setSavepoint() throws SQLException { |
| 274 | 0 |
return null; |
| 275 |
} |
|
| 276 |
|
|
| 277 |
/**
|
|
| 278 |
* @see java.sql.Connection#setSavepoint(java.lang.String)
|
|
| 279 |
*/
|
|
| 280 | 0 |
public Savepoint setSavepoint(String name) throws SQLException { |
| 281 | 0 |
return null; |
| 282 |
} |
|
| 283 |
|
|
| 284 |
/**
|
|
| 285 |
* @see java.sql.Connection#setTransactionIsolation(int)
|
|
| 286 |
*/
|
|
| 287 | 0 |
public void setTransactionIsolation(int level) throws SQLException { |
| 288 |
//do nothing
|
|
| 289 |
} |
|
| 290 |
|
|
| 291 |
/**
|
|
| 292 |
* @see java.sql.Connection#setTypeMap(java.util.Map)
|
|
| 293 |
*/
|
|
| 294 | 0 |
public void setTypeMap(Map map) throws SQLException { |
| 295 |
//do nothing
|
|
| 296 |
} |
|
| 297 |
|
|
| 298 |
} |
|
||||||||||