java/jdbc-loopback-driver/src/main/java/info/globalcode/jdbc/loopback/AbstractConnection.java
author František Kučera <franta-hg@frantovo.cz>
Thu, 24 Oct 2019 21:43:08 +0200
branchv_0
changeset 250 aae5009bd0af
parent 237 7e08730da258
permissions -rw-r--r--
fix license version: GNU GPLv3
franta-hg@171
     1
/**
franta-hg@171
     2
 * SQL-DK
franta-hg@171
     3
 * Copyright © 2014 František Kučera (frantovo.cz)
franta-hg@171
     4
 *
franta-hg@171
     5
 * This program is free software: you can redistribute it and/or modify
franta-hg@171
     6
 * it under the terms of the GNU General Public License as published by
franta-hg@250
     7
 * the Free Software Foundation, version 3 of the License.
franta-hg@171
     8
 *
franta-hg@171
     9
 * This program is distributed in the hope that it will be useful,
franta-hg@171
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
franta-hg@171
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
franta-hg@171
    12
 * GNU General Public License for more details.
franta-hg@171
    13
 *
franta-hg@171
    14
 * You should have received a copy of the GNU General Public License
franta-hg@171
    15
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
franta-hg@171
    16
 */
franta-hg@171
    17
package info.globalcode.jdbc.loopback;
franta-hg@171
    18
franta-hg@171
    19
import java.sql.Array;
franta-hg@171
    20
import java.sql.Blob;
franta-hg@171
    21
import java.sql.CallableStatement;
franta-hg@171
    22
import java.sql.Clob;
franta-hg@171
    23
import java.sql.DatabaseMetaData;
franta-hg@171
    24
import java.sql.NClob;
franta-hg@171
    25
import java.sql.SQLClientInfoException;
franta-hg@171
    26
import java.sql.SQLException;
franta-hg@171
    27
import java.sql.SQLWarning;
franta-hg@171
    28
import java.sql.SQLXML;
franta-hg@171
    29
import java.sql.Savepoint;
franta-hg@171
    30
import java.sql.Struct;
franta-hg@171
    31
import java.util.Map;
franta-hg@171
    32
import java.util.Properties;
franta-hg@171
    33
import java.util.concurrent.Executor;
franta-hg@171
    34
franta-hg@171
    35
/**
franta-hg@171
    36
 *
franta-hg@171
    37
 * @author Ing. František Kučera (frantovo.cz)
franta-hg@171
    38
 */
franta-hg@171
    39
public abstract class AbstractConnection implements java.sql.Connection {
franta-hg@171
    40
franta-hg@171
    41
	@Override
franta-hg@171
    42
	public java.sql.Statement createStatement() throws SQLException {
franta-hg@171
    43
		throw new SQLException("Not supported yet.");
franta-hg@171
    44
	}
franta-hg@171
    45
franta-hg@171
    46
	@Override
franta-hg@171
    47
	public java.sql.PreparedStatement prepareStatement(String sql) throws SQLException {
franta-hg@171
    48
		throw new SQLException("Not supported yet.");
franta-hg@171
    49
	}
franta-hg@171
    50
franta-hg@171
    51
	@Override
franta-hg@171
    52
	public CallableStatement prepareCall(String sql) throws SQLException {
franta-hg@171
    53
		throw new SQLException("Not supported yet.");
franta-hg@171
    54
	}
franta-hg@171
    55
franta-hg@171
    56
	@Override
franta-hg@171
    57
	public String nativeSQL(String sql) throws SQLException {
franta-hg@171
    58
		throw new SQLException("Not supported yet.");
franta-hg@171
    59
	}
franta-hg@171
    60
franta-hg@171
    61
	@Override
franta-hg@171
    62
	public void setAutoCommit(boolean autoCommit) throws SQLException {
franta-hg@171
    63
		throw new SQLException("Not supported yet.");
franta-hg@171
    64
	}
franta-hg@171
    65
franta-hg@171
    66
	@Override
franta-hg@171
    67
	public boolean getAutoCommit() throws SQLException {
franta-hg@171
    68
		throw new SQLException("Not supported yet.");
franta-hg@171
    69
	}
franta-hg@171
    70
franta-hg@171
    71
	@Override
franta-hg@171
    72
	public void commit() throws SQLException {
franta-hg@171
    73
		throw new SQLException("Not supported yet.");
franta-hg@171
    74
	}
franta-hg@171
    75
franta-hg@171
    76
	@Override
franta-hg@171
    77
	public void rollback() throws SQLException {
franta-hg@171
    78
		throw new SQLException("Not supported yet.");
franta-hg@171
    79
	}
franta-hg@171
    80
franta-hg@171
    81
	@Override
franta-hg@171
    82
	public void close() throws SQLException {
franta-hg@171
    83
		throw new SQLException("Not supported yet.");
franta-hg@171
    84
	}
franta-hg@171
    85
franta-hg@171
    86
	@Override
franta-hg@171
    87
	public boolean isClosed() throws SQLException {
franta-hg@171
    88
		throw new SQLException("Not supported yet.");
franta-hg@171
    89
	}
franta-hg@171
    90
franta-hg@171
    91
	@Override
franta-hg@171
    92
	public DatabaseMetaData getMetaData() throws SQLException {
franta-hg@171
    93
		throw new SQLException("Not supported yet.");
franta-hg@171
    94
	}
franta-hg@171
    95
franta-hg@171
    96
	@Override
franta-hg@171
    97
	public void setReadOnly(boolean readOnly) throws SQLException {
franta-hg@171
    98
		throw new SQLException("Not supported yet.");
franta-hg@171
    99
	}
franta-hg@171
   100
franta-hg@171
   101
	@Override
franta-hg@171
   102
	public boolean isReadOnly() throws SQLException {
franta-hg@171
   103
		throw new SQLException("Not supported yet.");
franta-hg@171
   104
	}
franta-hg@171
   105
franta-hg@171
   106
	@Override
franta-hg@171
   107
	public void setCatalog(String catalog) throws SQLException {
franta-hg@171
   108
		throw new SQLException("Not supported yet.");
franta-hg@171
   109
	}
franta-hg@171
   110
franta-hg@171
   111
	@Override
franta-hg@171
   112
	public String getCatalog() throws SQLException {
franta-hg@171
   113
		throw new SQLException("Not supported yet.");
franta-hg@171
   114
	}
franta-hg@171
   115
franta-hg@171
   116
	@Override
franta-hg@171
   117
	public void setTransactionIsolation(int level) throws SQLException {
franta-hg@171
   118
		throw new SQLException("Not supported yet.");
franta-hg@171
   119
	}
franta-hg@171
   120
franta-hg@171
   121
	@Override
franta-hg@171
   122
	public int getTransactionIsolation() throws SQLException {
franta-hg@171
   123
		throw new SQLException("Not supported yet.");
franta-hg@171
   124
	}
franta-hg@171
   125
franta-hg@171
   126
	@Override
franta-hg@171
   127
	public SQLWarning getWarnings() throws SQLException {
franta-hg@171
   128
		throw new SQLException("Not supported yet.");
franta-hg@171
   129
	}
franta-hg@171
   130
franta-hg@171
   131
	@Override
franta-hg@171
   132
	public void clearWarnings() throws SQLException {
franta-hg@171
   133
		throw new SQLException("Not supported yet.");
franta-hg@171
   134
	}
franta-hg@171
   135
franta-hg@171
   136
	@Override
franta-hg@171
   137
	public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException {
franta-hg@171
   138
		throw new SQLException("Not supported yet.");
franta-hg@171
   139
	}
franta-hg@171
   140
franta-hg@171
   141
	@Override
franta-hg@171
   142
	public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
franta-hg@171
   143
		throw new SQLException("Not supported yet.");
franta-hg@171
   144
	}
franta-hg@171
   145
franta-hg@171
   146
	@Override
franta-hg@171
   147
	public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
franta-hg@171
   148
		throw new SQLException("Not supported yet.");
franta-hg@171
   149
	}
franta-hg@171
   150
franta-hg@171
   151
	@Override
franta-hg@171
   152
	public Map<String, Class<?>> getTypeMap() throws SQLException {
franta-hg@171
   153
		throw new SQLException("Not supported yet.");
franta-hg@171
   154
	}
franta-hg@171
   155
franta-hg@171
   156
	@Override
franta-hg@171
   157
	public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
franta-hg@171
   158
		throw new SQLException("Not supported yet.");
franta-hg@171
   159
	}
franta-hg@171
   160
franta-hg@171
   161
	@Override
franta-hg@171
   162
	public void setHoldability(int holdability) throws SQLException {
franta-hg@171
   163
		throw new SQLException("Not supported yet.");
franta-hg@171
   164
	}
franta-hg@171
   165
franta-hg@171
   166
	@Override
franta-hg@171
   167
	public int getHoldability() throws SQLException {
franta-hg@171
   168
		throw new SQLException("Not supported yet.");
franta-hg@171
   169
	}
franta-hg@171
   170
franta-hg@171
   171
	@Override
franta-hg@171
   172
	public Savepoint setSavepoint() throws SQLException {
franta-hg@171
   173
		throw new SQLException("Not supported yet.");
franta-hg@171
   174
	}
franta-hg@171
   175
franta-hg@171
   176
	@Override
franta-hg@171
   177
	public Savepoint setSavepoint(String name) throws SQLException {
franta-hg@171
   178
		throw new SQLException("Not supported yet.");
franta-hg@171
   179
	}
franta-hg@171
   180
franta-hg@171
   181
	@Override
franta-hg@171
   182
	public void rollback(Savepoint savepoint) throws SQLException {
franta-hg@171
   183
		throw new SQLException("Not supported yet.");
franta-hg@171
   184
	}
franta-hg@171
   185
franta-hg@171
   186
	@Override
franta-hg@171
   187
	public void releaseSavepoint(Savepoint savepoint) throws SQLException {
franta-hg@171
   188
		throw new SQLException("Not supported yet.");
franta-hg@171
   189
	}
franta-hg@171
   190
franta-hg@171
   191
	@Override
franta-hg@171
   192
	public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
franta-hg@171
   193
		throw new SQLException("Not supported yet.");
franta-hg@171
   194
	}
franta-hg@171
   195
franta-hg@171
   196
	@Override
franta-hg@171
   197
	public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
franta-hg@171
   198
		throw new SQLException("Not supported yet.");
franta-hg@171
   199
	}
franta-hg@171
   200
franta-hg@171
   201
	@Override
franta-hg@171
   202
	public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
franta-hg@171
   203
		throw new SQLException("Not supported yet.");
franta-hg@171
   204
	}
franta-hg@171
   205
franta-hg@171
   206
	@Override
franta-hg@171
   207
	public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException {
franta-hg@171
   208
		throw new SQLException("Not supported yet.");
franta-hg@171
   209
	}
franta-hg@171
   210
franta-hg@171
   211
	@Override
franta-hg@171
   212
	public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException {
franta-hg@171
   213
		throw new SQLException("Not supported yet.");
franta-hg@171
   214
	}
franta-hg@171
   215
franta-hg@171
   216
	@Override
franta-hg@171
   217
	public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException {
franta-hg@171
   218
		throw new SQLException("Not supported yet.");
franta-hg@171
   219
	}
franta-hg@171
   220
franta-hg@171
   221
	@Override
franta-hg@171
   222
	public Clob createClob() throws SQLException {
franta-hg@171
   223
		throw new SQLException("Not supported yet.");
franta-hg@171
   224
	}
franta-hg@171
   225
franta-hg@171
   226
	@Override
franta-hg@171
   227
	public Blob createBlob() throws SQLException {
franta-hg@171
   228
		throw new SQLException("Not supported yet.");
franta-hg@171
   229
	}
franta-hg@171
   230
franta-hg@171
   231
	@Override
franta-hg@171
   232
	public NClob createNClob() throws SQLException {
franta-hg@171
   233
		throw new SQLException("Not supported yet.");
franta-hg@171
   234
	}
franta-hg@171
   235
franta-hg@171
   236
	@Override
franta-hg@171
   237
	public SQLXML createSQLXML() throws SQLException {
franta-hg@171
   238
		throw new SQLException("Not supported yet.");
franta-hg@171
   239
	}
franta-hg@171
   240
franta-hg@171
   241
	@Override
franta-hg@171
   242
	public boolean isValid(int timeout) throws SQLException {
franta-hg@171
   243
		throw new SQLException("Not supported yet.");
franta-hg@171
   244
	}
franta-hg@171
   245
franta-hg@171
   246
	@Override
franta-hg@171
   247
	public void setClientInfo(String name, String value) throws SQLClientInfoException {
franta-hg@171
   248
		throw new SQLClientInfoException("Not supported yet.", null);
franta-hg@171
   249
	}
franta-hg@171
   250
franta-hg@171
   251
	@Override
franta-hg@171
   252
	public void setClientInfo(Properties properties) throws SQLClientInfoException {
franta-hg@171
   253
		throw new SQLClientInfoException("Not supported yet.", null);
franta-hg@171
   254
	}
franta-hg@171
   255
franta-hg@171
   256
	@Override
franta-hg@171
   257
	public String getClientInfo(String name) throws SQLException {
franta-hg@171
   258
		throw new SQLException("Not supported yet.");
franta-hg@171
   259
	}
franta-hg@171
   260
franta-hg@171
   261
	@Override
franta-hg@171
   262
	public Properties getClientInfo() throws SQLException {
franta-hg@171
   263
		throw new SQLException("Not supported yet.");
franta-hg@171
   264
	}
franta-hg@171
   265
franta-hg@171
   266
	@Override
franta-hg@171
   267
	public Array createArrayOf(String typeName, Object[] elements) throws SQLException {
franta-hg@171
   268
		throw new SQLException("Not supported yet.");
franta-hg@171
   269
	}
franta-hg@171
   270
franta-hg@171
   271
	@Override
franta-hg@171
   272
	public Struct createStruct(String typeName, Object[] attributes) throws SQLException {
franta-hg@171
   273
		throw new SQLException("Not supported yet.");
franta-hg@171
   274
	}
franta-hg@171
   275
franta-hg@171
   276
	@Override
franta-hg@171
   277
	public void setSchema(String schema) throws SQLException {
franta-hg@171
   278
		throw new SQLException("Not supported yet.");
franta-hg@171
   279
	}
franta-hg@171
   280
franta-hg@171
   281
	@Override
franta-hg@171
   282
	public String getSchema() throws SQLException {
franta-hg@171
   283
		throw new SQLException("Not supported yet.");
franta-hg@171
   284
	}
franta-hg@171
   285
franta-hg@171
   286
	@Override
franta-hg@171
   287
	public void abort(Executor executor) throws SQLException {
franta-hg@171
   288
		throw new SQLException("Not supported yet.");
franta-hg@171
   289
	}
franta-hg@171
   290
franta-hg@171
   291
	@Override
franta-hg@171
   292
	public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException {
franta-hg@171
   293
		throw new SQLException("Not supported yet.");
franta-hg@171
   294
	}
franta-hg@171
   295
franta-hg@171
   296
	@Override
franta-hg@171
   297
	public int getNetworkTimeout() throws SQLException {
franta-hg@171
   298
		throw new SQLException("Not supported yet.");
franta-hg@171
   299
	}
franta-hg@171
   300
franta-hg@171
   301
	@Override
franta-hg@171
   302
	public <T> T unwrap(Class<T> iface) throws SQLException {
franta-hg@171
   303
		throw new SQLException("Not supported yet.");
franta-hg@171
   304
	}
franta-hg@171
   305
franta-hg@171
   306
	@Override
franta-hg@171
   307
	public boolean isWrapperFor(Class<?> iface) throws SQLException {
franta-hg@171
   308
		throw new SQLException("Not supported yet.");
franta-hg@171
   309
	}
franta-hg@171
   310
}