1 28 29 package com.caucho.amber.jdbc; 30 31 import java.sql.SQLException ; 32 import java.sql.SQLWarning ; 33 import java.sql.Statement ; 34 35 38 public class AmberStatementImpl implements java.sql.Statement { 39 protected AmberConnectionImpl _conn; 41 42 protected Statement _stmt; 44 45 AmberStatementImpl(AmberConnectionImpl conn, Statement stmt) 46 { 47 _conn = conn; 48 _stmt = stmt; 49 } 50 51 54 public Statement getStatement() 55 { 56 return _stmt; 57 } 58 59 public void addBatch(String sql) 60 throws SQLException 61 { 62 _stmt.addBatch(sql); 63 } 64 65 public void cancel() 66 throws SQLException 67 { 68 _stmt.cancel(); 69 } 70 71 public void clearBatch() 72 throws SQLException 73 { 74 _stmt.clearBatch(); 75 } 76 77 public void clearWarnings() 78 throws SQLException 79 { 80 _stmt.clearWarnings(); 81 } 82 83 public void close() 84 throws SQLException 85 { 86 _stmt.close(); 87 } 88 89 public java.sql.ResultSet executeQuery(String sql) 90 throws SQLException 91 { 92 return _stmt.executeQuery(sql); 93 } 94 95 public int executeUpdate(String sql) 96 throws SQLException 97 { 98 return _stmt.executeUpdate(sql); 99 } 100 101 public boolean execute(String sql) 102 throws SQLException 103 { 104 return _stmt.execute(sql); 105 } 106 107 public int[]executeBatch() 108 throws SQLException 109 { 110 return _stmt.executeBatch(); 111 } 112 113 public java.sql.ResultSet getResultSet() 114 throws SQLException 115 { 116 return _stmt.getResultSet(); 117 } 118 119 public int getUpdateCount() 120 throws SQLException 121 { 122 return _stmt.getUpdateCount(); 123 } 124 125 public java.sql.Connection getConnection() 126 throws SQLException 127 { 128 return _conn; 129 } 130 131 public int getFetchDirection() 132 throws SQLException 133 { 134 return _stmt.getFetchDirection(); 135 } 136 137 public int getFetchSize() 138 throws SQLException 139 { 140 return _stmt.getFetchSize(); 141 } 142 143 public int getMaxFieldSize() 144 throws SQLException 145 { 146 return _stmt.getMaxFieldSize(); 147 } 148 149 public int getMaxRows() 150 throws SQLException 151 { 152 return _stmt.getMaxRows(); 153 } 154 155 public void setMaxRows(int max) 156 throws SQLException 157 { 158 _stmt.setMaxRows(max); 159 } 160 161 public boolean getMoreResults() 162 throws SQLException 163 { 164 return _stmt.getMoreResults(); 165 } 166 167 public int getQueryTimeout() 168 throws SQLException 169 { 170 return _stmt.getQueryTimeout(); 171 } 172 173 public int getResultSetConcurrency() 174 throws SQLException 175 { 176 return _stmt.getResultSetConcurrency(); 177 } 178 179 public int getResultSetType() 180 throws SQLException 181 { 182 return _stmt.getResultSetType(); 183 } 184 185 public SQLWarning getWarnings() 186 throws SQLException 187 { 188 return _stmt.getWarnings(); 189 } 190 191 public void setCursorName(String name) 192 throws SQLException 193 { 194 _stmt.setCursorName(name); 195 } 196 197 public void setEscapeProcessing(boolean enable) 198 throws SQLException 199 { 200 _stmt.setEscapeProcessing(enable); 201 } 202 203 public void setFetchDirection(int direction) 204 throws SQLException 205 { 206 _stmt.setFetchDirection(direction); 207 } 208 209 public void setFetchSize(int rows) 210 throws SQLException 211 { 212 _stmt.setFetchSize(rows); 213 } 214 215 public void setMaxFieldSize(int max) 216 throws SQLException 217 { 218 _stmt.setMaxFieldSize(max); 219 } 220 221 public void setQueryTimeout(int seconds) 222 throws SQLException 223 { 224 _stmt.setQueryTimeout(seconds); 225 } 226 227 public boolean getMoreResults(int count) 229 throws SQLException 230 { 231 return _stmt.getMoreResults(count); 232 } 233 234 public java.sql.ResultSet getGeneratedKeys() 235 throws SQLException 236 { 237 return _stmt.getGeneratedKeys(); 238 } 239 240 public int executeUpdate(String query, int resultType) 241 throws SQLException 242 { 243 return _stmt.executeUpdate(query, resultType); 244 } 245 246 public int executeUpdate(String query, int []columns) 247 throws SQLException 248 { 249 return _stmt.executeUpdate(query, columns); 250 } 251 252 public int executeUpdate(String query, String []columns) 253 throws SQLException 254 { 255 return _stmt.executeUpdate(query, columns); 256 } 257 258 public boolean execute(String query, int resultType) 259 throws SQLException 260 { 261 return _stmt.execute(query, resultType); 262 } 263 264 public boolean execute(String query, int []columns) 265 throws SQLException 266 { 267 return _stmt.execute(query, columns); 268 } 269 270 public boolean execute(String query, String []columns) 271 throws SQLException 272 { 273 return _stmt.execute(query, columns); 274 } 275 276 public int getResultSetHoldability() 277 throws SQLException 278 { 279 return _stmt.getResultSetHoldability(); 280 } 281 } 282 | Popular Tags |