java/jdbc-loopback-driver/src/info/globalcode/jdbc/loopback/Connection.java
branchv_0
changeset 237 7e08730da258
parent 236 a3ec71fa8e17
child 238 4a1864c3e867
     1.1 --- a/java/jdbc-loopback-driver/src/info/globalcode/jdbc/loopback/Connection.java	Tue Feb 26 18:19:49 2019 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,135 +0,0 @@
     1.4 -/**
     1.5 - * SQL-DK
     1.6 - * Copyright © 2014 František Kučera (frantovo.cz)
     1.7 - *
     1.8 - * This program is free software: you can redistribute it and/or modify
     1.9 - * it under the terms of the GNU General Public License as published by
    1.10 - * the Free Software Foundation, either version 3 of the License, or
    1.11 - * (at your option) any later version.
    1.12 - *
    1.13 - * This program is distributed in the hope that it will be useful,
    1.14 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    1.16 - * GNU General Public License for more details.
    1.17 - *
    1.18 - * You should have received a copy of the GNU General Public License
    1.19 - * along with this program. If not, see <http://www.gnu.org/licenses/>.
    1.20 - */
    1.21 -package info.globalcode.jdbc.loopback;
    1.22 -
    1.23 -import java.sql.SQLClientInfoException;
    1.24 -import java.sql.SQLException;
    1.25 -import java.sql.SQLWarning;
    1.26 -import java.sql.Savepoint;
    1.27 -import java.util.Map;
    1.28 -import java.util.Properties;
    1.29 -import java.util.concurrent.Executor;
    1.30 -
    1.31 -/**
    1.32 - *
    1.33 - * @author Ing. František Kučera (frantovo.cz)
    1.34 - */
    1.35 -public class Connection extends AbstractConnection {
    1.36 -
    1.37 -	private String url;
    1.38 -	private Properties info;
    1.39 -
    1.40 -	public Connection(String url, Properties info) {
    1.41 -		this.url = url;
    1.42 -		this.info = info;
    1.43 -	}
    1.44 -
    1.45 -	@Override
    1.46 -	public java.sql.PreparedStatement prepareStatement(String sql) throws SQLException {
    1.47 -		return new PreparedStatement();
    1.48 -	}
    1.49 -
    1.50 -	@Override
    1.51 -	public void setAutoCommit(boolean autoCommit) throws SQLException {
    1.52 -	}
    1.53 -
    1.54 -	@Override
    1.55 -	public boolean getAutoCommit() throws SQLException {
    1.56 -		return true;
    1.57 -	}
    1.58 -
    1.59 -	@Override
    1.60 -	public void commit() throws SQLException {
    1.61 -	}
    1.62 -
    1.63 -	@Override
    1.64 -	public void rollback() throws SQLException {
    1.65 -	}
    1.66 -
    1.67 -	@Override
    1.68 -	public void close() throws SQLException {
    1.69 -	}
    1.70 -
    1.71 -	@Override
    1.72 -	public boolean isClosed() throws SQLException {
    1.73 -		return false;
    1.74 -	}
    1.75 -
    1.76 -	@Override
    1.77 -	public void setReadOnly(boolean readOnly) throws SQLException {
    1.78 -	}
    1.79 -
    1.80 -	@Override
    1.81 -	public boolean isReadOnly() throws SQLException {
    1.82 -		return true;
    1.83 -	}
    1.84 -
    1.85 -	@Override
    1.86 -	public void setCatalog(String catalog) throws SQLException {
    1.87 -	}
    1.88 -
    1.89 -	@Override
    1.90 -	public void setTransactionIsolation(int level) throws SQLException {
    1.91 -	}
    1.92 -
    1.93 -	@Override
    1.94 -	public SQLWarning getWarnings() throws SQLException {
    1.95 -		return null;
    1.96 -	}
    1.97 -
    1.98 -	@Override
    1.99 -	public void clearWarnings() throws SQLException {
   1.100 -	}
   1.101 -
   1.102 -	@Override
   1.103 -	public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
   1.104 -	}
   1.105 -
   1.106 -	@Override
   1.107 -	public void setHoldability(int holdability) throws SQLException {
   1.108 -	}
   1.109 -
   1.110 -	@Override
   1.111 -	public void rollback(Savepoint savepoint) throws SQLException {
   1.112 -	}
   1.113 -
   1.114 -	@Override
   1.115 -	public void releaseSavepoint(Savepoint savepoint) throws SQLException {
   1.116 -	}
   1.117 -
   1.118 -	@Override
   1.119 -	public boolean isValid(int timeout) throws SQLException {
   1.120 -		return true;
   1.121 -	}
   1.122 -
   1.123 -	@Override
   1.124 -	public void setClientInfo(String name, String value) throws SQLClientInfoException {
   1.125 -	}
   1.126 -
   1.127 -	@Override
   1.128 -	public void setClientInfo(Properties properties) throws SQLClientInfoException {
   1.129 -	}
   1.130 -
   1.131 -	@Override
   1.132 -	public void abort(Executor executor) throws SQLException {
   1.133 -	}
   1.134 -
   1.135 -	@Override
   1.136 -	public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException {
   1.137 -	}
   1.138 -}