1 22 23 24 package com.mchange.v2.sql.filter; 25 26 import java.lang.String ; 27 import java.sql.CallableStatement ; 28 import java.sql.Connection ; 29 import java.sql.DatabaseMetaData ; 30 import java.sql.PreparedStatement ; 31 import java.sql.SQLException ; 32 import java.sql.SQLWarning ; 33 import java.sql.Savepoint ; 34 import java.sql.Statement ; 35 import java.util.Map ; 36 37 public abstract class SynchronizedFilterConnection implements Connection 38 { 39 protected Connection inner; 40 41 public SynchronizedFilterConnection(Connection inner) 42 { this.inner = inner; } 43 44 public SynchronizedFilterConnection() 45 {} 46 47 public synchronized void setInner( Connection inner ) 48 { this.inner = inner; } 49 50 public synchronized Connection getInner() 51 { return inner; } 52 53 public synchronized Statement createStatement(int a, int b, int c) throws SQLException 54 { return inner.createStatement(a, b, c); } 55 56 public synchronized Statement createStatement(int a, int b) throws SQLException 57 { return inner.createStatement(a, b); } 58 59 public synchronized Statement createStatement() throws SQLException 60 { return inner.createStatement(); } 61 62 public synchronized PreparedStatement prepareStatement(String a, String [] b) throws SQLException 63 { return inner.prepareStatement(a, b); } 64 65 public synchronized PreparedStatement prepareStatement(String a) throws SQLException 66 { return inner.prepareStatement(a); } 67 68 public synchronized PreparedStatement prepareStatement(String a, int b, int c) throws SQLException 69 { return inner.prepareStatement(a, b, c); } 70 71 public synchronized PreparedStatement prepareStatement(String a, int b, int c, int d) throws SQLException 72 { return inner.prepareStatement(a, b, c, d); } 73 74 public synchronized PreparedStatement prepareStatement(String a, int b) throws SQLException 75 { return inner.prepareStatement(a, b); } 76 77 public synchronized PreparedStatement prepareStatement(String a, int[] b) throws SQLException 78 { return inner.prepareStatement(a, b); } 79 80 public synchronized CallableStatement prepareCall(String a, int b, int c, int d) throws SQLException 81 { return inner.prepareCall(a, b, c, d); } 82 83 public synchronized CallableStatement prepareCall(String a, int b, int c) throws SQLException 84 { return inner.prepareCall(a, b, c); } 85 86 public synchronized CallableStatement prepareCall(String a) throws SQLException 87 { return inner.prepareCall(a); } 88 89 public synchronized String nativeSQL(String a) throws SQLException 90 { return inner.nativeSQL(a); } 91 92 public synchronized void setAutoCommit(boolean a) throws SQLException 93 { inner.setAutoCommit(a); } 94 95 public synchronized boolean getAutoCommit() throws SQLException 96 { return inner.getAutoCommit(); } 97 98 public synchronized void commit() throws SQLException 99 { inner.commit(); } 100 101 public synchronized void rollback(Savepoint a) throws SQLException 102 { inner.rollback(a); } 103 104 public synchronized void rollback() throws SQLException 105 { inner.rollback(); } 106 107 public synchronized DatabaseMetaData getMetaData() throws SQLException 108 { return inner.getMetaData(); } 109 110 public synchronized void setCatalog(String a) throws SQLException 111 { inner.setCatalog(a); } 112 113 public synchronized String getCatalog() throws SQLException 114 { return inner.getCatalog(); } 115 116 public synchronized void setTransactionIsolation(int a) throws SQLException 117 { inner.setTransactionIsolation(a); } 118 119 public synchronized int getTransactionIsolation() throws SQLException 120 { return inner.getTransactionIsolation(); } 121 122 public synchronized SQLWarning getWarnings() throws SQLException 123 { return inner.getWarnings(); } 124 125 public synchronized void clearWarnings() throws SQLException 126 { inner.clearWarnings(); } 127 128 public synchronized Map getTypeMap() throws SQLException 129 { return inner.getTypeMap(); } 130 131 public synchronized void setTypeMap(Map a) throws SQLException 132 { inner.setTypeMap(a); } 133 134 public synchronized void setHoldability(int a) throws SQLException 135 { inner.setHoldability(a); } 136 137 public synchronized int getHoldability() throws SQLException 138 { return inner.getHoldability(); } 139 140 public synchronized Savepoint setSavepoint() throws SQLException 141 { return inner.setSavepoint(); } 142 143 public synchronized Savepoint setSavepoint(String a) throws SQLException 144 { return inner.setSavepoint(a); } 145 146 public synchronized void releaseSavepoint(Savepoint a) throws SQLException 147 { inner.releaseSavepoint(a); } 148 149 public synchronized void setReadOnly(boolean a) throws SQLException 150 { inner.setReadOnly(a); } 151 152 public synchronized boolean isReadOnly() throws SQLException 153 { return inner.isReadOnly(); } 154 155 public synchronized void close() throws SQLException 156 { inner.close(); } 157 158 public synchronized boolean isClosed() throws SQLException 159 { return inner.isClosed(); } 160 } 161 | Popular Tags |