java/jdbc-loopback-driver/src/main/java/info/globalcode/jdbc/loopback/AbstractConnection.java
author František Kučera <franta-hg@frantovo.cz>
Sun, 04 Feb 2024 16:10:37 +0100
branchv_0
changeset 255 099bb96f8d8d
parent 250 aae5009bd0af
permissions -rw-r--r--
tabular formatter: new option 'separateBy' to print horizontal separator on each change of given column
     1 /**
     2  * SQL-DK
     3  * Copyright © 2014 František Kučera (frantovo.cz)
     4  *
     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.
     8  *
     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.
    13  *
    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/>.
    16  */
    17 package info.globalcode.jdbc.loopback;
    18 
    19 import java.sql.Array;
    20 import java.sql.Blob;
    21 import java.sql.CallableStatement;
    22 import java.sql.Clob;
    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;
    31 import java.util.Map;
    32 import java.util.Properties;
    33 import java.util.concurrent.Executor;
    34 
    35 /**
    36  *
    37  * @author Ing. František Kučera (frantovo.cz)
    38  */
    39 public abstract class AbstractConnection implements java.sql.Connection {
    40 
    41 	@Override
    42 	public java.sql.Statement createStatement() throws SQLException {
    43 		throw new SQLException("Not supported yet.");
    44 	}
    45 
    46 	@Override
    47 	public java.sql.PreparedStatement prepareStatement(String sql) throws SQLException {
    48 		throw new SQLException("Not supported yet.");
    49 	}
    50 
    51 	@Override
    52 	public CallableStatement prepareCall(String sql) throws SQLException {
    53 		throw new SQLException("Not supported yet.");
    54 	}
    55 
    56 	@Override
    57 	public String nativeSQL(String sql) throws SQLException {
    58 		throw new SQLException("Not supported yet.");
    59 	}
    60 
    61 	@Override
    62 	public void setAutoCommit(boolean autoCommit) throws SQLException {
    63 		throw new SQLException("Not supported yet.");
    64 	}
    65 
    66 	@Override
    67 	public boolean getAutoCommit() throws SQLException {
    68 		throw new SQLException("Not supported yet.");
    69 	}
    70 
    71 	@Override
    72 	public void commit() throws SQLException {
    73 		throw new SQLException("Not supported yet.");
    74 	}
    75 
    76 	@Override
    77 	public void rollback() throws SQLException {
    78 		throw new SQLException("Not supported yet.");
    79 	}
    80 
    81 	@Override
    82 	public void close() throws SQLException {
    83 		throw new SQLException("Not supported yet.");
    84 	}
    85 
    86 	@Override
    87 	public boolean isClosed() throws SQLException {
    88 		throw new SQLException("Not supported yet.");
    89 	}
    90 
    91 	@Override
    92 	public DatabaseMetaData getMetaData() throws SQLException {
    93 		throw new SQLException("Not supported yet.");
    94 	}
    95 
    96 	@Override
    97 	public void setReadOnly(boolean readOnly) throws SQLException {
    98 		throw new SQLException("Not supported yet.");
    99 	}
   100 
   101 	@Override
   102 	public boolean isReadOnly() throws SQLException {
   103 		throw new SQLException("Not supported yet.");
   104 	}
   105 
   106 	@Override
   107 	public void setCatalog(String catalog) throws SQLException {
   108 		throw new SQLException("Not supported yet.");
   109 	}
   110 
   111 	@Override
   112 	public String getCatalog() throws SQLException {
   113 		throw new SQLException("Not supported yet.");
   114 	}
   115 
   116 	@Override
   117 	public void setTransactionIsolation(int level) throws SQLException {
   118 		throw new SQLException("Not supported yet.");
   119 	}
   120 
   121 	@Override
   122 	public int getTransactionIsolation() throws SQLException {
   123 		throw new SQLException("Not supported yet.");
   124 	}
   125 
   126 	@Override
   127 	public SQLWarning getWarnings() throws SQLException {
   128 		throw new SQLException("Not supported yet.");
   129 	}
   130 
   131 	@Override
   132 	public void clearWarnings() throws SQLException {
   133 		throw new SQLException("Not supported yet.");
   134 	}
   135 
   136 	@Override
   137 	public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException {
   138 		throw new SQLException("Not supported yet.");
   139 	}
   140 
   141 	@Override
   142 	public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
   143 		throw new SQLException("Not supported yet.");
   144 	}
   145 
   146 	@Override
   147 	public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
   148 		throw new SQLException("Not supported yet.");
   149 	}
   150 
   151 	@Override
   152 	public Map<String, Class<?>> getTypeMap() throws SQLException {
   153 		throw new SQLException("Not supported yet.");
   154 	}
   155 
   156 	@Override
   157 	public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
   158 		throw new SQLException("Not supported yet.");
   159 	}
   160 
   161 	@Override
   162 	public void setHoldability(int holdability) throws SQLException {
   163 		throw new SQLException("Not supported yet.");
   164 	}
   165 
   166 	@Override
   167 	public int getHoldability() throws SQLException {
   168 		throw new SQLException("Not supported yet.");
   169 	}
   170 
   171 	@Override
   172 	public Savepoint setSavepoint() throws SQLException {
   173 		throw new SQLException("Not supported yet.");
   174 	}
   175 
   176 	@Override
   177 	public Savepoint setSavepoint(String name) throws SQLException {
   178 		throw new SQLException("Not supported yet.");
   179 	}
   180 
   181 	@Override
   182 	public void rollback(Savepoint savepoint) throws SQLException {
   183 		throw new SQLException("Not supported yet.");
   184 	}
   185 
   186 	@Override
   187 	public void releaseSavepoint(Savepoint savepoint) throws SQLException {
   188 		throw new SQLException("Not supported yet.");
   189 	}
   190 
   191 	@Override
   192 	public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
   193 		throw new SQLException("Not supported yet.");
   194 	}
   195 
   196 	@Override
   197 	public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
   198 		throw new SQLException("Not supported yet.");
   199 	}
   200 
   201 	@Override
   202 	public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
   203 		throw new SQLException("Not supported yet.");
   204 	}
   205 
   206 	@Override
   207 	public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException {
   208 		throw new SQLException("Not supported yet.");
   209 	}
   210 
   211 	@Override
   212 	public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException {
   213 		throw new SQLException("Not supported yet.");
   214 	}
   215 
   216 	@Override
   217 	public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException {
   218 		throw new SQLException("Not supported yet.");
   219 	}
   220 
   221 	@Override
   222 	public Clob createClob() throws SQLException {
   223 		throw new SQLException("Not supported yet.");
   224 	}
   225 
   226 	@Override
   227 	public Blob createBlob() throws SQLException {
   228 		throw new SQLException("Not supported yet.");
   229 	}
   230 
   231 	@Override
   232 	public NClob createNClob() throws SQLException {
   233 		throw new SQLException("Not supported yet.");
   234 	}
   235 
   236 	@Override
   237 	public SQLXML createSQLXML() throws SQLException {
   238 		throw new SQLException("Not supported yet.");
   239 	}
   240 
   241 	@Override
   242 	public boolean isValid(int timeout) throws SQLException {
   243 		throw new SQLException("Not supported yet.");
   244 	}
   245 
   246 	@Override
   247 	public void setClientInfo(String name, String value) throws SQLClientInfoException {
   248 		throw new SQLClientInfoException("Not supported yet.", null);
   249 	}
   250 
   251 	@Override
   252 	public void setClientInfo(Properties properties) throws SQLClientInfoException {
   253 		throw new SQLClientInfoException("Not supported yet.", null);
   254 	}
   255 
   256 	@Override
   257 	public String getClientInfo(String name) throws SQLException {
   258 		throw new SQLException("Not supported yet.");
   259 	}
   260 
   261 	@Override
   262 	public Properties getClientInfo() throws SQLException {
   263 		throw new SQLException("Not supported yet.");
   264 	}
   265 
   266 	@Override
   267 	public Array createArrayOf(String typeName, Object[] elements) throws SQLException {
   268 		throw new SQLException("Not supported yet.");
   269 	}
   270 
   271 	@Override
   272 	public Struct createStruct(String typeName, Object[] attributes) throws SQLException {
   273 		throw new SQLException("Not supported yet.");
   274 	}
   275 
   276 	@Override
   277 	public void setSchema(String schema) throws SQLException {
   278 		throw new SQLException("Not supported yet.");
   279 	}
   280 
   281 	@Override
   282 	public String getSchema() throws SQLException {
   283 		throw new SQLException("Not supported yet.");
   284 	}
   285 
   286 	@Override
   287 	public void abort(Executor executor) throws SQLException {
   288 		throw new SQLException("Not supported yet.");
   289 	}
   290 
   291 	@Override
   292 	public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException {
   293 		throw new SQLException("Not supported yet.");
   294 	}
   295 
   296 	@Override
   297 	public int getNetworkTimeout() throws SQLException {
   298 		throw new SQLException("Not supported yet.");
   299 	}
   300 
   301 	@Override
   302 	public <T> T unwrap(Class<T> iface) throws SQLException {
   303 		throw new SQLException("Not supported yet.");
   304 	}
   305 
   306 	@Override
   307 	public boolean isWrapperFor(Class<?> iface) throws SQLException {
   308 		throw new SQLException("Not supported yet.");
   309 	}
   310 }