1 package com.imcode.db.mock;
2
3 import org.apache.commons.lang.NotImplementedException;
4
5 import java.sql.*;
6 import java.util.Map;
7
8 public class MockConnection implements Connection {
9
10 public int getTransactionIsolation() {
11 throw new NotImplementedException( MockConnection.class );
12 }
13
14 public void setTypeMap(Map map) {
15 throw new NotImplementedException( MockConnection.class );
16 }
17
18 public int getHoldability() throws SQLException {
19 throw new NotImplementedException( MockConnection.class );
20 }
21
22 public void clearWarnings() throws SQLException {
23 throw new NotImplementedException( MockConnection.class );
24 }
25
26 public void close() throws SQLException {
27 }
28
29 public void commit() throws SQLException {}
30
31 public void rollback() throws SQLException {}
32
33 public boolean getAutoCommit() throws SQLException {
34 throw new NotImplementedException( MockConnection.class );
35 }
36
37 public boolean isClosed() throws SQLException {
38 throw new NotImplementedException( MockConnection.class );
39 }
40
41 public boolean isReadOnly() throws SQLException {
42 throw new NotImplementedException( MockConnection.class );
43 }
44
45 public void setHoldability( int holdability ) throws SQLException {
46 throw new NotImplementedException( MockConnection.class );
47 }
48
49 public void setTransactionIsolation( int level ) throws SQLException {
50 }
51
52 public void setAutoCommit( boolean autoCommit ) throws SQLException {
53 }
54
55 public void setReadOnly( boolean readOnly ) throws SQLException {
56 throw new NotImplementedException( MockConnection.class );
57 }
58
59 public String getCatalog() throws SQLException {
60 throw new NotImplementedException( MockConnection.class );
61 }
62
63 public void setCatalog( String catalog ) throws SQLException {
64 throw new NotImplementedException( MockConnection.class );
65 }
66
67 public DatabaseMetaData getMetaData() throws SQLException {
68 throw new NotImplementedException( MockConnection.class );
69 }
70
71 public SQLWarning getWarnings() throws SQLException {
72 throw new NotImplementedException( MockConnection.class );
73 }
74
75 public Savepoint setSavepoint() throws SQLException {
76 throw new NotImplementedException( MockConnection.class );
77 }
78
79 public void releaseSavepoint( Savepoint savepoint ) throws SQLException {
80 throw new NotImplementedException( MockConnection.class );
81 }
82
83 public void rollback( Savepoint savepoint ) throws SQLException {
84 throw new NotImplementedException( MockConnection.class );
85 }
86
87 public Statement createStatement() throws SQLException {
88 throw new NotImplementedException( MockConnection.class );
89 }
90
91 public Statement createStatement( int resultSetType, int resultSetConcurrency )
92 throws SQLException {
93 throw new NotImplementedException( MockConnection.class );
94 }
95
96 public Statement createStatement( int resultSetType, int resultSetConcurrency,
97 int resultSetHoldability ) throws SQLException {
98 throw new NotImplementedException( MockConnection.class );
99 }
100
101 public Map getTypeMap() throws SQLException {
102 throw new NotImplementedException( MockConnection.class );
103 }
104
105 public String nativeSQL( String sql ) throws SQLException {
106 throw new NotImplementedException( MockConnection.class );
107 }
108
109 public CallableStatement prepareCall( String sql ) throws SQLException {
110 throw new NotImplementedException( MockConnection.class );
111 }
112
113 public CallableStatement prepareCall( String sql, int resultSetType,
114 int resultSetConcurrency ) throws SQLException {
115 throw new NotImplementedException( MockConnection.class );
116 }
117
118 public CallableStatement prepareCall( String sql, int resultSetType,
119 int resultSetConcurrency,
120 int resultSetHoldability ) throws SQLException {
121 throw new NotImplementedException( MockConnection.class );
122 }
123
124 public PreparedStatement prepareStatement( String sql )
125 throws SQLException {
126 throw new NotImplementedException( MockConnection.class );
127 }
128
129 public PreparedStatement prepareStatement( String sql, int autoGeneratedKeys )
130 throws SQLException {
131 throw new NotImplementedException( MockConnection.class );
132 }
133
134 public PreparedStatement prepareStatement( String sql, int resultSetType,
135 int resultSetConcurrency )
136 throws SQLException {
137 throw new NotImplementedException( MockConnection.class );
138 }
139
140 public PreparedStatement prepareStatement( String sql, int resultSetType,
141 int resultSetConcurrency, int resultSetHoldability )
142 throws SQLException {
143 throw new NotImplementedException( MockConnection.class );
144 }
145
146 public PreparedStatement prepareStatement( String sql, int columnIndexes[] )
147 throws SQLException {
148 throw new NotImplementedException( MockConnection.class );
149 }
150
151 public Savepoint setSavepoint( String name ) throws SQLException {
152 throw new NotImplementedException( MockConnection.class );
153 }
154
155 public PreparedStatement prepareStatement( String sql, String columnNames[] )
156 throws SQLException {
157 throw new NotImplementedException( MockConnection.class );
158 }
159
160 }