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.Array;
franta-hg@171: import java.sql.Blob;
franta-hg@171: import java.sql.CallableStatement;
franta-hg@171: import java.sql.Clob;
franta-hg@171: import java.sql.DatabaseMetaData;
franta-hg@171: import java.sql.NClob;
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.SQLXML;
franta-hg@171: import java.sql.Savepoint;
franta-hg@171: import java.sql.Struct;
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 abstract class AbstractConnection implements java.sql.Connection {
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public java.sql.Statement createStatement() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
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: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public CallableStatement prepareCall(String sql) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public String nativeSQL(String sql) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public void setAutoCommit(boolean autoCommit) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public boolean getAutoCommit() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public void commit() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public void rollback() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public void close() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public boolean isClosed() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public DatabaseMetaData getMetaData() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public void setReadOnly(boolean readOnly) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public boolean isReadOnly() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public void setCatalog(String catalog) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public String getCatalog() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public void setTransactionIsolation(int level) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public int getTransactionIsolation() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public SQLWarning getWarnings() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public void clearWarnings() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public Map> getTypeMap() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public void setTypeMap(Map> map) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public void setHoldability(int holdability) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public int getHoldability() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public Savepoint setSavepoint() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public Savepoint setSavepoint(String name) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public void rollback(Savepoint savepoint) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public void releaseSavepoint(Savepoint savepoint) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public Clob createClob() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public Blob createBlob() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public NClob createNClob() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public SQLXML createSQLXML() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public boolean isValid(int timeout) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
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: throw new SQLClientInfoException("Not supported yet.", null);
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public void setClientInfo(Properties properties) throws SQLClientInfoException {
franta-hg@171: throw new SQLClientInfoException("Not supported yet.", null);
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public String getClientInfo(String name) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public Properties getClientInfo() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public Array createArrayOf(String typeName, Object[] elements) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public Struct createStruct(String typeName, Object[] attributes) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public void setSchema(String schema) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public String getSchema() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public void abort(Executor executor) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
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: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public int getNetworkTimeout() throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public T unwrap(Class iface) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171:
franta-hg@171: @Override
franta-hg@171: public boolean isWrapperFor(Class> iface) throws SQLException {
franta-hg@171: throw new SQLException("Not supported yet.");
franta-hg@171: }
franta-hg@171: }