franta-hg@171: /** franta-hg@171: * SQL-DK franta-hg@171: * Copyright © 2014 František Kučera (frantovo.cz) franta-hg@171: * franta-hg@171: * This program is free software: you can redistribute it and/or modify franta-hg@171: * it under the terms of the GNU General Public License as published by franta-hg@171: * the Free Software Foundation, either version 3 of the License, or franta-hg@171: * (at your option) any later version. franta-hg@171: * franta-hg@171: * This program is distributed in the hope that it will be useful, franta-hg@171: * but WITHOUT ANY WARRANTY; without even the implied warranty of franta-hg@171: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the franta-hg@171: * GNU General Public License for more details. franta-hg@171: * franta-hg@171: * You should have received a copy of the GNU General Public License franta-hg@171: * along with this program. If not, see . franta-hg@171: */ franta-hg@171: package info.globalcode.jdbc.loopback; franta-hg@171: franta-hg@171: import java.sql.SQLClientInfoException; franta-hg@171: import java.sql.SQLException; franta-hg@171: import java.sql.SQLWarning; franta-hg@171: import java.sql.Savepoint; franta-hg@171: import java.util.Map; franta-hg@171: import java.util.Properties; franta-hg@171: import java.util.concurrent.Executor; franta-hg@171: franta-hg@171: /** franta-hg@171: * franta-hg@171: * @author Ing. František Kučera (frantovo.cz) franta-hg@171: */ franta-hg@171: public class Connection extends AbstractConnection { franta-hg@171: franta-hg@171: private String url; franta-hg@171: private Properties info; franta-hg@171: franta-hg@171: public Connection(String url, Properties info) { franta-hg@171: this.url = url; franta-hg@171: this.info = info; franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public java.sql.PreparedStatement prepareStatement(String sql) throws SQLException { franta-hg@171: return new PreparedStatement(); franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public void setAutoCommit(boolean autoCommit) throws SQLException { franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public boolean getAutoCommit() throws SQLException { franta-hg@171: return true; franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public void commit() throws SQLException { franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public void rollback() throws SQLException { franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public void close() throws SQLException { franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public boolean isClosed() throws SQLException { franta-hg@171: return false; franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public void setReadOnly(boolean readOnly) throws SQLException { franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public boolean isReadOnly() throws SQLException { franta-hg@171: return true; franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public void setCatalog(String catalog) throws SQLException { franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public void setTransactionIsolation(int level) throws SQLException { franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public SQLWarning getWarnings() throws SQLException { franta-hg@171: return null; franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public void clearWarnings() throws SQLException { franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public void setTypeMap(Map> map) throws SQLException { franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public void setHoldability(int holdability) throws SQLException { franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public void rollback(Savepoint savepoint) throws SQLException { franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public void releaseSavepoint(Savepoint savepoint) throws SQLException { franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public boolean isValid(int timeout) throws SQLException { franta-hg@171: return true; franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public void setClientInfo(String name, String value) throws SQLClientInfoException { franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public void setClientInfo(Properties properties) throws SQLClientInfoException { franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public void abort(Executor executor) throws SQLException { franta-hg@171: } franta-hg@171: franta-hg@171: @Override franta-hg@171: public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException { franta-hg@171: } franta-hg@171: }