1 package com.atlassian.activeobjects.spi.factory;
2
3 import java.sql.Array;
4 import java.sql.Blob;
5 import java.sql.CallableStatement;
6 import java.sql.Clob;
7 import java.sql.Connection;
8 import java.sql.DatabaseMetaData;
9 import java.sql.NClob;
10 import java.sql.PreparedStatement;
11 import java.sql.SQLClientInfoException;
12 import java.sql.SQLException;
13 import java.sql.SQLWarning;
14 import java.sql.SQLXML;
15 import java.sql.Savepoint;
16 import java.sql.Statement;
17 import java.sql.Struct;
18 import java.util.Map;
19 import java.util.Properties;
20 import java.util.concurrent.Executor;
21
22
23
24
25 public class PrivateConnectionFactory {
26
27 public static Connection newPrivateConnection() {
28 return new PrivateConnection();
29 }
30
31 private static class PrivateConnection implements Connection {
32
33 @Override
34 public Statement createStatement() throws SQLException {
35 return null;
36 }
37
38 @Override
39 public PreparedStatement prepareStatement(final String sql) throws SQLException {
40 return null;
41 }
42
43 @Override
44 public CallableStatement prepareCall(final String sql) throws SQLException {
45 return null;
46 }
47
48 @Override
49 public String nativeSQL(final String sql) throws SQLException {
50 return null;
51 }
52
53 @Override
54 public void setAutoCommit(final boolean autoCommit) throws SQLException {
55 }
56
57 @Override
58 public boolean getAutoCommit() throws SQLException {
59 return false;
60 }
61
62 @Override
63 public void commit() throws SQLException {
64 }
65
66 @Override
67 public void rollback() throws SQLException {
68 }
69
70 @Override
71 public void close() throws SQLException {
72 }
73
74 @Override
75 public boolean isClosed() throws SQLException {
76 return false;
77 }
78
79 @Override
80 public DatabaseMetaData getMetaData() throws SQLException {
81 return null;
82 }
83
84 @Override
85 public void setReadOnly(final boolean readOnly) throws SQLException {
86 }
87
88 @Override
89 public boolean isReadOnly() throws SQLException {
90 return false;
91 }
92
93 @Override
94 public void setCatalog(final String catalog) throws SQLException {
95 }
96
97 @Override
98 public String getCatalog() throws SQLException {
99 return null;
100 }
101
102 @Override
103 public void setTransactionIsolation(final int level) throws SQLException {
104 }
105
106 @Override
107 public int getTransactionIsolation() throws SQLException {
108 return 0;
109 }
110
111 @Override
112 public SQLWarning getWarnings() throws SQLException {
113 return null;
114 }
115
116 @Override
117 public void clearWarnings() throws SQLException {
118 }
119
120 @Override
121 public Statement createStatement(final int resultSetType, final int resultSetConcurrency) throws SQLException {
122 return null;
123 }
124
125 @Override
126 public PreparedStatement prepareStatement(final String sql, final int resultSetType, final int resultSetConcurrency) throws SQLException {
127 return null;
128 }
129
130 @Override
131 public CallableStatement prepareCall(final String sql, final int resultSetType, final int resultSetConcurrency) throws SQLException {
132 return null;
133 }
134
135 @Override
136 public Map<String, Class<?>> getTypeMap() throws SQLException {
137 return null;
138 }
139
140 @Override
141 public void setTypeMap(final Map<String, Class<?>> map) throws SQLException {
142 }
143
144 @Override
145 public void setHoldability(final int holdability) throws SQLException {
146 }
147
148 @Override
149 public int getHoldability() throws SQLException {
150 return 0;
151 }
152
153 @Override
154 public Savepoint setSavepoint() throws SQLException {
155 return null;
156 }
157
158 @Override
159 public Savepoint setSavepoint(final String name) throws SQLException {
160 return null;
161 }
162
163 @Override
164 public void rollback(final Savepoint savepoint) throws SQLException {
165 }
166
167 @Override
168 public void releaseSavepoint(final Savepoint savepoint) throws SQLException {
169 }
170
171 @Override
172 public Statement createStatement(final int resultSetType, final int resultSetConcurrency, final int resultSetHoldability) throws SQLException {
173 return null;
174 }
175
176 @Override
177 public PreparedStatement prepareStatement(final String sql, final int resultSetType, final int resultSetConcurrency, final int resultSetHoldability) throws SQLException {
178 return null;
179 }
180
181 @Override
182 public CallableStatement prepareCall(final String sql, final int resultSetType, final int resultSetConcurrency, final int resultSetHoldability) throws SQLException {
183 return null;
184 }
185
186 @Override
187 public PreparedStatement prepareStatement(final String sql, final int autoGeneratedKeys) throws SQLException {
188 return null;
189 }
190
191 @Override
192 public PreparedStatement prepareStatement(final String sql, final int[] columnIndexes) throws SQLException {
193 return null;
194 }
195
196 @Override
197 public PreparedStatement prepareStatement(final String sql, final String[] columnNames) throws SQLException {
198 return null;
199 }
200
201 @Override
202 public Clob createClob() throws SQLException {
203 return null;
204 }
205
206 @Override
207 public Blob createBlob() throws SQLException {
208 return null;
209 }
210
211 @Override
212 public NClob createNClob() throws SQLException {
213 return null;
214 }
215
216 @Override
217 public SQLXML createSQLXML() throws SQLException {
218 return null;
219 }
220
221 @Override
222 public boolean isValid(final int timeout) throws SQLException {
223 return false;
224 }
225
226 @Override
227 public void setClientInfo(final String name, final String value) throws SQLClientInfoException {
228 }
229
230 @Override
231 public void setClientInfo(final Properties properties) throws SQLClientInfoException {
232 }
233
234 @Override
235 public String getClientInfo(final String name) throws SQLException {
236 return null;
237 }
238
239 @Override
240 public Properties getClientInfo() throws SQLException {
241 return null;
242 }
243
244 @Override
245 public Array createArrayOf(final String typeName, final Object[] elements) throws SQLException {
246 return null;
247 }
248
249 @Override
250 public Struct createStruct(final String typeName, final Object[] attributes) throws SQLException {
251 return null;
252 }
253
254 public void setSchema(final String schema) throws SQLException {
255 }
256
257 public String getSchema() throws SQLException {
258 return null;
259 }
260
261 public void abort(final Executor executor) throws SQLException {
262 }
263
264 public void setNetworkTimeout(final Executor executor, final int milliseconds) throws SQLException {
265 }
266
267 public int getNetworkTimeout() throws SQLException {
268 return 0;
269 }
270
271 @Override
272 public <T> T unwrap(final Class<T> iface) throws SQLException {
273 return null;
274 }
275
276 @Override
277 public boolean isWrapperFor(final Class<?> iface) throws SQLException {
278 return false;
279 }
280
281 }
282
283 }