java/jdbc-loopback-driver/src/main/java/info/globalcode/jdbc/loopback/AbstractConnection.java
3 * Copyright © 2014 František Kučera (frantovo.cz)
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3 of the License.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package info.globalcode.jdbc.loopback;
19 import java.sql.Array;
21 import java.sql.CallableStatement;
23 import java.sql.DatabaseMetaData;
24 import java.sql.NClob;
25 import java.sql.SQLClientInfoException;
26 import java.sql.SQLException;
27 import java.sql.SQLWarning;
28 import java.sql.SQLXML;
29 import java.sql.Savepoint;
30 import java.sql.Struct;
32 import java.util.Properties;
33 import java.util.concurrent.Executor;
37 * @author Ing. František Kučera (frantovo.cz)
39 public abstract class AbstractConnection implements java.sql.Connection {
42 public java.sql.Statement createStatement() throws SQLException {
43 throw new SQLException("Not supported yet.");
47 public java.sql.PreparedStatement prepareStatement(String sql) throws SQLException {
48 throw new SQLException("Not supported yet.");
52 public CallableStatement prepareCall(String sql) throws SQLException {
53 throw new SQLException("Not supported yet.");
57 public String nativeSQL(String sql) throws SQLException {
58 throw new SQLException("Not supported yet.");
62 public void setAutoCommit(boolean autoCommit) throws SQLException {
63 throw new SQLException("Not supported yet.");
67 public boolean getAutoCommit() throws SQLException {
68 throw new SQLException("Not supported yet.");
72 public void commit() throws SQLException {
73 throw new SQLException("Not supported yet.");
77 public void rollback() throws SQLException {
78 throw new SQLException("Not supported yet.");
82 public void close() throws SQLException {
83 throw new SQLException("Not supported yet.");
87 public boolean isClosed() throws SQLException {
88 throw new SQLException("Not supported yet.");
92 public DatabaseMetaData getMetaData() throws SQLException {
93 throw new SQLException("Not supported yet.");
97 public void setReadOnly(boolean readOnly) throws SQLException {
98 throw new SQLException("Not supported yet.");
102 public boolean isReadOnly() throws SQLException {
103 throw new SQLException("Not supported yet.");
107 public void setCatalog(String catalog) throws SQLException {
108 throw new SQLException("Not supported yet.");
112 public String getCatalog() throws SQLException {
113 throw new SQLException("Not supported yet.");
117 public void setTransactionIsolation(int level) throws SQLException {
118 throw new SQLException("Not supported yet.");
122 public int getTransactionIsolation() throws SQLException {
123 throw new SQLException("Not supported yet.");
127 public SQLWarning getWarnings() throws SQLException {
128 throw new SQLException("Not supported yet.");
132 public void clearWarnings() throws SQLException {
133 throw new SQLException("Not supported yet.");
137 public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException {
138 throw new SQLException("Not supported yet.");
142 public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
143 throw new SQLException("Not supported yet.");
147 public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
148 throw new SQLException("Not supported yet.");
152 public Map<String, Class<?>> getTypeMap() throws SQLException {
153 throw new SQLException("Not supported yet.");
157 public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
158 throw new SQLException("Not supported yet.");
162 public void setHoldability(int holdability) throws SQLException {
163 throw new SQLException("Not supported yet.");
167 public int getHoldability() throws SQLException {
168 throw new SQLException("Not supported yet.");
172 public Savepoint setSavepoint() throws SQLException {
173 throw new SQLException("Not supported yet.");
177 public Savepoint setSavepoint(String name) throws SQLException {
178 throw new SQLException("Not supported yet.");
182 public void rollback(Savepoint savepoint) throws SQLException {
183 throw new SQLException("Not supported yet.");
187 public void releaseSavepoint(Savepoint savepoint) throws SQLException {
188 throw new SQLException("Not supported yet.");
192 public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
193 throw new SQLException("Not supported yet.");
197 public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
198 throw new SQLException("Not supported yet.");
202 public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
203 throw new SQLException("Not supported yet.");
207 public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException {
208 throw new SQLException("Not supported yet.");
212 public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException {
213 throw new SQLException("Not supported yet.");
217 public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException {
218 throw new SQLException("Not supported yet.");
222 public Clob createClob() throws SQLException {
223 throw new SQLException("Not supported yet.");
227 public Blob createBlob() throws SQLException {
228 throw new SQLException("Not supported yet.");
232 public NClob createNClob() throws SQLException {
233 throw new SQLException("Not supported yet.");
237 public SQLXML createSQLXML() throws SQLException {
238 throw new SQLException("Not supported yet.");
242 public boolean isValid(int timeout) throws SQLException {
243 throw new SQLException("Not supported yet.");
247 public void setClientInfo(String name, String value) throws SQLClientInfoException {
248 throw new SQLClientInfoException("Not supported yet.", null);
252 public void setClientInfo(Properties properties) throws SQLClientInfoException {
253 throw new SQLClientInfoException("Not supported yet.", null);
257 public String getClientInfo(String name) throws SQLException {
258 throw new SQLException("Not supported yet.");
262 public Properties getClientInfo() throws SQLException {
263 throw new SQLException("Not supported yet.");
267 public Array createArrayOf(String typeName, Object[] elements) throws SQLException {
268 throw new SQLException("Not supported yet.");
272 public Struct createStruct(String typeName, Object[] attributes) throws SQLException {
273 throw new SQLException("Not supported yet.");
277 public void setSchema(String schema) throws SQLException {
278 throw new SQLException("Not supported yet.");
282 public String getSchema() throws SQLException {
283 throw new SQLException("Not supported yet.");
287 public void abort(Executor executor) throws SQLException {
288 throw new SQLException("Not supported yet.");
292 public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException {
293 throw new SQLException("Not supported yet.");
297 public int getNetworkTimeout() throws SQLException {
298 throw new SQLException("Not supported yet.");
302 public <T> T unwrap(Class<T> iface) throws SQLException {
303 throw new SQLException("Not supported yet.");
307 public boolean isWrapperFor(Class<?> iface) throws SQLException {
308 throw new SQLException("Not supported yet.");