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