java/jdbc-loopback-driver/src/main/java/info/globalcode/jdbc/loopback/Connection.java
3 * Copyright © 2014 František Kučera (frantovo.cz)
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.
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.
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/>.
17 package info.globalcode.jdbc.loopback;
19 import java.sql.SQLClientInfoException;
20 import java.sql.SQLException;
21 import java.sql.SQLWarning;
22 import java.sql.Savepoint;
24 import java.util.Properties;
25 import java.util.concurrent.Executor;
29 * @author Ing. František Kučera (frantovo.cz)
31 public class Connection extends AbstractConnection {
34 private Properties info;
36 public Connection(String url, Properties info) {
42 public java.sql.PreparedStatement prepareStatement(String sql) throws SQLException {
43 return new PreparedStatement();
47 public void setAutoCommit(boolean autoCommit) throws SQLException {
51 public boolean getAutoCommit() throws SQLException {
56 public void commit() throws SQLException {
60 public void rollback() throws SQLException {
64 public void close() throws SQLException {
68 public boolean isClosed() throws SQLException {
73 public void setReadOnly(boolean readOnly) throws SQLException {
77 public boolean isReadOnly() throws SQLException {
82 public void setCatalog(String catalog) throws SQLException {
86 public void setTransactionIsolation(int level) throws SQLException {
90 public SQLWarning getWarnings() throws SQLException {
95 public void clearWarnings() throws SQLException {
99 public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
103 public void setHoldability(int holdability) throws SQLException {
107 public void rollback(Savepoint savepoint) throws SQLException {
111 public void releaseSavepoint(Savepoint savepoint) throws SQLException {
115 public boolean isValid(int timeout) throws SQLException {
120 public void setClientInfo(String name, String value) throws SQLClientInfoException {
124 public void setClientInfo(Properties properties) throws SQLClientInfoException {
128 public void abort(Executor executor) throws SQLException {
132 public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException {