{"id":41515,"date":"2011-03-11T12:43:01","date_gmt":"2011-03-11T20:43:01","guid":{"rendered":"https:\/\/redfindevelop.wpengine.com\/blog\/devblog\/?p=450"},"modified":"2020-10-05T13:12:32","modified_gmt":"2020-10-05T20:12:32","slug":"boilerplate_jdbc_wrapper","status":"publish","type":"post","link":"https:\/\/www.redfin.com\/news\/boilerplate_jdbc_wrapper\/","title":{"rendered":"Boilerplate JDBC Wrapper"},"content":{"rendered":"<p>We use <a href=\"http:\/\/download-llnw.oracle.com\/javase\/6\/docs\/technotes\/guides\/jdbc\/\">JDBC<\/a> to connect to our database, but most of our code doesn&#8217;t connect directly to JDBC. Instead, we go through <a href=\"http:\/\/www.hibernate.org\/\">Hibernate<\/a>, which is great for most purposes, but can make it difficult to do low level tweaks. We might want to do things like:<\/p>\n<ol>\n<li>Generate performance metrics per-thread, to get a SQL oriented performance profile for individual <a href=\"http:\/\/en.wikipedia.org\/wiki\/Model%E2%80%93view%E2%80%93controller\">controllers<\/a><\/li>\n<li>Provide a single, central location to tweak SQL before running it<\/li>\n<li>Write unit tests that make assertions about the number or type of SQL statements that higher level code runs<\/li>\n<li>Trace Queries and ResultSet sizes<\/li>\n<li>Debug the SQL generated by third party libraries, and how those libraries use JDBC<\/li>\n<\/ol>\n<p>I wrote wrappers for the most relevant interfaces (<a href=\"http:\/\/download-llnw.oracle.com\/javase\/6\/docs\/api\/java\/sql\/Driver.html\">Driver<\/a>, <a href=\"http:\/\/download-llnw.oracle.com\/javase\/6\/docs\/api\/java\/sql\/Connection.html\">Connection<\/a>, <a href=\"http:\/\/download-llnw.oracle.com\/javase\/6\/docs\/api\/java\/sql\/Statement.html\">Statement<\/a>, <a href=\"http:\/\/download-llnw.oracle.com\/javase\/6\/docs\/api\/java\/sql\/CallableStatement.html\">CallableStatement<\/a>, <a href=\"http:\/\/download-llnw.oracle.com\/javase\/6\/docs\/api\/java\/sql\/PreparedStatement.html\">PreparedStatement<\/a>, <a href=\"http:\/\/download-llnw.oracle.com\/javase\/6\/docs\/api\/java\/sql\/ResultSet.html\">ResultSet<\/a>.) It&#8217;s 100% boilerplate (I didn&#8217;t implement any USEFUL functionality- that&#8217;s for you to do!) It took me a few hours, so I thought I&#8217;d share- no point in us all writing the same boilerplate over and over! Obviously, you&#8217;ll have to tweak this code for your own purposes.<\/p>\n<p>To use it, you would use &#8216;redfin&#8217; in your JDBC URL scheme, like this: &#8216;jdbc:redfin:\/\/blahblah&#8217;. You&#8217;d also set your JDBC driver class to &#8216;redfin.util.jdbc.DriverWrapper&#8217;. The exact mechanism you use to do this is obviously dependent on your environment.<\/p>\n<p><em>[Click through to the full post for the code.]<\/em><br \/>\n<!--more--><br \/>\n<strong>DriverWrapper.java<\/strong>:<br \/>\n<code><br \/>\npackage redfin.util.jdbc;<\/code><\/p>\n<p>import java.sql.Connection;<br \/>\nimport java.sql.Driver;<br \/>\nimport java.sql.DriverManager;<br \/>\nimport java.sql.DriverPropertyInfo;<br \/>\nimport java.sql.SQLException;<br \/>\nimport java.util.Properties;<\/p>\n<p>public class DriverWrapper implements Driver {<\/p>\n<p>\/\/ The class of the driver that we&#8217;re wrapping<br \/>\n\/\/TODO: CHANGE THIS<br \/>\npublic static final String WRAPPED_DRIVER = &#8220;org.postgresql.Driver&#8221;;<\/p>\n<p>\/\/ The scheme of the driver we&#8217;re wrapping. For instance, if the JDBC URL for<br \/>\n\/\/ the DB we want to connect to is:<br \/>\n\/\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0jdbc:postgresql:\/\/db_server.redfintest.com\/production<br \/>\n\/\/ then this string should be &#8220;jdbc:postgresql:&#8221;<br \/>\n\/\/TODO: CHANGE THIS<br \/>\npublic static final String WRAPPED_DRIVER_SCHEME = &#8220;jdbc:postgresql:&#8221;;<\/p>\n<p>\/\/ The scheme of THIS driver (the wrapper.) Clients use this scheme when they<br \/>\n\/\/ want to use this driver.<br \/>\npublic static final String THIS_DRIVER_SCHEME = &#8220;jdbc:redfin:&#8221;;<\/p>\n<p>private Driver wrappedDriver;<\/p>\n<p>static {<br \/>\ntry {<br \/>\nDriverManager.registerDriver(new DriverWrapper());<br \/>\n} catch (Exception e) {}<br \/>\n}<\/p>\n<p>public DriverWrapper() throws SQLException {<br \/>\ntry {<br \/>\n\/\/ TODO: For more flexibility, we COULD defer this, and encode this<br \/>\n\/\/\u00a0\u00a0\u00a0\u00a0info into the driver scheme. That way, we could allow users to<br \/>\n\/\/\u00a0\u00a0\u00a0\u00a0dynamically specify the underlying driver and scheme in the JDBC URL.<br \/>\nwrappedDriver = (Driver) Class.forName(WRAPPED_DRIVER).newInstance();<br \/>\n} catch (InstantiationException e) {<br \/>\ne.printStackTrace();<br \/>\n} catch (IllegalAccessException e) {<br \/>\ne.printStackTrace();<br \/>\n} catch (ClassNotFoundException e) {<br \/>\ne.printStackTrace();<br \/>\n}<br \/>\n}<\/p>\n<p>public boolean acceptsURL(String url) throws SQLException {<br \/>\n\/\/ Remove our special stuff from the URL<br \/>\nString fixedUrl = fixupUrl(url);<br \/>\n\/\/ If the fixed URL is the same as the original URL, then it&#8217;s NOT one of<br \/>\n\/\/ our URLs and we shouldn&#8217;t handle it.<br \/>\nif (fixedUrl.equals(url)) {<br \/>\nreturn false;<br \/>\n}<\/p>\n<p>\/\/ Pass the corrected URL to the underlying driver-<br \/>\n\/\/ if the underlying driver can accept the URL, then we can too!<br \/>\nreturn wrappedDriver.acceptsURL(fixedUrl);<br \/>\n}<\/p>\n<p>public Connection connect(String url, Properties info) throws SQLException {<br \/>\n\/\/ Remove our special stuff from the URL<br \/>\nurl = fixupUrl(url);<br \/>\n\/\/ And pass through<br \/>\nConnection conn = wrappedDriver.connect(url, info);<br \/>\nreturn new ConnectionWrapper(conn);<br \/>\n}<\/p>\n<p>public DriverPropertyInfo[] getPropertyInfo(String url, Properties info)<br \/>\nthrows SQLException {<br \/>\nreturn wrappedDriver.getPropertyInfo(url, info);<br \/>\n}<\/p>\n<p>public int getMajorVersion() {<br \/>\nreturn wrappedDriver.getMajorVersion();<br \/>\n}<\/p>\n<p>public int getMinorVersion() {<br \/>\nreturn wrappedDriver.getMinorVersion();<br \/>\n}<\/p>\n<p>public boolean jdbcCompliant() {<br \/>\nreturn wrappedDriver.jdbcCompliant();<br \/>\n}<\/p>\n<p>private String fixupUrl(String url) {<br \/>\nif (url.startsWith(THIS_DRIVER_SCHEME)) {<br \/>\nurl = WRAPPED_DRIVER_SCHEME + url.substring(THIS_DRIVER_SCHEME.length());<br \/>\n}<\/p>\n<p>return url;<br \/>\n}<br \/>\n}<\/p>\n<p><strong>ConnectionWrapper.java<\/strong>:<br \/>\n<code><br \/>\npackage redfin.util.jdbc;<\/code><\/p>\n<p>import java.sql.Array;<br \/>\nimport java.sql.Blob;<br \/>\nimport java.sql.CallableStatement;<br \/>\nimport java.sql.Clob;<br \/>\nimport java.sql.Connection;<br \/>\nimport java.sql.DatabaseMetaData;<br \/>\nimport java.sql.NClob;<br \/>\nimport java.sql.PreparedStatement;<br \/>\nimport java.sql.SQLClientInfoException;<br \/>\nimport java.sql.SQLException;<br \/>\nimport java.sql.SQLWarning;<br \/>\nimport java.sql.SQLXML;<br \/>\nimport java.sql.Savepoint;<br \/>\nimport java.sql.Statement;<br \/>\nimport java.sql.Struct;<br \/>\nimport java.util.Map;<br \/>\nimport java.util.Properties;<\/p>\n<p>import redfin.util.stats.PerfStatsManager;<\/p>\n<p>\/**<br \/>\n* A wrapper for Connections generated by DriverWrapper. See comments in DriverWrapper.<br \/>\n*<br \/>\n*\/<br \/>\npublic class ConnectionWrapper implements Connection {<\/p>\n<p>private Connection wrappedConnection;<\/p>\n<p>public ConnectionWrapper(Connection wrappedConnection) {<br \/>\nthis.wrappedConnection = wrappedConnection;<br \/>\n}<\/p>\n<p>\/\/ Semi-copied from http:\/\/www.java2s.com\/Open-Source\/Java-Document\/Database-JDBC-Connection-Pool\/mysql\/com\/mysql\/jdbc\/jdbc2\/optional\/JDBC4PreparedStatementWrapper.java.htm<br \/>\npublic T unwrap(Class iface) throws SQLException {<br \/>\ntry {<br \/>\nif (\u00a0\u00a0\u00a0\u00a0&#8220;java.sql.Connection&#8221;.equals(iface.getName())<br \/>\n|| &#8220;java.sql.Wrapper.class&#8221;.equals(iface.getName())) {<br \/>\nreturn iface.cast(this);<br \/>\n}<\/p>\n<p>return wrappedConnection.unwrap(iface);<br \/>\n} catch (ClassCastException cce) {<br \/>\nthrow new SQLException(&#8220;Unable to unwrap to &#8221; + iface.toString(), cce);<br \/>\n}<br \/>\n}<\/p>\n<p>public boolean isWrapperFor(Class iface) throws SQLException {<br \/>\nif (\u00a0\u00a0\u00a0\u00a0&#8220;java.sql.Connection&#8221;.equals(iface.getName())<br \/>\n|| &#8220;java.sql.Wrapper.class&#8221;.equals(iface.getName())) {<br \/>\nreturn true;<br \/>\n}<br \/>\nreturn wrappedConnection.isWrapperFor(iface);<br \/>\n}<\/p>\n<p>public Statement createStatement() throws SQLException {<br \/>\nreturn new StatementWrapper(this, wrappedConnection.createStatement());<br \/>\n}<\/p>\n<p>public PreparedStatement prepareStatement(String sql) throws SQLException {<br \/>\nreturn new PreparedStatementWrapper(this, wrappedConnection.prepareStatement(sql));<br \/>\n}<\/p>\n<p>public CallableStatement prepareCall(String sql) throws SQLException {<br \/>\nreturn new CallableStatementWrapper(this, wrappedConnection.prepareCall(sql));<br \/>\n}<\/p>\n<p>public String nativeSQL(String sql) throws SQLException {<br \/>\nreturn wrappedConnection.nativeSQL(sql);<br \/>\n}<\/p>\n<p>public void setAutoCommit(boolean autoCommit) throws SQLException {<br \/>\nwrappedConnection.setAutoCommit(autoCommit);<br \/>\n}<\/p>\n<p>public boolean getAutoCommit() throws SQLException {<br \/>\nreturn wrappedConnection.getAutoCommit();<br \/>\n}<\/p>\n<p>public void commit() throws SQLException {<br \/>\nwrappedConnection.commit();<br \/>\n}<\/p>\n<p>public void rollback() throws SQLException {<br \/>\nwrappedConnection.rollback();<br \/>\n}<\/p>\n<p>public void close() throws SQLException {<br \/>\nwrappedConnection.close();<br \/>\n}<\/p>\n<p>public boolean isClosed() throws SQLException {<br \/>\nreturn wrappedConnection.isClosed();<br \/>\n}<\/p>\n<p>public DatabaseMetaData getMetaData() throws SQLException {<br \/>\nreturn wrappedConnection.getMetaData();<br \/>\n}<\/p>\n<p>public void setReadOnly(boolean readOnly) throws SQLException {<br \/>\nwrappedConnection.setReadOnly(readOnly);<br \/>\n}<\/p>\n<p>public boolean isReadOnly() throws SQLException {<br \/>\nreturn wrappedConnection.isReadOnly();<br \/>\n}<\/p>\n<p>public void setCatalog(String catalog) throws SQLException {<br \/>\nwrappedConnection.setCatalog(catalog);<br \/>\n}<\/p>\n<p>public String getCatalog() throws SQLException {<br \/>\nreturn wrappedConnection.getCatalog();<br \/>\n}<\/p>\n<p>public void setTransactionIsolation(int level) throws SQLException {<br \/>\nwrappedConnection.setTransactionIsolation(level);<br \/>\n}<\/p>\n<p>public int getTransactionIsolation() throws SQLException {<br \/>\nreturn wrappedConnection.getTransactionIsolation();<br \/>\n}<\/p>\n<p>public SQLWarning getWarnings() throws SQLException {<br \/>\nreturn wrappedConnection.getWarnings();<br \/>\n}<\/p>\n<p>public void clearWarnings() throws SQLException {<br \/>\nwrappedConnection.clearWarnings();<br \/>\n}<\/p>\n<p>public Statement createStatement(int resultSetType, int resultSetConcurrency)<br \/>\nthrows SQLException {<br \/>\nreturn new StatementWrapper(this, wrappedConnection.createStatement(resultSetType, resultSetConcurrency));<br \/>\n}<\/p>\n<p>public PreparedStatement prepareStatement(String sql, int resultSetType,<br \/>\nint resultSetConcurrency) throws SQLException {<br \/>\nreturn new PreparedStatementWrapper(this, wrappedConnection.prepareStatement(sql, resultSetType, resultSetConcurrency));<br \/>\n}<\/p>\n<p>public CallableStatement prepareCall(String sql, int resultSetType,<br \/>\nint resultSetConcurrency) throws SQLException {<br \/>\nreturn new CallableStatementWrapper(this, wrappedConnection.prepareCall(sql, resultSetType, resultSetConcurrency));<br \/>\n}<\/p>\n<p>public Map&lt;String, Class&gt; getTypeMap() throws SQLException {<br \/>\nreturn wrappedConnection.getTypeMap();<br \/>\n}<\/p>\n<p>public void setTypeMap(Map&lt;String, Class&gt; map) throws SQLException {<br \/>\nwrappedConnection.setTypeMap(map);<br \/>\n}<\/p>\n<p>public void setHoldability(int holdability) throws SQLException {<br \/>\nwrappedConnection.setHoldability(holdability);<br \/>\n}<\/p>\n<p>public int getHoldability() throws SQLException {<br \/>\nreturn wrappedConnection.getHoldability();<br \/>\n}<\/p>\n<p>public Savepoint setSavepoint() throws SQLException {<br \/>\nreturn wrappedConnection.setSavepoint();<br \/>\n}<\/p>\n<p>public Savepoint setSavepoint(String name) throws SQLException {<br \/>\nreturn wrappedConnection.setSavepoint(name);<br \/>\n}<\/p>\n<p>public void rollback(Savepoint savepoint) throws SQLException {<br \/>\nwrappedConnection.rollback(savepoint);<br \/>\n}<\/p>\n<p>public void releaseSavepoint(Savepoint savepoint) throws SQLException {<br \/>\nwrappedConnection.releaseSavepoint(savepoint);<br \/>\n}<\/p>\n<p>public Statement createStatement(int resultSetType,<br \/>\nint resultSetConcurrency, int resultSetHoldability)<br \/>\nthrows SQLException {<br \/>\nreturn new StatementWrapper(this, wrappedConnection.createStatement(resultSetType, resultSetConcurrency, resultSetHoldability));<br \/>\n}<\/p>\n<p>public PreparedStatement prepareStatement(String sql, int resultSetType,<br \/>\nint resultSetConcurrency, int resultSetHoldability)<br \/>\nthrows SQLException {<br \/>\nreturn new PreparedStatementWrapper(this, wrappedConnection.prepareStatement(sql, resultSetType, resultSetConcurrency, resultSetHoldability));<br \/>\n}<\/p>\n<p>public CallableStatement prepareCall(String sql, int resultSetType,<br \/>\nint resultSetConcurrency, int resultSetHoldability)<br \/>\nthrows SQLException {<br \/>\nreturn new CallableStatementWrapper(this, wrappedConnection.prepareCall(sql, resultSetType, resultSetConcurrency, resultSetHoldability));<br \/>\n}<\/p>\n<p>public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)<br \/>\nthrows SQLException {<br \/>\nreturn new PreparedStatementWrapper(this, wrappedConnection.prepareStatement(sql, autoGeneratedKeys));<br \/>\n}<\/p>\n<p>public PreparedStatement prepareStatement(String sql, int[] columnIndexes)<br \/>\nthrows SQLException {<br \/>\nreturn new PreparedStatementWrapper(this, wrappedConnection.prepareStatement(sql, columnIndexes));<br \/>\n}<\/p>\n<p>public PreparedStatement prepareStatement(String sql, String[] columnNames)<br \/>\nthrows SQLException {<br \/>\nreturn new PreparedStatementWrapper(this, wrappedConnection.prepareStatement(sql, columnNames));<br \/>\n}<\/p>\n<p>public Clob createClob() throws SQLException {<br \/>\nreturn wrappedConnection.createClob();<br \/>\n}<\/p>\n<p>public Blob createBlob() throws SQLException {<br \/>\nreturn wrappedConnection.createBlob();<br \/>\n}<\/p>\n<p>public NClob createNClob() throws SQLException {<br \/>\nreturn wrappedConnection.createNClob();<br \/>\n}<\/p>\n<p>public SQLXML createSQLXML() throws SQLException {<br \/>\nreturn wrappedConnection.createSQLXML();<br \/>\n}<\/p>\n<p>public boolean isValid(int timeout) throws SQLException {<br \/>\nreturn wrappedConnection.isValid(timeout);<br \/>\n}<\/p>\n<p>public void setClientInfo(String name, String value)<br \/>\nthrows SQLClientInfoException {<br \/>\nwrappedConnection.setClientInfo(name, value);<br \/>\n}<\/p>\n<p>public void setClientInfo(Properties properties)<br \/>\nthrows SQLClientInfoException {<br \/>\nwrappedConnection.setClientInfo(properties);<br \/>\n}<\/p>\n<p>public String getClientInfo(String name) throws SQLException {<br \/>\nreturn wrappedConnection.getClientInfo(name);<br \/>\n}<\/p>\n<p>public Properties getClientInfo() throws SQLException {<br \/>\nreturn wrappedConnection.getClientInfo();<br \/>\n}<\/p>\n<p>public Array createArrayOf(String typeName, Object[] elements)<br \/>\nthrows SQLException {<br \/>\nreturn wrappedConnection.createArrayOf(typeName, elements);<br \/>\n}<\/p>\n<p>public Struct createStruct(String typeName, Object[] attributes)<br \/>\nthrows SQLException {<br \/>\nreturn wrappedConnection.createStruct(typeName, attributes);<br \/>\n}<br \/>\n}<\/p>\n<p><strong>StatementWrapper.java<\/strong>:<br \/>\n<code><br \/>\npackage redfin.util.jdbc;<\/code><\/p>\n<p>import java.sql.Connection;<br \/>\nimport java.sql.ResultSet;<br \/>\nimport java.sql.SQLException;<br \/>\nimport java.sql.SQLWarning;<br \/>\nimport java.sql.Statement;<\/p>\n<p>import redfin.util.stats.PerfStatsManager;<\/p>\n<p>\/**<br \/>\n* A wrapper for Statements generated by ConnectionWrapper. See comments in DriverWrapper.<br \/>\n*<br \/>\n*\/<br \/>\npublic class StatementWrapper implements Statement {<\/p>\n<p>private Connection parentConnection;<br \/>\nprivate Statement wrappedStatement;<\/p>\n<p>public StatementWrapper(Connection parentConnection, Statement wrappedStatement) {<br \/>\nthis.parentConnection = parentConnection;<br \/>\nthis.wrappedStatement = wrappedStatement;<\/p>\n<p>if (PerfStatsManager.perfStatsEnabled()) {<br \/>\nPerfStatsManager.getThreadLocalJDBCPerfStats().incrementNumStatements();<br \/>\n}<br \/>\n}<\/p>\n<p>\/\/ Semi-copied from http:\/\/www.java2s.com\/Open-Source\/Java-Document\/Database-JDBC-Connection-Pool\/mysql\/com\/mysql\/jdbc\/jdbc2\/optional\/JDBC4PreparedStatementWrapper.java.htm<br \/>\npublic T unwrap(Class iface) throws SQLException {<br \/>\ntry {<br \/>\nif (\u00a0\u00a0\u00a0\u00a0&#8220;java.sql.Statement&#8221;.equals(iface.getName())<br \/>\n|| &#8220;java.sql.Wrapper.class&#8221;.equals(iface.getName())) {<br \/>\nreturn iface.cast(this);<br \/>\n}<\/p>\n<p>return wrappedStatement.unwrap(iface);<br \/>\n} catch (ClassCastException cce) {<br \/>\nthrow new SQLException(&#8220;Unable to unwrap to &#8221; + iface.toString(), cce);<br \/>\n}<br \/>\n}<\/p>\n<p>public boolean isWrapperFor(Class iface) throws SQLException {<br \/>\nif (\u00a0\u00a0\u00a0\u00a0&#8220;java.sql.Statement&#8221;.equals(iface.getName())<br \/>\n|| &#8220;java.sql.Wrapper.class&#8221;.equals(iface.getName())) {<br \/>\nreturn true;<br \/>\n}<br \/>\nreturn wrappedStatement.isWrapperFor(iface);<br \/>\n}<\/p>\n<p>public ResultSet executeQuery(String sql) throws SQLException {<br \/>\nreturn new ResultSetWrapper(this, wrappedStatement.executeQuery(sql));<br \/>\n}<\/p>\n<p>public int executeUpdate(String sql) throws SQLException {<br \/>\nreturn wrappedStatement.executeUpdate(sql);<br \/>\n}<\/p>\n<p>public void close() throws SQLException {<br \/>\nwrappedStatement.close();<br \/>\n}<\/p>\n<p>public int getMaxFieldSize() throws SQLException {<br \/>\nreturn wrappedStatement.getMaxFieldSize();<br \/>\n}<\/p>\n<p>public void setMaxFieldSize(int max) throws SQLException {<br \/>\nwrappedStatement.setMaxFieldSize(max);<br \/>\n}<\/p>\n<p>public int getMaxRows() throws SQLException {<br \/>\nreturn wrappedStatement.getMaxRows();<br \/>\n}<\/p>\n<p>public void setMaxRows(int max) throws SQLException {<br \/>\nwrappedStatement.setMaxRows(max);<br \/>\n}<\/p>\n<p>public void setEscapeProcessing(boolean enable) throws SQLException {<br \/>\nwrappedStatement.setEscapeProcessing(enable);<br \/>\n}<\/p>\n<p>public int getQueryTimeout() throws SQLException {<br \/>\nreturn wrappedStatement.getQueryTimeout();<br \/>\n}<\/p>\n<p>public void setQueryTimeout(int seconds) throws SQLException {<br \/>\nwrappedStatement.setQueryTimeout(seconds);<br \/>\n}<\/p>\n<p>public void cancel() throws SQLException {<br \/>\nwrappedStatement.cancel();<br \/>\n}<\/p>\n<p>public SQLWarning getWarnings() throws SQLException {<br \/>\nreturn wrappedStatement.getWarnings();<br \/>\n}<\/p>\n<p>public void clearWarnings() throws SQLException {<br \/>\nwrappedStatement.clearWarnings();<br \/>\n}<\/p>\n<p>public void setCursorName(String name) throws SQLException {<br \/>\nwrappedStatement.setCursorName(name);<br \/>\n}<\/p>\n<p>public boolean execute(String sql) throws SQLException {<br \/>\nreturn wrappedStatement.execute(sql);<br \/>\n}<\/p>\n<p>public ResultSet getResultSet() throws SQLException {<br \/>\nreturn new ResultSetWrapper(this, wrappedStatement.getResultSet());<br \/>\n}<\/p>\n<p>public int getUpdateCount() throws SQLException {<br \/>\nreturn wrappedStatement.getUpdateCount();<br \/>\n}<\/p>\n<p>public boolean getMoreResults() throws SQLException {<br \/>\nreturn wrappedStatement.getMoreResults();<br \/>\n}<\/p>\n<p>public void setFetchDirection(int direction) throws SQLException {<br \/>\nwrappedStatement.setFetchDirection(direction);<br \/>\n}<\/p>\n<p>public int getFetchDirection() throws SQLException {<br \/>\nreturn wrappedStatement.getFetchDirection();<br \/>\n}<\/p>\n<p>public void setFetchSize(int rows) throws SQLException {<br \/>\nwrappedStatement.setFetchSize(rows);<br \/>\n}<\/p>\n<p>public int getFetchSize() throws SQLException {<br \/>\nreturn wrappedStatement.getFetchSize();<br \/>\n}<\/p>\n<p>public int getResultSetConcurrency() throws SQLException {<br \/>\nreturn wrappedStatement.getResultSetConcurrency();<br \/>\n}<\/p>\n<p>public int getResultSetType() throws SQLException {<br \/>\nreturn wrappedStatement.getResultSetType();<br \/>\n}<\/p>\n<p>public void addBatch(String sql) throws SQLException {<br \/>\nwrappedStatement.addBatch(sql);<br \/>\n}<\/p>\n<p>public void clearBatch() throws SQLException {<br \/>\nwrappedStatement.clearBatch();<br \/>\n}<\/p>\n<p>public int[] executeBatch() throws SQLException {<br \/>\nreturn = wrappedStatement.executeBatch();<br \/>\n}<\/p>\n<p>public Connection getConnection() throws SQLException {<br \/>\nreturn parentConnection;<br \/>\n}<\/p>\n<p>public boolean getMoreResults(int current) throws SQLException {<br \/>\nreturn wrappedStatement.getMoreResults(current);<br \/>\n}<\/p>\n<p>public ResultSet getGeneratedKeys() throws SQLException {<br \/>\nreturn new ResultSetWrapper(this, wrappedStatement.getGeneratedKeys());<br \/>\n}<\/p>\n<p>public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException {<br \/>\nreturn wrappedStatement.executeUpdate(sql, autoGeneratedKeys);<br \/>\n}<\/p>\n<p>public int executeUpdate(String sql, int[] columnIndexes) throws SQLException {<br \/>\nreturn wrappedStatement.executeUpdate(sql, columnIndexes);<br \/>\n}<\/p>\n<p>public int executeUpdate(String sql, String[] columnNames) throws SQLException {<br \/>\nreturn wrappedStatement.executeUpdate(sql, columnNames);<br \/>\n}<\/p>\n<p>public boolean execute(String sql, int autoGeneratedKeys) throws SQLException {<br \/>\nreturn wrappedStatement.execute(sql, autoGeneratedKeys);<br \/>\n}<\/p>\n<p>public boolean execute(String sql, int[] columnIndexes) throws SQLException {<br \/>\nreturn wrappedStatement.execute(sql, columnIndexes);<br \/>\n}<\/p>\n<p>public boolean execute(String sql, String[] columnNames) throws SQLException {<br \/>\nreturn wrappedStatement.execute(sql, columnNames);<br \/>\n}<\/p>\n<p>public int getResultSetHoldability() throws SQLException {<br \/>\nreturn wrappedStatement.getResultSetHoldability();<br \/>\n}<\/p>\n<p>public boolean isClosed() throws SQLException {<br \/>\nreturn wrappedStatement.isClosed();<br \/>\n}<\/p>\n<p>public void setPoolable(boolean poolable) throws SQLException {<br \/>\nwrappedStatement.setPoolable(poolable);<br \/>\n}<\/p>\n<p>public boolean isPoolable() throws SQLException {<br \/>\nreturn wrappedStatement.isPoolable();<br \/>\n}<br \/>\n}<\/p>\n<p><strong>CallableStatementWrapper.java<\/strong>:<br \/>\n<code><br \/>\npackage redfin.util.jdbc;<\/code><\/p>\n<p>import java.io.InputStream;<br \/>\nimport java.io.Reader;<br \/>\nimport java.math.BigDecimal;<br \/>\nimport java.net.URL;<br \/>\nimport java.sql.Array;<br \/>\nimport java.sql.Blob;<br \/>\nimport java.sql.CallableStatement;<br \/>\nimport java.sql.Clob;<br \/>\nimport java.sql.Connection;<br \/>\nimport java.sql.Date;<br \/>\nimport java.sql.NClob;<br \/>\nimport java.sql.ParameterMetaData;<br \/>\nimport java.sql.Ref;<br \/>\nimport java.sql.ResultSet;<br \/>\nimport java.sql.ResultSetMetaData;<br \/>\nimport java.sql.RowId;<br \/>\nimport java.sql.SQLException;<br \/>\nimport java.sql.SQLWarning;<br \/>\nimport java.sql.SQLXML;<br \/>\nimport java.sql.Time;<br \/>\nimport java.sql.Timestamp;<br \/>\nimport java.util.Calendar;<br \/>\nimport java.util.Map;<\/p>\n<p>import redfin.util.stats.PerfStatsManager;<\/p>\n<p>\/**<br \/>\n* A wrapper for CallableStatements generated by ConnectionWrapper. See comments in DriverWrapper.<br \/>\n*<br \/>\n*\/<br \/>\npublic class CallableStatementWrapper implements CallableStatement {<\/p>\n<p>private Connection parentConnection;<br \/>\nprivate CallableStatement wrappedCallableStatement;<\/p>\n<p>public CallableStatementWrapper(Connection parentConnection, CallableStatement wrappedCallableStatement) {<br \/>\nthis.parentConnection = parentConnection;<br \/>\nthis.wrappedCallableStatement = wrappedCallableStatement;<\/p>\n<p>if (PerfStatsManager.perfStatsEnabled()) {<br \/>\nPerfStatsManager.getThreadLocalJDBCPerfStats().incrementNumStatements();<br \/>\n}<br \/>\n}<\/p>\n<p>\/\/ Semi-copied from http:\/\/www.java2s.com\/Open-Source\/Java-Document\/Database-JDBC-Connection-Pool\/mysql\/com\/mysql\/jdbc\/jdbc2\/optional\/JDBC4PreparedStatementWrapper.java.htm<br \/>\npublic T unwrap(Class iface) throws SQLException {<br \/>\ntry {<br \/>\nif (\u00a0\u00a0\u00a0\u00a0&#8220;java.sql.CallableStatement&#8221;.equals(iface.getName())<br \/>\n|| &#8220;java.sql.PreparedStatement&#8221;.equals(iface.getName())<br \/>\n|| &#8220;java.sql.Statement&#8221;.equals(iface.getName())<br \/>\n|| &#8220;java.sql.Wrapper.class&#8221;.equals(iface.getName())) {<br \/>\nreturn iface.cast(this);<br \/>\n}<\/p>\n<p>return wrappedCallableStatement.unwrap(iface);<br \/>\n} catch (ClassCastException cce) {<br \/>\nthrow new SQLException(&#8220;Unable to unwrap to &#8221; + iface.toString(), cce);<br \/>\n}<br \/>\n}<\/p>\n<p>public boolean isWrapperFor(Class iface) throws SQLException {<br \/>\nif (\u00a0\u00a0\u00a0\u00a0&#8220;java.sql.CallableStatement&#8221;.equals(iface.getName())<br \/>\n|| &#8220;java.sql.PreparedStatement&#8221;.equals(iface.getName())<br \/>\n|| &#8220;java.sql.Statement&#8221;.equals(iface.getName())<br \/>\n|| &#8220;java.sql.Wrapper.class&#8221;.equals(iface.getName())) {<br \/>\nreturn true;<br \/>\n}<br \/>\nreturn wrappedCallableStatement.isWrapperFor(iface);<br \/>\n}<\/p>\n<p>public ResultSet executeQuery() throws SQLException {<br \/>\nreturn new ResultSetWrapper(this, wrappedCallableStatement.executeQuery());<br \/>\n}<\/p>\n<p>public int executeUpdate() throws SQLException {<br \/>\nreturn wrappedCallableStatement.executeUpdate();<br \/>\n}<\/p>\n<p>public void setNull(int parameterIndex, int sqlType) throws SQLException {<br \/>\nwrappedCallableStatement.setNull(parameterIndex, sqlType);<br \/>\n}<\/p>\n<p>public void setBoolean(int parameterIndex, boolean x) throws SQLException {<br \/>\nwrappedCallableStatement.setBoolean(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setByte(int parameterIndex, byte x) throws SQLException {<br \/>\nwrappedCallableStatement.setByte(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setShort(int parameterIndex, short x) throws SQLException {<br \/>\nwrappedCallableStatement.setShort(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setInt(int parameterIndex, int x) throws SQLException {<br \/>\nwrappedCallableStatement.setInt(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setLong(int parameterIndex, long x) throws SQLException {<br \/>\nwrappedCallableStatement.setLong(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setFloat(int parameterIndex, float x) throws SQLException {<br \/>\nwrappedCallableStatement.setFloat(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setDouble(int parameterIndex, double x) throws SQLException {<br \/>\nwrappedCallableStatement.setDouble(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException {<br \/>\nwrappedCallableStatement.setBigDecimal(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setString(int parameterIndex, String x) throws SQLException {<br \/>\nwrappedCallableStatement.setString(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setBytes(int parameterIndex, byte[] x) throws SQLException {<br \/>\nwrappedCallableStatement.setBytes(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setDate(int parameterIndex, Date x) throws SQLException {<br \/>\nwrappedCallableStatement.setDate(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setTime(int parameterIndex, Time x) throws SQLException {<br \/>\nwrappedCallableStatement.setTime(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException {<br \/>\nwrappedCallableStatement.setTimestamp(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException {<br \/>\nwrappedCallableStatement.setAsciiStream(parameterIndex, x);<br \/>\n}<\/p>\n<p>@SuppressWarnings(&#8220;deprecation&#8221;)<br \/>\npublic void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException {<br \/>\nwrappedCallableStatement.setUnicodeStream(parameterIndex, x, length);<br \/>\n}<\/p>\n<p>public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException {<br \/>\nwrappedCallableStatement.setBinaryStream(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void clearParameters() throws SQLException {<br \/>\nwrappedCallableStatement.clearParameters();<br \/>\n}<\/p>\n<p>public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException {<br \/>\nwrappedCallableStatement.setObject(parameterIndex, x, targetSqlType);<br \/>\n}<\/p>\n<p>public void setObject(int parameterIndex, Object x) throws SQLException {<br \/>\nwrappedCallableStatement.setObject(parameterIndex, x);<br \/>\n}<\/p>\n<p>public boolean execute() throws SQLException {<br \/>\nreturn wrappedCallableStatement.execute();<br \/>\n}<\/p>\n<p>public void addBatch() throws SQLException {<br \/>\nwrappedCallableStatement.addBatch();<br \/>\n}<\/p>\n<p>public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException {<br \/>\nwrappedCallableStatement.setCharacterStream(parameterIndex, reader, length);<br \/>\n}<\/p>\n<p>public void setRef(int parameterIndex, Ref x) throws SQLException {<br \/>\nwrappedCallableStatement.setRef(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setBlob(int parameterIndex, Blob x) throws SQLException {<br \/>\nwrappedCallableStatement.setBlob(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setClob(int parameterIndex, Clob x) throws SQLException {<br \/>\nwrappedCallableStatement.setClob(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setArray(int parameterIndex, Array x) throws SQLException {<br \/>\nwrappedCallableStatement.setArray(parameterIndex, x);<br \/>\n}<\/p>\n<p>public ResultSetMetaData getMetaData() throws SQLException {<br \/>\nreturn wrappedCallableStatement.getMetaData();<br \/>\n}<\/p>\n<p>public void setDate(int parameterIndex, Date x, Calendar cal) throws SQLException {<br \/>\nwrappedCallableStatement.setDate(parameterIndex, x, cal);<\/p>\n<p>}<\/p>\n<p>public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException {<br \/>\nwrappedCallableStatement.setTime(parameterIndex, x, cal);<\/p>\n<p>}<\/p>\n<p>public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws SQLException {<br \/>\nwrappedCallableStatement.setTimestamp(parameterIndex, x, cal);<\/p>\n<p>}<\/p>\n<p>public void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException {<br \/>\nwrappedCallableStatement.setNull(parameterIndex, sqlType, typeName);<\/p>\n<p>}<\/p>\n<p>public void setURL(int parameterIndex, URL x) throws SQLException {<br \/>\nwrappedCallableStatement.setURL(parameterIndex, x);<br \/>\n}<\/p>\n<p>public ParameterMetaData getParameterMetaData() throws SQLException {<br \/>\nreturn wrappedCallableStatement.getParameterMetaData();<br \/>\n}<\/p>\n<p>public void setRowId(int parameterIndex, RowId x) throws SQLException {<br \/>\nwrappedCallableStatement.setRowId(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setNString(int parameterIndex, String value) throws SQLException {<br \/>\nwrappedCallableStatement.setNString(parameterIndex, value);<br \/>\n}<\/p>\n<p>public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {<br \/>\nwrappedCallableStatement.setNCharacterStream(parameterIndex, value, length);<br \/>\n}<\/p>\n<p>public void setNClob(int parameterIndex, NClob value) throws SQLException {<br \/>\nwrappedCallableStatement.setNClob(parameterIndex, value);<br \/>\n}<\/p>\n<p>public void setClob(int parameterIndex, Reader reader, long length) throws SQLException {<br \/>\nwrappedCallableStatement.setClob(parameterIndex, reader, length);<br \/>\n}<\/p>\n<p>public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException {<br \/>\nwrappedCallableStatement.setBlob(parameterIndex, inputStream, length);<br \/>\n}<\/p>\n<p>public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException {<br \/>\nwrappedCallableStatement.setNClob(parameterIndex, reader, length);<br \/>\n}<\/p>\n<p>public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {<br \/>\nwrappedCallableStatement.setSQLXML(parameterIndex, xmlObject);<br \/>\n}<\/p>\n<p>public void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws SQLException {<br \/>\nwrappedCallableStatement.setObject(parameterIndex, x, targetSqlType, scaleOrLength);<br \/>\n}<\/p>\n<p>public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException {<br \/>\nwrappedCallableStatement.setAsciiStream(parameterIndex, x, length);<br \/>\n}<\/p>\n<p>public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException {<br \/>\nwrappedCallableStatement.setBinaryStream(parameterIndex, x, length);<br \/>\n}<\/p>\n<p>public void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException {<br \/>\nwrappedCallableStatement.setCharacterStream(parameterIndex, reader, length);<br \/>\n}<\/p>\n<p>public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException {<br \/>\nwrappedCallableStatement.setAsciiStream(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException {<br \/>\nwrappedCallableStatement.setBinaryStream(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException {<br \/>\nwrappedCallableStatement.setCharacterStream(parameterIndex, reader);<br \/>\n}<\/p>\n<p>public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {<br \/>\nwrappedCallableStatement.setNCharacterStream(parameterIndex, value);<br \/>\n}<\/p>\n<p>public void setClob(int parameterIndex, Reader reader) throws SQLException {<br \/>\nwrappedCallableStatement.setClob(parameterIndex, reader);<br \/>\n}<\/p>\n<p>public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException {<br \/>\nwrappedCallableStatement.setBlob(parameterIndex, inputStream);<br \/>\n}<\/p>\n<p>public void setNClob(int parameterIndex, Reader reader) throws SQLException {<br \/>\nwrappedCallableStatement.setNClob(parameterIndex, reader);<br \/>\n}<\/p>\n<p>public ResultSet executeQuery(String sql) throws SQLException {<br \/>\nreturn new ResultSetWrapper(this, wrappedCallableStatement.executeQuery(sql));<br \/>\n}<\/p>\n<p>public int executeUpdate(String sql) throws SQLException {<br \/>\nreturn wrappedCallableStatement.executeUpdate(sql);<br \/>\n}<\/p>\n<p>public void close() throws SQLException {<br \/>\nwrappedCallableStatement.close();<br \/>\n}<\/p>\n<p>public int getMaxFieldSize() throws SQLException {<br \/>\nreturn wrappedCallableStatement.getMaxFieldSize();<br \/>\n}<\/p>\n<p>public void setMaxFieldSize(int max) throws SQLException {<br \/>\nwrappedCallableStatement.setMaxFieldSize(max);<br \/>\n}<\/p>\n<p>public int getMaxRows() throws SQLException {<br \/>\nreturn wrappedCallableStatement.getMaxRows();<br \/>\n}<\/p>\n<p>public void setMaxRows(int max) throws SQLException {<br \/>\nwrappedCallableStatement.setMaxRows(max);<br \/>\n}<\/p>\n<p>public void setEscapeProcessing(boolean enable) throws SQLException {<br \/>\nwrappedCallableStatement.setEscapeProcessing(enable);<br \/>\n}<\/p>\n<p>public int getQueryTimeout() throws SQLException {<br \/>\nreturn wrappedCallableStatement.getQueryTimeout();<br \/>\n}<\/p>\n<p>public void setQueryTimeout(int seconds) throws SQLException {<br \/>\nwrappedCallableStatement.setQueryTimeout(seconds);<br \/>\n}<\/p>\n<p>public void cancel() throws SQLException {<br \/>\nwrappedCallableStatement.cancel();<br \/>\n}<\/p>\n<p>public SQLWarning getWarnings() throws SQLException {<br \/>\nreturn wrappedCallableStatement.getWarnings();<br \/>\n}<\/p>\n<p>public void clearWarnings() throws SQLException {<br \/>\nwrappedCallableStatement.clearWarnings();<br \/>\n}<\/p>\n<p>public void setCursorName(String name) throws SQLException {<br \/>\nwrappedCallableStatement.setCursorName(name);<br \/>\n}<\/p>\n<p>public boolean execute(String sql) throws SQLException {<br \/>\nreturn wrappedCallableStatement.execute(sql);<br \/>\n}<\/p>\n<p>public ResultSet getResultSet() throws SQLException {<br \/>\nreturn new ResultSetWrapper(this, wrappedCallableStatement.getResultSet());<br \/>\n}<\/p>\n<p>public int getUpdateCount() throws SQLException {<br \/>\nreturn wrappedCallableStatement.getUpdateCount();<br \/>\n}<\/p>\n<p>public boolean getMoreResults() throws SQLException {<br \/>\nreturn wrappedCallableStatement.getMoreResults();<br \/>\n}<\/p>\n<p>public void setFetchDirection(int direction) throws SQLException {<br \/>\nwrappedCallableStatement.setFetchDirection(direction);<br \/>\n}<\/p>\n<p>public int getFetchDirection() throws SQLException {<br \/>\nreturn wrappedCallableStatement.getFetchDirection();<br \/>\n}<\/p>\n<p>public void setFetchSize(int rows) throws SQLException {<br \/>\nwrappedCallableStatement.setFetchSize(rows);<br \/>\n}<\/p>\n<p>public int getFetchSize() throws SQLException {<br \/>\nreturn wrappedCallableStatement.getFetchSize();<br \/>\n}<\/p>\n<p>public int getResultSetConcurrency() throws SQLException {<br \/>\nreturn wrappedCallableStatement.getResultSetConcurrency();<br \/>\n}<\/p>\n<p>public int getResultSetType() throws SQLException {<br \/>\nreturn wrappedCallableStatement.getResultSetType();<br \/>\n}<\/p>\n<p>public void addBatch(String sql) throws SQLException {<br \/>\nwrappedCallableStatement.addBatch(sql);<br \/>\n}<\/p>\n<p>public void clearBatch() throws SQLException {<br \/>\nwrappedCallableStatement.clearBatch();<br \/>\n}<\/p>\n<p>public int[] executeBatch() throws SQLException {<br \/>\nreturn wrappedCallableStatement.executeBatch();<br \/>\n}<\/p>\n<p>public Connection getConnection() throws SQLException {<br \/>\nreturn parentConnection;<br \/>\n}<\/p>\n<p>public boolean getMoreResults(int current) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getMoreResults(current);<br \/>\n}<\/p>\n<p>public ResultSet getGeneratedKeys() throws SQLException {<br \/>\nreturn new ResultSetWrapper(this, wrappedCallableStatement.getGeneratedKeys());<br \/>\n}<\/p>\n<p>public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException {<br \/>\nreturn wrappedCallableStatement.executeUpdate(sql, autoGeneratedKeys);<br \/>\n}<\/p>\n<p>public int executeUpdate(String sql, int[] columnIndexes) throws SQLException {<br \/>\nreturn wrappedCallableStatement.executeUpdate(sql, columnIndexes);<br \/>\n}<\/p>\n<p>public int executeUpdate(String sql, String[] columnNames) throws SQLException {<br \/>\nreturn wrappedCallableStatement.executeUpdate(sql, columnNames);<br \/>\n}<\/p>\n<p>public boolean execute(String sql, int autoGeneratedKeys) throws SQLException {<br \/>\nreturn wrappedCallableStatement.execute(sql, autoGeneratedKeys);<br \/>\n}<\/p>\n<p>public boolean execute(String sql, int[] columnIndexes) throws SQLException {<br \/>\nreturn wrappedCallableStatement.execute(sql, columnIndexes);<br \/>\n}<\/p>\n<p>public boolean execute(String sql, String[] columnNames) throws SQLException {<br \/>\nreturn wrappedCallableStatement.execute(sql, columnNames);<br \/>\n}<\/p>\n<p>public int getResultSetHoldability() throws SQLException {<br \/>\nreturn wrappedCallableStatement.getResultSetHoldability();<br \/>\n}<\/p>\n<p>public boolean isClosed() throws SQLException {<br \/>\nreturn wrappedCallableStatement.isClosed();<br \/>\n}<\/p>\n<p>public void setPoolable(boolean poolable) throws SQLException {<br \/>\nwrappedCallableStatement.setPoolable(poolable);<br \/>\n}<\/p>\n<p>public boolean isPoolable() throws SQLException {<br \/>\nreturn wrappedCallableStatement.isPoolable();<br \/>\n}<\/p>\n<p>public void registerOutParameter(int parameterIndex, int sqlType) throws SQLException {<br \/>\nwrappedCallableStatement.registerOutParameter(parameterIndex, sqlType);<br \/>\n}<\/p>\n<p>public void registerOutParameter(int parameterIndex, int sqlType, int scale) throws SQLException {<br \/>\nwrappedCallableStatement.registerOutParameter(parameterIndex, sqlType, scale);<br \/>\n}<\/p>\n<p>public boolean wasNull() throws SQLException {<br \/>\nreturn wrappedCallableStatement.wasNull();<br \/>\n}<\/p>\n<p>public String getString(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getString(parameterIndex);<br \/>\n}<\/p>\n<p>public boolean getBoolean(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getBoolean(parameterIndex);<br \/>\n}<\/p>\n<p>public byte getByte(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getByte(parameterIndex);<br \/>\n}<\/p>\n<p>public short getShort(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getShort(parameterIndex);<br \/>\n}<\/p>\n<p>public int getInt(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getInt(parameterIndex);<br \/>\n}<\/p>\n<p>public long getLong(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getLong(parameterIndex);<br \/>\n}<\/p>\n<p>public float getFloat(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getFloat(parameterIndex);<br \/>\n}<\/p>\n<p>public double getDouble(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getDouble(parameterIndex);<br \/>\n}<\/p>\n<p>public BigDecimal getBigDecimal(int parameterIndex, int scale) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getBigDecimal(parameterIndex);<br \/>\n}<\/p>\n<p>public byte[] getBytes(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getBytes(parameterIndex);<br \/>\n}<\/p>\n<p>public Date getDate(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getDate(parameterIndex);<br \/>\n}<\/p>\n<p>public Time getTime(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getTime(parameterIndex);<br \/>\n}<\/p>\n<p>public Timestamp getTimestamp(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getTimestamp(parameterIndex);<br \/>\n}<\/p>\n<p>public Object getObject(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getObject(parameterIndex);<br \/>\n}<\/p>\n<p>public BigDecimal getBigDecimal(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getBigDecimal(parameterIndex);<br \/>\n}<\/p>\n<p>public Object getObject(int parameterIndex, Map&lt;String, Class&gt; map) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getObject(parameterIndex, map);<br \/>\n}<\/p>\n<p>public Ref getRef(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getRef(parameterIndex);<br \/>\n}<\/p>\n<p>public Blob getBlob(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getBlob(parameterIndex);<br \/>\n}<\/p>\n<p>public Clob getClob(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getClob(parameterIndex);<br \/>\n}<\/p>\n<p>public Array getArray(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getArray(parameterIndex);<br \/>\n}<\/p>\n<p>public Date getDate(int parameterIndex, Calendar cal) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getDate(parameterIndex, cal);<br \/>\n}<\/p>\n<p>public Time getTime(int parameterIndex, Calendar cal) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getTime(parameterIndex, cal);<br \/>\n}<\/p>\n<p>public Timestamp getTimestamp(int parameterIndex, Calendar cal) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getTimestamp(parameterIndex, cal);<br \/>\n}<\/p>\n<p>public void registerOutParameter(int parameterIndex, int sqlType, String typeName) throws SQLException {<br \/>\nwrappedCallableStatement.registerOutParameter(parameterIndex, sqlType, typeName);<br \/>\n}<\/p>\n<p>public void registerOutParameter(String parameterName, int sqlType) throws SQLException {<br \/>\nwrappedCallableStatement.registerOutParameter(parameterName, sqlType);<br \/>\n}<\/p>\n<p>public void registerOutParameter(String parameterName, int sqlType, int scale) throws SQLException {<br \/>\nwrappedCallableStatement.registerOutParameter(parameterName, sqlType);<br \/>\n}<\/p>\n<p>public void registerOutParameter(String parameterName, int sqlType, String typeName) throws SQLException {<br \/>\nwrappedCallableStatement.registerOutParameter(parameterName, sqlType, typeName);<br \/>\n}<\/p>\n<p>public URL getURL(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getURL(parameterIndex);<br \/>\n}<\/p>\n<p>public void setURL(String parameterName, URL val) throws SQLException {<br \/>\nwrappedCallableStatement.setURL(parameterName, val);<br \/>\n}<\/p>\n<p>public void setNull(String parameterName, int sqlType) throws SQLException {<br \/>\nwrappedCallableStatement.setNull(parameterName, sqlType);<br \/>\n}<\/p>\n<p>public void setBoolean(String parameterName, boolean x) throws SQLException {<br \/>\nwrappedCallableStatement.setBoolean(parameterName, x);<br \/>\n}<\/p>\n<p>public void setByte(String parameterName, byte x) throws SQLException {<br \/>\nwrappedCallableStatement.setByte(parameterName, x);<br \/>\n}<\/p>\n<p>public void setShort(String parameterName, short x) throws SQLException {<br \/>\nwrappedCallableStatement.setShort(parameterName, x);<br \/>\n}<\/p>\n<p>public void setInt(String parameterName, int x) throws SQLException {<br \/>\nwrappedCallableStatement.setInt(parameterName, x);<br \/>\n}<\/p>\n<p>public void setLong(String parameterName, long x) throws SQLException {<br \/>\nwrappedCallableStatement.setLong(parameterName, x);<br \/>\n}<\/p>\n<p>public void setFloat(String parameterName, float x) throws SQLException {<br \/>\nwrappedCallableStatement.setFloat(parameterName, x);<br \/>\n}<\/p>\n<p>public void setDouble(String parameterName, double x) throws SQLException {<br \/>\nwrappedCallableStatement.setDouble(parameterName, x);<br \/>\n}<\/p>\n<p>public void setBigDecimal(String parameterName, BigDecimal x) throws SQLException {<br \/>\nwrappedCallableStatement.setBigDecimal(parameterName, x);<br \/>\n}<\/p>\n<p>public void setString(String parameterName, String x) throws SQLException {<br \/>\nwrappedCallableStatement.setString(parameterName, x);<br \/>\n}<\/p>\n<p>public void setBytes(String parameterName, byte[] x) throws SQLException {<br \/>\nwrappedCallableStatement.setBytes(parameterName, x);<br \/>\n}<\/p>\n<p>public void setDate(String parameterName, Date x) throws SQLException {<br \/>\nwrappedCallableStatement.setDate(parameterName, x);<br \/>\n}<\/p>\n<p>public void setTime(String parameterName, Time x) throws SQLException {<br \/>\nwrappedCallableStatement.setTime(parameterName, x);<br \/>\n}<\/p>\n<p>public void setTimestamp(String parameterName, Timestamp x) throws SQLException {<br \/>\nwrappedCallableStatement.setTimestamp(parameterName, x);<br \/>\n}<\/p>\n<p>public void setAsciiStream(String parameterName, InputStream x, int length) throws SQLException {<br \/>\nwrappedCallableStatement.setAsciiStream(parameterName, x, length);<br \/>\n}<\/p>\n<p>public void setBinaryStream(String parameterName, InputStream x, int length) throws SQLException {<br \/>\nwrappedCallableStatement.setBinaryStream(parameterName, x, length);<br \/>\n}<\/p>\n<p>public void setObject(String parameterName, Object x, int targetSqlType, int scale) throws SQLException {<br \/>\nwrappedCallableStatement.setObject(parameterName, x, targetSqlType, scale);<br \/>\n}<\/p>\n<p>public void setObject(String parameterName, Object x, int targetSqlType) throws SQLException {<br \/>\nwrappedCallableStatement.setObject(parameterName, x, targetSqlType);<br \/>\n}<\/p>\n<p>public void setObject(String parameterName, Object x) throws SQLException {<br \/>\nwrappedCallableStatement.setObject(parameterName, x);<br \/>\n}<\/p>\n<p>public void setCharacterStream(String parameterName, Reader reader, int length) throws SQLException {<br \/>\nwrappedCallableStatement.setCharacterStream(parameterName, reader, length);<br \/>\n}<\/p>\n<p>public void setDate(String parameterName, Date x, Calendar cal) throws SQLException {<br \/>\nwrappedCallableStatement.setDate(parameterName, x, cal);<br \/>\n}<\/p>\n<p>public void setTime(String parameterName, Time x, Calendar cal) throws SQLException {<br \/>\nwrappedCallableStatement.setTime(parameterName, x, cal);<br \/>\n}<\/p>\n<p>public void setTimestamp(String parameterName, Timestamp x, Calendar cal) throws SQLException {<br \/>\nwrappedCallableStatement.setTimestamp(parameterName, x, cal);<br \/>\n}<\/p>\n<p>public void setNull(String parameterName, int sqlType, String typeName) throws SQLException {<br \/>\nwrappedCallableStatement.setNull(parameterName, sqlType, typeName);<br \/>\n}<\/p>\n<p>public String getString(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getString(parameterName);<br \/>\n}<\/p>\n<p>public boolean getBoolean(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getBoolean(parameterName);<br \/>\n}<\/p>\n<p>public byte getByte(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getByte(parameterName);<br \/>\n}<\/p>\n<p>public short getShort(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getShort(parameterName);<br \/>\n}<\/p>\n<p>public int getInt(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getInt(parameterName);<br \/>\n}<\/p>\n<p>public long getLong(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getLong(parameterName);<br \/>\n}<\/p>\n<p>public float getFloat(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getFloat(parameterName);<br \/>\n}<\/p>\n<p>public double getDouble(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getDouble(parameterName);<br \/>\n}<\/p>\n<p>public byte[] getBytes(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getBytes(parameterName);<br \/>\n}<\/p>\n<p>public Date getDate(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getDate(parameterName);<br \/>\n}<\/p>\n<p>public Time getTime(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getTime(parameterName);<br \/>\n}<\/p>\n<p>public Timestamp getTimestamp(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getTimestamp(parameterName);<br \/>\n}<\/p>\n<p>public Object getObject(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getObject(parameterName);<br \/>\n}<\/p>\n<p>public BigDecimal getBigDecimal(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getBigDecimal(parameterName);<br \/>\n}<\/p>\n<p>public Object getObject(String parameterName, Map&lt;String, Class&gt; map) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getObject(parameterName, map);<br \/>\n}<\/p>\n<p>public Ref getRef(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getRef(parameterName);<br \/>\n}<\/p>\n<p>public Blob getBlob(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getBlob(parameterName);<br \/>\n}<\/p>\n<p>public Clob getClob(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getClob(parameterName);<br \/>\n}<\/p>\n<p>public Array getArray(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getArray(parameterName);<br \/>\n}<\/p>\n<p>public Date getDate(String parameterName, Calendar cal) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getDate(parameterName, cal);<br \/>\n}<\/p>\n<p>public Time getTime(String parameterName, Calendar cal) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getTime(parameterName, cal);<br \/>\n}<\/p>\n<p>public Timestamp getTimestamp(String parameterName, Calendar cal) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getTimestamp(parameterName, cal);<br \/>\n}<\/p>\n<p>public URL getURL(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getURL(parameterName);<br \/>\n}<\/p>\n<p>public RowId getRowId(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getRowId(parameterIndex);<br \/>\n}<\/p>\n<p>public RowId getRowId(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getRowId(parameterName);<br \/>\n}<\/p>\n<p>public void setRowId(String parameterName, RowId x) throws SQLException {<br \/>\nwrappedCallableStatement.setRowId(parameterName, x);<br \/>\n}<\/p>\n<p>public void setNString(String parameterName, String value) throws SQLException {<br \/>\nwrappedCallableStatement.setNString(parameterName, value);<br \/>\n}<\/p>\n<p>public void setNCharacterStream(String parameterName, Reader value, long length) throws SQLException {<br \/>\nwrappedCallableStatement.setNCharacterStream(parameterName, value, length);<br \/>\n}<\/p>\n<p>public void setNClob(String parameterName, NClob value) throws SQLException {<br \/>\nwrappedCallableStatement.setNClob(parameterName, value);<br \/>\n}<\/p>\n<p>public void setClob(String parameterName, Reader reader, long length) throws SQLException {<br \/>\nwrappedCallableStatement.setClob(parameterName, reader, length);<br \/>\n}<\/p>\n<p>public void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException {<br \/>\nwrappedCallableStatement.setBlob(parameterName, inputStream, length);<br \/>\n}<\/p>\n<p>public void setNClob(String parameterName, Reader reader, long length) throws SQLException {<br \/>\nwrappedCallableStatement.setNClob(parameterName, reader, length);<br \/>\n}<\/p>\n<p>public NClob getNClob(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getNClob(parameterIndex);<br \/>\n}<\/p>\n<p>public NClob getNClob(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getNClob(parameterName);<br \/>\n}<\/p>\n<p>public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException {<br \/>\nwrappedCallableStatement.setSQLXML(parameterName, xmlObject);<br \/>\n}<\/p>\n<p>public SQLXML getSQLXML(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getSQLXML(parameterIndex);<br \/>\n}<\/p>\n<p>public SQLXML getSQLXML(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getSQLXML(parameterName);<br \/>\n}<\/p>\n<p>public String getNString(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getNString(parameterIndex);<br \/>\n}<\/p>\n<p>public String getNString(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getNString(parameterName);<br \/>\n}<\/p>\n<p>public Reader getNCharacterStream(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getNCharacterStream(parameterIndex);<br \/>\n}<\/p>\n<p>public Reader getNCharacterStream(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getNCharacterStream(parameterName);<br \/>\n}<\/p>\n<p>public Reader getCharacterStream(int parameterIndex) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getCharacterStream(parameterIndex);<br \/>\n}<\/p>\n<p>public Reader getCharacterStream(String parameterName) throws SQLException {<br \/>\nreturn wrappedCallableStatement.getCharacterStream(parameterName);<br \/>\n}<\/p>\n<p>public void setBlob(String parameterName, Blob x) throws SQLException {<br \/>\nwrappedCallableStatement.setBlob(parameterName, x);<br \/>\n}<\/p>\n<p>public void setClob(String parameterName, Clob x) throws SQLException {<br \/>\nwrappedCallableStatement.setClob(parameterName, x);<br \/>\n}<\/p>\n<p>public void setAsciiStream(String parameterName, InputStream x, long length) throws SQLException {<br \/>\nwrappedCallableStatement.setAsciiStream(parameterName, x, length);<br \/>\n}<\/p>\n<p>public void setBinaryStream(String parameterName, InputStream x, long length) throws SQLException {<br \/>\nwrappedCallableStatement.setBinaryStream(parameterName, x, length);<br \/>\n}<\/p>\n<p>public void setCharacterStream(String parameterName, Reader reader, long length) throws SQLException {<br \/>\nwrappedCallableStatement.setCharacterStream(parameterName, reader, length);<br \/>\n}<\/p>\n<p>public void setAsciiStream(String parameterName, InputStream x) throws SQLException {<br \/>\nwrappedCallableStatement.setAsciiStream(parameterName, x);<br \/>\n}<\/p>\n<p>public void setBinaryStream(String parameterName, InputStream x) throws SQLException {<br \/>\nwrappedCallableStatement.setBinaryStream(parameterName, x);<br \/>\n}<\/p>\n<p>public void setCharacterStream(String parameterName, Reader reader) throws SQLException {<br \/>\nwrappedCallableStatement.setCharacterStream(parameterName, reader);<br \/>\n}<\/p>\n<p>public void setNCharacterStream(String parameterName, Reader value) throws SQLException {<br \/>\nwrappedCallableStatement.setNCharacterStream(parameterName, value);<br \/>\n}<\/p>\n<p>public void setClob(String parameterName, Reader reader) throws SQLException {<br \/>\nwrappedCallableStatement.setClob(parameterName, reader);<br \/>\n}<\/p>\n<p>public void setBlob(String parameterName, InputStream inputStream) throws SQLException {<br \/>\nwrappedCallableStatement.setBlob(parameterName, inputStream);<br \/>\n}<\/p>\n<p>public void setNClob(String parameterName, Reader reader) throws SQLException {<br \/>\nwrappedCallableStatement.setNClob(parameterName, reader);<br \/>\n}<\/p>\n<p>}<\/p>\n<p><strong>PreparedStatementWrapper.java<\/strong>:<br \/>\n<code><br \/>\npackage redfin.util.jdbc;<\/code><\/p>\n<p>import java.io.InputStream;<br \/>\nimport java.io.Reader;<br \/>\nimport java.math.BigDecimal;<br \/>\nimport java.net.URL;<br \/>\nimport java.sql.Array;<br \/>\nimport java.sql.Blob;<br \/>\nimport java.sql.Clob;<br \/>\nimport java.sql.Connection;<br \/>\nimport java.sql.Date;<br \/>\nimport java.sql.NClob;<br \/>\nimport java.sql.ParameterMetaData;<br \/>\nimport java.sql.PreparedStatement;<br \/>\nimport java.sql.Ref;<br \/>\nimport java.sql.ResultSet;<br \/>\nimport java.sql.ResultSetMetaData;<br \/>\nimport java.sql.RowId;<br \/>\nimport java.sql.SQLException;<br \/>\nimport java.sql.SQLWarning;<br \/>\nimport java.sql.SQLXML;<br \/>\nimport java.sql.Time;<br \/>\nimport java.sql.Timestamp;<br \/>\nimport java.util.Calendar;<\/p>\n<p>import redfin.util.stats.PerfStatsManager;<\/p>\n<p>\/**<br \/>\n* A wrapper for PreparedStatements generated by ConnectionWrapper. See comments in DriverWrapper.<br \/>\n*<br \/>\n*\/<br \/>\npublic class PreparedStatementWrapper implements PreparedStatement {<\/p>\n<p>private Connection parentConnection;<br \/>\nprivate PreparedStatement wrappedPreparedStatement;<\/p>\n<p>public PreparedStatementWrapper(Connection parentConnection, PreparedStatement wrappedPreparedStatement) {<br \/>\nthis.parentConnection = parentConnection;<br \/>\nthis.wrappedPreparedStatement = wrappedPreparedStatement;<\/p>\n<p>if (PerfStatsManager.perfStatsEnabled()) {<br \/>\nPerfStatsManager.getThreadLocalJDBCPerfStats().incrementNumStatements();<br \/>\n}<br \/>\n}<\/p>\n<p>\/\/ Semi-copied from http:\/\/www.java2s.com\/Open-Source\/Java-Document\/Database-JDBC-Connection-Pool\/mysql\/com\/mysql\/jdbc\/jdbc2\/optional\/JDBC4PreparedStatementWrapper.java.htm<br \/>\npublic T unwrap(Class iface) throws SQLException {<br \/>\ntry {<br \/>\nif (\u00a0\u00a0\u00a0\u00a0&#8220;java.sql.PreparedStatement&#8221;.equals(iface.getName())<br \/>\n|| &#8220;java.sql.Statement&#8221;.equals(iface.getName())<br \/>\n|| &#8220;java.sql.Wrapper.class&#8221;.equals(iface.getName())) {<br \/>\nreturn iface.cast(this);<br \/>\n}<\/p>\n<p>return wrappedPreparedStatement.unwrap(iface);<br \/>\n} catch (ClassCastException cce) {<br \/>\nthrow new SQLException(&#8220;Unable to unwrap to &#8221; + iface.toString(), cce);<br \/>\n}<br \/>\n}<\/p>\n<p>public boolean isWrapperFor(Class iface) throws SQLException {<br \/>\nif (\u00a0\u00a0\u00a0\u00a0&#8220;java.sql.PreparedStatement&#8221;.equals(iface.getName())<br \/>\n|| &#8220;java.sql.Statement&#8221;.equals(iface.getName())<br \/>\n|| &#8220;java.sql.Wrapper.class&#8221;.equals(iface.getName())) {<br \/>\nreturn true;<br \/>\n}<br \/>\nreturn wrappedPreparedStatement.isWrapperFor(iface);<br \/>\n}<\/p>\n<p>public ResultSet executeQuery(String sql) throws SQLException {<br \/>\nreturn new ResultSetWrapper(this, wrappedPreparedStatement.executeQuery(sql));<br \/>\n}<\/p>\n<p>public int executeUpdate(String sql) throws SQLException {<br \/>\nreturn wrappedPreparedStatement.executeUpdate(sql);<br \/>\n}<\/p>\n<p>public void close() throws SQLException {<br \/>\nwrappedPreparedStatement.close();<br \/>\n}<\/p>\n<p>public int getMaxFieldSize() throws SQLException {<br \/>\nreturn wrappedPreparedStatement.getMaxFieldSize();<br \/>\n}<\/p>\n<p>public void setMaxFieldSize(int max) throws SQLException {<br \/>\nwrappedPreparedStatement.setMaxFieldSize(max);<br \/>\n}<\/p>\n<p>public int getMaxRows() throws SQLException {<br \/>\nreturn wrappedPreparedStatement.getMaxRows();<br \/>\n}<\/p>\n<p>public void setMaxRows(int max) throws SQLException {<br \/>\nwrappedPreparedStatement.setMaxRows(max);<br \/>\n}<\/p>\n<p>public void setEscapeProcessing(boolean enable) throws SQLException {<br \/>\nwrappedPreparedStatement.setEscapeProcessing(enable);<br \/>\n}<\/p>\n<p>public int getQueryTimeout() throws SQLException {<br \/>\nreturn wrappedPreparedStatement.getQueryTimeout();<br \/>\n}<\/p>\n<p>public void setQueryTimeout(int seconds) throws SQLException {<br \/>\nwrappedPreparedStatement.setQueryTimeout(seconds);<br \/>\n}<\/p>\n<p>public void cancel() throws SQLException {<br \/>\nwrappedPreparedStatement.cancel();<br \/>\n}<\/p>\n<p>public SQLWarning getWarnings() throws SQLException {<br \/>\nreturn wrappedPreparedStatement.getWarnings();<br \/>\n}<\/p>\n<p>public void clearWarnings() throws SQLException {<br \/>\nwrappedPreparedStatement.clearWarnings();<br \/>\n}<\/p>\n<p>public void setCursorName(String name) throws SQLException {<br \/>\nwrappedPreparedStatement.setCursorName(name);<br \/>\n}<\/p>\n<p>public boolean execute(String sql) throws SQLException {<br \/>\nreturn wrappedPreparedStatement.execute(sql);<br \/>\n}<\/p>\n<p>public ResultSet getResultSet() throws SQLException {<br \/>\nreturn new ResultSetWrapper(this, wrappedPreparedStatement.getResultSet());<br \/>\n}<\/p>\n<p>public int getUpdateCount() throws SQLException {<br \/>\nreturn wrappedPreparedStatement.getUpdateCount();<br \/>\n}<\/p>\n<p>public boolean getMoreResults() throws SQLException {<br \/>\nreturn wrappedPreparedStatement.getMoreResults();<br \/>\n}<\/p>\n<p>public void setFetchDirection(int direction) throws SQLException {<br \/>\nwrappedPreparedStatement.setFetchDirection(direction);<br \/>\n}<\/p>\n<p>public int getFetchDirection() throws SQLException {<br \/>\nreturn wrappedPreparedStatement.getFetchDirection();<br \/>\n}<\/p>\n<p>public void setFetchSize(int rows) throws SQLException {<br \/>\nwrappedPreparedStatement.setFetchSize(rows);<br \/>\n}<\/p>\n<p>public int getFetchSize() throws SQLException {<br \/>\nreturn wrappedPreparedStatement.getFetchSize();<br \/>\n}<\/p>\n<p>public int getResultSetConcurrency() throws SQLException {<br \/>\nreturn wrappedPreparedStatement.getResultSetConcurrency();<br \/>\n}<\/p>\n<p>public int getResultSetType() throws SQLException {<br \/>\nreturn wrappedPreparedStatement.getResultSetType();<br \/>\n}<\/p>\n<p>public void addBatch(String sql) throws SQLException {<br \/>\nwrappedPreparedStatement.addBatch(sql);<br \/>\n}<\/p>\n<p>public void clearBatch() throws SQLException {<br \/>\nwrappedPreparedStatement.clearBatch();<br \/>\n}<\/p>\n<p>public int[] executeBatch() throws SQLException {<br \/>\nreturn wrappedPreparedStatement.executeBatch();<br \/>\n}<\/p>\n<p>public Connection getConnection() throws SQLException {<br \/>\nreturn parentConnection;<br \/>\n}<\/p>\n<p>public boolean getMoreResults(int current) throws SQLException {<br \/>\nreturn wrappedPreparedStatement.getMoreResults(current);<br \/>\n}<\/p>\n<p>public ResultSet getGeneratedKeys() throws SQLException {<br \/>\nreturn new ResultSetWrapper(this, wrappedPreparedStatement.getGeneratedKeys());<br \/>\n}<\/p>\n<p>public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException {<br \/>\nreturn wrappedPreparedStatement.executeUpdate(sql, autoGeneratedKeys);<br \/>\n}<\/p>\n<p>public int executeUpdate(String sql, int[] columnIndexes) throws SQLException {<br \/>\nreturn wrappedPreparedStatement.executeUpdate(sql, columnIndexes);<br \/>\n}<\/p>\n<p>public int executeUpdate(String sql, String[] columnNames) throws SQLException {<br \/>\nreturn wrappedPreparedStatement.executeUpdate(sql, columnNames);<br \/>\n}<\/p>\n<p>public boolean execute(String sql, int autoGeneratedKeys) throws SQLException {<br \/>\nreturn wrappedPreparedStatement.execute(sql, autoGeneratedKeys);<br \/>\n}<\/p>\n<p>public boolean execute(String sql, int[] columnIndexes) throws SQLException {<br \/>\nreturn wrappedPreparedStatement.execute(sql, columnIndexes);<br \/>\n}<\/p>\n<p>public boolean execute(String sql, String[] columnNames) throws SQLException {<br \/>\nreturn wrappedPreparedStatement.execute(sql, columnNames);<br \/>\n}<\/p>\n<p>public int getResultSetHoldability() throws SQLException {<br \/>\nreturn wrappedPreparedStatement.getResultSetHoldability();<br \/>\n}<\/p>\n<p>public boolean isClosed() throws SQLException {<br \/>\nreturn wrappedPreparedStatement.isClosed();<br \/>\n}<\/p>\n<p>public void setPoolable(boolean poolable) throws SQLException {<br \/>\nwrappedPreparedStatement.setPoolable(poolable);<br \/>\n}<\/p>\n<p>public boolean isPoolable() throws SQLException {<br \/>\nreturn wrappedPreparedStatement.isPoolable();<br \/>\n}<\/p>\n<p>public ResultSet executeQuery() throws SQLException {<br \/>\nreturn new ResultSetWrapper(this, wrappedPreparedStatement.executeQuery());<br \/>\n}<\/p>\n<p>public int executeUpdate() throws SQLException {<br \/>\nreturn wrappedPreparedStatement.executeUpdate();<br \/>\n}<\/p>\n<p>public void setNull(int parameterIndex, int sqlType) throws SQLException {<br \/>\nwrappedPreparedStatement.setNull(parameterIndex, sqlType);<br \/>\n}<\/p>\n<p>public void setBoolean(int parameterIndex, boolean x) throws SQLException {<br \/>\nwrappedPreparedStatement.setBoolean(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setByte(int parameterIndex, byte x) throws SQLException {<br \/>\nwrappedPreparedStatement.setByte(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setShort(int parameterIndex, short x) throws SQLException {<br \/>\nwrappedPreparedStatement.setShort(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setInt(int parameterIndex, int x) throws SQLException {<br \/>\nwrappedPreparedStatement.setInt(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setLong(int parameterIndex, long x) throws SQLException {<br \/>\nwrappedPreparedStatement.setLong(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setFloat(int parameterIndex, float x) throws SQLException {<br \/>\nwrappedPreparedStatement.setFloat(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setDouble(int parameterIndex, double x) throws SQLException {<br \/>\nwrappedPreparedStatement.setDouble(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException {<br \/>\nwrappedPreparedStatement.setBigDecimal(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setString(int parameterIndex, String x) throws SQLException {<br \/>\nwrappedPreparedStatement.setString(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setBytes(int parameterIndex, byte[] x) throws SQLException {<br \/>\nwrappedPreparedStatement.setBytes(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setDate(int parameterIndex, Date x) throws SQLException {<br \/>\nwrappedPreparedStatement.setDate(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setTime(int parameterIndex, Time x) throws SQLException {<br \/>\nwrappedPreparedStatement.setTime(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException {<br \/>\nwrappedPreparedStatement.setTimestamp(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException {<br \/>\nwrappedPreparedStatement.setAsciiStream(parameterIndex, x, length);<br \/>\n}<\/p>\n<p>@SuppressWarnings(&#8220;deprecation&#8221;)<br \/>\npublic void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException {<br \/>\nwrappedPreparedStatement.setUnicodeStream(parameterIndex, x, length);<br \/>\n}<\/p>\n<p>public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException {<br \/>\nwrappedPreparedStatement.setBinaryStream(parameterIndex, x, length);<br \/>\n}<\/p>\n<p>public void clearParameters() throws SQLException {<br \/>\nwrappedPreparedStatement.clearParameters();<br \/>\n}<\/p>\n<p>public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException {<br \/>\nwrappedPreparedStatement.setObject(parameterIndex, x, targetSqlType);<br \/>\n}<\/p>\n<p>public void setObject(int parameterIndex, Object x) throws SQLException {<br \/>\nwrappedPreparedStatement.setObject(parameterIndex, x);<br \/>\n}<\/p>\n<p>public boolean execute() throws SQLException {<br \/>\nreturn wrappedPreparedStatement.execute();<br \/>\n}<\/p>\n<p>public void addBatch() throws SQLException {<br \/>\nwrappedPreparedStatement.addBatch();<br \/>\n}<\/p>\n<p>public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException {<br \/>\nwrappedPreparedStatement.setCharacterStream(parameterIndex, reader, length);<br \/>\n}<\/p>\n<p>public void setRef(int parameterIndex, Ref x) throws SQLException {<br \/>\nwrappedPreparedStatement.setRef(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setBlob(int parameterIndex, Blob x) throws SQLException {<br \/>\nwrappedPreparedStatement.setBlob(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setClob(int parameterIndex, Clob x) throws SQLException {<br \/>\nwrappedPreparedStatement.setClob(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setArray(int parameterIndex, Array x) throws SQLException {<br \/>\nwrappedPreparedStatement.setArray(parameterIndex, x);<br \/>\n}<\/p>\n<p>public ResultSetMetaData getMetaData() throws SQLException {<br \/>\nreturn wrappedPreparedStatement.getMetaData();<br \/>\n}<\/p>\n<p>public void setDate(int parameterIndex, Date x, Calendar cal) throws SQLException {<br \/>\nwrappedPreparedStatement.setDate(parameterIndex, x, cal);<br \/>\n}<\/p>\n<p>public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException {<br \/>\nwrappedPreparedStatement.setTime(parameterIndex, x, cal);<br \/>\n}<\/p>\n<p>public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws SQLException {<br \/>\nwrappedPreparedStatement.setTimestamp(parameterIndex, x, cal);<br \/>\n}<\/p>\n<p>public void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException {<br \/>\nwrappedPreparedStatement.setNull(parameterIndex, sqlType, typeName);<br \/>\n}<\/p>\n<p>public void setURL(int parameterIndex, URL x) throws SQLException {<br \/>\nwrappedPreparedStatement.setURL(parameterIndex, x);<br \/>\n}<\/p>\n<p>public ParameterMetaData getParameterMetaData() throws SQLException {<br \/>\nreturn wrappedPreparedStatement.getParameterMetaData();<br \/>\n}<\/p>\n<p>public void setRowId(int parameterIndex, RowId x) throws SQLException {<br \/>\nwrappedPreparedStatement.setRowId(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setNString(int parameterIndex, String value) throws SQLException {<br \/>\nwrappedPreparedStatement.setNString(parameterIndex, value);<br \/>\n}<\/p>\n<p>public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {<br \/>\nwrappedPreparedStatement.setNCharacterStream(parameterIndex, value, length);<br \/>\n}<\/p>\n<p>public void setNClob(int parameterIndex, NClob value) throws SQLException {<br \/>\nwrappedPreparedStatement.setNClob(parameterIndex, value);<br \/>\n}<\/p>\n<p>public void setClob(int parameterIndex, Reader reader, long length) throws SQLException {<br \/>\nwrappedPreparedStatement.setClob(parameterIndex, reader, length);<br \/>\n}<\/p>\n<p>public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException {<br \/>\nwrappedPreparedStatement.setBlob(parameterIndex, inputStream, length);<br \/>\n}<\/p>\n<p>public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException {<br \/>\nwrappedPreparedStatement.setNClob(parameterIndex, reader, length);<br \/>\n}<\/p>\n<p>public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {<br \/>\nwrappedPreparedStatement.setSQLXML(parameterIndex, xmlObject);<br \/>\n}<\/p>\n<p>public void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws SQLException {<br \/>\nwrappedPreparedStatement.setObject(parameterIndex, x, targetSqlType, scaleOrLength);<br \/>\n}<\/p>\n<p>public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException {<br \/>\nwrappedPreparedStatement.setAsciiStream(parameterIndex, x, length);<br \/>\n}<\/p>\n<p>public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException {<br \/>\nwrappedPreparedStatement.setBinaryStream(parameterIndex, x, length);<br \/>\n}<\/p>\n<p>public void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException {<br \/>\nwrappedPreparedStatement.setCharacterStream(parameterIndex, reader, length);<br \/>\n}<\/p>\n<p>public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException {<br \/>\nwrappedPreparedStatement.setAsciiStream(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException {<br \/>\nwrappedPreparedStatement.setBinaryStream(parameterIndex, x);<br \/>\n}<\/p>\n<p>public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException {<br \/>\nwrappedPreparedStatement.setCharacterStream(parameterIndex, reader);<br \/>\n}<\/p>\n<p>public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {<br \/>\nwrappedPreparedStatement.setNCharacterStream(parameterIndex, value);<br \/>\n}<\/p>\n<p>public void setClob(int parameterIndex, Reader reader) throws SQLException {<br \/>\nwrappedPreparedStatement.setClob(parameterIndex, reader);<br \/>\n}<\/p>\n<p>public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException {<br \/>\nwrappedPreparedStatement.setBlob(parameterIndex, inputStream);<br \/>\n}<\/p>\n<p>public void setNClob(int parameterIndex, Reader reader) throws SQLException {<br \/>\nwrappedPreparedStatement.setNClob(parameterIndex, reader);<br \/>\n}<br \/>\n}<\/p>\n<p><strong>ResultSetWrapper.java<\/strong>:<br \/>\n<code><br \/>\npackage redfin.util.jdbc;<\/code><\/p>\n<p>import java.io.InputStream;<br \/>\nimport java.io.Reader;<br \/>\nimport java.math.BigDecimal;<br \/>\nimport java.net.URL;<br \/>\nimport java.sql.Array;<br \/>\nimport java.sql.Blob;<br \/>\nimport java.sql.Clob;<br \/>\nimport java.sql.Date;<br \/>\nimport java.sql.NClob;<br \/>\nimport java.sql.Ref;<br \/>\nimport java.sql.ResultSet;<br \/>\nimport java.sql.ResultSetMetaData;<br \/>\nimport java.sql.RowId;<br \/>\nimport java.sql.SQLException;<br \/>\nimport java.sql.SQLWarning;<br \/>\nimport java.sql.SQLXML;<br \/>\nimport java.sql.Statement;<br \/>\nimport java.sql.Time;<br \/>\nimport java.sql.Timestamp;<br \/>\nimport java.util.Calendar;<br \/>\nimport java.util.Map;<\/p>\n<p>\/**<br \/>\n* A wrapper for ResultSets generated by ConnectionWrapper. See comments in DriverWrapper.<br \/>\n*<br \/>\n*\/<br \/>\npublic class ResultSetWrapper implements ResultSet {<\/p>\n<p>private Statement parentStatement;<br \/>\nprivate ResultSet wrappedResultSet;<\/p>\n<p>public ResultSetWrapper(Statement parentStatement, ResultSet wrappedResultSet) {<br \/>\nthis.parentStatement = parentStatement;<br \/>\nthis.wrappedResultSet = wrappedResultSet;<br \/>\n}<\/p>\n<p>\/\/ Semi-copied from http:\/\/www.java2s.com\/Open-Source\/Java-Document\/Database-JDBC-Connection-Pool\/mysql\/com\/mysql\/jdbc\/jdbc2\/optional\/JDBC4PreparedStatementWrapper.java.htm<br \/>\npublic T unwrap(Class iface) throws SQLException {<br \/>\ntry {<br \/>\nif (\u00a0\u00a0\u00a0\u00a0&#8220;java.sql.ResultSet&#8221;.equals(iface.getName())<br \/>\n|| &#8220;java.sql.Wrapper.class&#8221;.equals(iface.getName())) {<br \/>\nreturn iface.cast(this);<br \/>\n}<\/p>\n<p>return wrappedResultSet.unwrap(iface);<br \/>\n} catch (ClassCastException cce) {<br \/>\nthrow new SQLException(&#8220;Unable to unwrap to &#8221; + iface.toString(), cce);<br \/>\n}<br \/>\n}<\/p>\n<p>public boolean isWrapperFor(Class iface) throws SQLException {<br \/>\nif (\u00a0\u00a0\u00a0\u00a0&#8220;java.sql.ResultSet&#8221;.equals(iface.getName())<br \/>\n|| &#8220;java.sql.Wrapper.class&#8221;.equals(iface.getName())) {<br \/>\nreturn true;<br \/>\n}<br \/>\nreturn wrappedResultSet.isWrapperFor(iface);<br \/>\n}<\/p>\n<p>public boolean next() throws SQLException {<br \/>\nreturn wrappedResultSet.next();<br \/>\n}<\/p>\n<p>public void close() throws SQLException {<br \/>\nwrappedResultSet.close();<\/p>\n<p>}<\/p>\n<p>public boolean wasNull() throws SQLException {<br \/>\nreturn wrappedResultSet.wasNull();<br \/>\n}<\/p>\n<p>public String getString(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getString(columnIndex);<br \/>\n}<\/p>\n<p>public boolean getBoolean(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getBoolean(columnIndex);<br \/>\n}<\/p>\n<p>public byte getByte(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getByte(columnIndex);<br \/>\n}<\/p>\n<p>public short getShort(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getShort(columnIndex);<br \/>\n}<\/p>\n<p>public int getInt(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getInt(columnIndex);<br \/>\n}<\/p>\n<p>public long getLong(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getLong(columnIndex);<br \/>\n}<\/p>\n<p>public float getFloat(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getFloat(columnIndex);<br \/>\n}<\/p>\n<p>public double getDouble(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getDouble(columnIndex);<br \/>\n}<\/p>\n<p>@SuppressWarnings(&#8220;deprecation&#8221;)<br \/>\npublic BigDecimal getBigDecimal(int columnIndex, int scale)<br \/>\nthrows SQLException {<br \/>\nreturn wrappedResultSet.getBigDecimal(columnIndex, scale);<br \/>\n}<\/p>\n<p>public byte[] getBytes(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getBytes(columnIndex);<br \/>\n}<\/p>\n<p>public Date getDate(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getDate(columnIndex);<br \/>\n}<\/p>\n<p>public Time getTime(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getTime(columnIndex);<br \/>\n}<\/p>\n<p>public Timestamp getTimestamp(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getTimestamp(columnIndex);<br \/>\n}<\/p>\n<p>public InputStream getAsciiStream(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getAsciiStream(columnIndex);<br \/>\n}<\/p>\n<p>@SuppressWarnings(&#8220;deprecation&#8221;)<br \/>\npublic InputStream getUnicodeStream(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getUnicodeStream(columnIndex);<br \/>\n}<\/p>\n<p>public InputStream getBinaryStream(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getBinaryStream(columnIndex);<br \/>\n}<\/p>\n<p>public String getString(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getString(columnLabel);<br \/>\n}<\/p>\n<p>public boolean getBoolean(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getBoolean(columnLabel);<br \/>\n}<\/p>\n<p>public byte getByte(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getByte(columnLabel);<br \/>\n}<\/p>\n<p>public short getShort(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getShort(columnLabel);<br \/>\n}<\/p>\n<p>public int getInt(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getInt(columnLabel);<br \/>\n}<\/p>\n<p>public long getLong(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getLong(columnLabel);<br \/>\n}<\/p>\n<p>public float getFloat(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getFloat(columnLabel);<br \/>\n}<\/p>\n<p>public double getDouble(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getDouble(columnLabel);<br \/>\n}<\/p>\n<p>@SuppressWarnings(&#8220;deprecation&#8221;)<br \/>\npublic BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException {<br \/>\nreturn wrappedResultSet.getBigDecimal(columnLabel, scale);<br \/>\n}<\/p>\n<p>public byte[] getBytes(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getBytes(columnLabel);<br \/>\n}<\/p>\n<p>public Date getDate(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getDate(columnLabel);<br \/>\n}<\/p>\n<p>public Time getTime(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getTime(columnLabel);<br \/>\n}<\/p>\n<p>public Timestamp getTimestamp(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getTimestamp(columnLabel);<br \/>\n}<\/p>\n<p>public InputStream getAsciiStream(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getAsciiStream(columnLabel);<br \/>\n}<\/p>\n<p>@SuppressWarnings(&#8220;deprecation&#8221;)<br \/>\npublic InputStream getUnicodeStream(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getUnicodeStream(columnLabel);<br \/>\n}<\/p>\n<p>public InputStream getBinaryStream(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getBinaryStream(columnLabel);<br \/>\n}<\/p>\n<p>public SQLWarning getWarnings() throws SQLException {<br \/>\nreturn wrappedResultSet.getWarnings();<br \/>\n}<\/p>\n<p>public void clearWarnings() throws SQLException {<br \/>\nwrappedResultSet.clearWarnings();<br \/>\n}<\/p>\n<p>public String getCursorName() throws SQLException {<br \/>\nreturn wrappedResultSet.getCursorName();<br \/>\n}<\/p>\n<p>public ResultSetMetaData getMetaData() throws SQLException {<br \/>\nreturn wrappedResultSet.getMetaData();<br \/>\n}<\/p>\n<p>public Object getObject(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getObject(columnIndex);<br \/>\n}<\/p>\n<p>public Object getObject(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getObject(columnLabel);<br \/>\n}<\/p>\n<p>public int findColumn(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.findColumn(columnLabel);<br \/>\n}<\/p>\n<p>public Reader getCharacterStream(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getCharacterStream(columnIndex);<br \/>\n}<\/p>\n<p>public Reader getCharacterStream(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getCharacterStream(columnLabel);<br \/>\n}<\/p>\n<p>public BigDecimal getBigDecimal(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getBigDecimal(columnIndex);<br \/>\n}<\/p>\n<p>public BigDecimal getBigDecimal(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getBigDecimal(columnLabel);<br \/>\n}<\/p>\n<p>public boolean isBeforeFirst() throws SQLException {<br \/>\nreturn wrappedResultSet.isBeforeFirst();<br \/>\n}<\/p>\n<p>public boolean isAfterLast() throws SQLException {<br \/>\nreturn wrappedResultSet.isAfterLast();<br \/>\n}<\/p>\n<p>public boolean isFirst() throws SQLException {<br \/>\nreturn wrappedResultSet.isFirst();<br \/>\n}<\/p>\n<p>public boolean isLast() throws SQLException {<br \/>\nreturn wrappedResultSet.isLast();<br \/>\n}<\/p>\n<p>public void beforeFirst() throws SQLException {<br \/>\nwrappedResultSet.beforeFirst();<br \/>\n}<\/p>\n<p>public void afterLast() throws SQLException {<br \/>\nwrappedResultSet.afterLast();<br \/>\n}<\/p>\n<p>public boolean first() throws SQLException {<br \/>\nreturn wrappedResultSet.first();<br \/>\n}<\/p>\n<p>public boolean last() throws SQLException {<br \/>\nreturn wrappedResultSet.last();<br \/>\n}<\/p>\n<p>public int getRow() throws SQLException {<br \/>\nreturn wrappedResultSet.getRow();<br \/>\n}<\/p>\n<p>public boolean absolute(int row) throws SQLException {<br \/>\nreturn wrappedResultSet.absolute(row);<br \/>\n}<\/p>\n<p>public boolean relative(int rows) throws SQLException {<br \/>\nreturn wrappedResultSet.relative(rows);<br \/>\n}<\/p>\n<p>public boolean previous() throws SQLException {<br \/>\nreturn wrappedResultSet.previous();<br \/>\n}<\/p>\n<p>public void setFetchDirection(int direction) throws SQLException {<br \/>\nwrappedResultSet.setFetchDirection(direction);<br \/>\n}<\/p>\n<p>public int getFetchDirection() throws SQLException {<br \/>\nreturn wrappedResultSet.getFetchDirection();<br \/>\n}<\/p>\n<p>public void setFetchSize(int rows) throws SQLException {<br \/>\nwrappedResultSet.setFetchSize(rows);<br \/>\n}<\/p>\n<p>public int getFetchSize() throws SQLException {<br \/>\nreturn wrappedResultSet.getFetchSize();<br \/>\n}<\/p>\n<p>public int getType() throws SQLException {<br \/>\nreturn wrappedResultSet.getType();<br \/>\n}<\/p>\n<p>public int getConcurrency() throws SQLException {<br \/>\nreturn wrappedResultSet.getConcurrency();<br \/>\n}<\/p>\n<p>public boolean rowUpdated() throws SQLException {<br \/>\nreturn wrappedResultSet.rowUpdated();<br \/>\n}<\/p>\n<p>public boolean rowInserted() throws SQLException {<br \/>\nreturn wrappedResultSet.rowInserted();<br \/>\n}<\/p>\n<p>public boolean rowDeleted() throws SQLException {<br \/>\nreturn wrappedResultSet.rowDeleted();<br \/>\n}<\/p>\n<p>public void updateNull(int columnIndex) throws SQLException {<br \/>\nwrappedResultSet.updateNull(columnIndex);<br \/>\n}<\/p>\n<p>public void updateBoolean(int columnIndex, boolean x) throws SQLException {<br \/>\nwrappedResultSet.updateBoolean(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateByte(int columnIndex, byte x) throws SQLException {<br \/>\nwrappedResultSet.updateByte(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateShort(int columnIndex, short x) throws SQLException {<br \/>\nwrappedResultSet.updateShort(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateInt(int columnIndex, int x) throws SQLException {<br \/>\nwrappedResultSet.updateInt(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateLong(int columnIndex, long x) throws SQLException {<br \/>\nwrappedResultSet.updateLong(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateFloat(int columnIndex, float x) throws SQLException {<br \/>\nwrappedResultSet.updateFloat(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateDouble(int columnIndex, double x) throws SQLException {<br \/>\nwrappedResultSet.updateDouble(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException {<br \/>\nwrappedResultSet.updateBigDecimal(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateString(int columnIndex, String x) throws SQLException {<br \/>\nwrappedResultSet.updateString(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateBytes(int columnIndex, byte[] x) throws SQLException {<br \/>\nwrappedResultSet.updateBytes(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateDate(int columnIndex, Date x) throws SQLException {<br \/>\nwrappedResultSet.updateDate(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateTime(int columnIndex, Time x) throws SQLException {<br \/>\nwrappedResultSet.updateTime(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException {<br \/>\nwrappedResultSet.updateTimestamp(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException {<br \/>\nwrappedResultSet.updateAsciiStream(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException {<br \/>\nwrappedResultSet.updateBinaryStream(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException {<br \/>\nwrappedResultSet.updateCharacterStream(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateObject(int columnIndex, Object x, int scaleOrLength) throws SQLException {<br \/>\nwrappedResultSet.updateObject(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateObject(int columnIndex, Object x) throws SQLException {<br \/>\nwrappedResultSet.updateObject(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateNull(String columnLabel) throws SQLException {<br \/>\nwrappedResultSet.updateNull(columnLabel);<br \/>\n}<\/p>\n<p>public void updateBoolean(String columnLabel, boolean x) throws SQLException {<br \/>\nwrappedResultSet.updateBoolean(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateByte(String columnLabel, byte x) throws SQLException {<br \/>\nwrappedResultSet.updateByte(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateShort(String columnLabel, short x) throws SQLException {<br \/>\nwrappedResultSet.updateShort(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateInt(String columnLabel, int x) throws SQLException {<br \/>\nwrappedResultSet.updateInt(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateLong(String columnLabel, long x) throws SQLException {<br \/>\nwrappedResultSet.updateLong(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateFloat(String columnLabel, float x) throws SQLException {<br \/>\nwrappedResultSet.updateFloat(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateDouble(String columnLabel, double x) throws SQLException {<br \/>\nwrappedResultSet.updateDouble(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateBigDecimal(String columnLabel, BigDecimal x) throws SQLException {<br \/>\nwrappedResultSet.updateBigDecimal(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateString(String columnLabel, String x) throws SQLException {<br \/>\nwrappedResultSet.updateString(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateBytes(String columnLabel, byte[] x) throws SQLException {<br \/>\nwrappedResultSet.updateBytes(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateDate(String columnLabel, Date x) throws SQLException {<br \/>\nwrappedResultSet.updateDate(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateTime(String columnLabel, Time x) throws SQLException {<br \/>\nwrappedResultSet.updateTime(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateTimestamp(String columnLabel, Timestamp x) throws SQLException {<br \/>\nwrappedResultSet.updateTimestamp(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateAsciiStream(String columnLabel, InputStream x, int length) throws SQLException {<br \/>\nwrappedResultSet.updateAsciiStream(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateBinaryStream(String columnLabel, InputStream x, int length) throws SQLException {<br \/>\nwrappedResultSet.updateBinaryStream(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateCharacterStream(String columnLabel, Reader reader,<br \/>\nint length) throws SQLException {<br \/>\nwrappedResultSet.updateCharacterStream(columnLabel, reader, length);<br \/>\n}<\/p>\n<p>public void updateObject(String columnLabel, Object x, int scaleOrLength) throws SQLException {<br \/>\nwrappedResultSet.updateObject(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateObject(String columnLabel, Object x) throws SQLException {<br \/>\nwrappedResultSet.updateObject(columnLabel, x);<br \/>\n}<\/p>\n<p>public void insertRow() throws SQLException {<br \/>\nwrappedResultSet.insertRow();<br \/>\n}<\/p>\n<p>public void updateRow() throws SQLException {<br \/>\nwrappedResultSet.updateRow();<br \/>\n}<\/p>\n<p>public void deleteRow() throws SQLException {<br \/>\nwrappedResultSet.deleteRow();<br \/>\n}<\/p>\n<p>public void refreshRow() throws SQLException {<br \/>\nwrappedResultSet.refreshRow();<br \/>\n}<\/p>\n<p>public void cancelRowUpdates() throws SQLException {<br \/>\nwrappedResultSet.cancelRowUpdates();<br \/>\n}<\/p>\n<p>public void moveToInsertRow() throws SQLException {<br \/>\nwrappedResultSet.moveToInsertRow();<br \/>\n}<\/p>\n<p>public void moveToCurrentRow() throws SQLException {<br \/>\nwrappedResultSet.moveToCurrentRow();<br \/>\n}<\/p>\n<p>public Statement getStatement() throws SQLException {<br \/>\nreturn parentStatement;<br \/>\n}<\/p>\n<p>public Object getObject(int columnIndex, Map&lt;String, Class&gt; map) throws SQLException {<br \/>\nreturn wrappedResultSet.getObject(columnIndex, map);<br \/>\n}<\/p>\n<p>public Ref getRef(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getRef(columnIndex);<br \/>\n}<\/p>\n<p>public Blob getBlob(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getBlob(columnIndex);<br \/>\n}<\/p>\n<p>public Clob getClob(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getClob(columnIndex);<br \/>\n}<\/p>\n<p>public Array getArray(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getArray(columnIndex);<br \/>\n}<\/p>\n<p>public Object getObject(String columnLabel, Map&lt;String, Class&gt; map)<br \/>\nthrows SQLException {<br \/>\nreturn wrappedResultSet.getObject(columnLabel, map);<br \/>\n}<\/p>\n<p>public Ref getRef(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getRef(columnLabel);<br \/>\n}<\/p>\n<p>public Blob getBlob(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getBlob(columnLabel);<br \/>\n}<\/p>\n<p>public Clob getClob(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getClob(columnLabel);<br \/>\n}<\/p>\n<p>public Array getArray(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getArray(columnLabel);<br \/>\n}<\/p>\n<p>public Date getDate(int columnIndex, Calendar cal) throws SQLException {<br \/>\nreturn wrappedResultSet.getDate(columnIndex, cal);<br \/>\n}<\/p>\n<p>public Date getDate(String columnLabel, Calendar cal) throws SQLException {<br \/>\nreturn wrappedResultSet.getDate(columnLabel, cal);<br \/>\n}<\/p>\n<p>public Time getTime(int columnIndex, Calendar cal) throws SQLException {<br \/>\nreturn wrappedResultSet.getTime(columnIndex, cal);<br \/>\n}<\/p>\n<p>public Time getTime(String columnLabel, Calendar cal) throws SQLException {<br \/>\nreturn wrappedResultSet.getTime(columnLabel, cal);<br \/>\n}<\/p>\n<p>public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException {<br \/>\nreturn wrappedResultSet.getTimestamp(columnIndex, cal);<br \/>\n}<\/p>\n<p>public Timestamp getTimestamp(String columnLabel, Calendar cal) throws SQLException {<br \/>\nreturn wrappedResultSet.getTimestamp(columnLabel, cal);<br \/>\n}<\/p>\n<p>public URL getURL(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getURL(columnIndex);<br \/>\n}<\/p>\n<p>public URL getURL(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getURL(columnLabel);<br \/>\n}<\/p>\n<p>public void updateRef(int columnIndex, Ref x) throws SQLException {<br \/>\nwrappedResultSet.updateRef(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateRef(String columnLabel, Ref x) throws SQLException {<br \/>\nwrappedResultSet.updateRef(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateBlob(int columnIndex, Blob x) throws SQLException {<br \/>\nwrappedResultSet.updateBlob(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateBlob(String columnLabel, Blob x) throws SQLException {<br \/>\nwrappedResultSet.updateBlob(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateClob(int columnIndex, Clob x) throws SQLException {<br \/>\nwrappedResultSet.updateClob(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateClob(String columnLabel, Clob x) throws SQLException {<br \/>\nwrappedResultSet.updateClob(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateArray(int columnIndex, Array x) throws SQLException {<br \/>\nwrappedResultSet.updateArray(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateArray(String columnLabel, Array x) throws SQLException {<br \/>\nwrappedResultSet.updateArray(columnLabel, x);<br \/>\n}<\/p>\n<p>public RowId getRowId(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getRowId(columnIndex);<br \/>\n}<\/p>\n<p>public RowId getRowId(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getRowId(columnLabel);<br \/>\n}<\/p>\n<p>public void updateRowId(int columnIndex, RowId x) throws SQLException {<br \/>\nwrappedResultSet.updateRowId(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateRowId(String columnLabel, RowId x) throws SQLException {<br \/>\nwrappedResultSet.updateRowId(columnLabel, x);<br \/>\n}<\/p>\n<p>public int getHoldability() throws SQLException {<br \/>\nreturn wrappedResultSet.getHoldability();<br \/>\n}<\/p>\n<p>public boolean isClosed() throws SQLException {<br \/>\nreturn wrappedResultSet.isClosed();<br \/>\n}<\/p>\n<p>public void updateNString(int columnIndex, String nString) throws SQLException {<br \/>\nwrappedResultSet.updateNString(columnIndex, nString);<br \/>\n}<\/p>\n<p>public void updateNString(String columnLabel, String nString) throws SQLException {<br \/>\nwrappedResultSet.updateNString(columnLabel, nString);<br \/>\n}<\/p>\n<p>public void updateNClob(int columnIndex, NClob nClob) throws SQLException {<br \/>\nwrappedResultSet.updateNClob(columnIndex, nClob);<br \/>\n}<\/p>\n<p>public void updateNClob(String columnLabel, NClob nClob) throws SQLException {<br \/>\nwrappedResultSet.updateNClob(columnLabel, nClob);<br \/>\n}<\/p>\n<p>public NClob getNClob(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getNClob(columnIndex);<br \/>\n}<\/p>\n<p>public NClob getNClob(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getNClob(columnLabel);<br \/>\n}<\/p>\n<p>public SQLXML getSQLXML(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getSQLXML(columnIndex);<br \/>\n}<\/p>\n<p>public SQLXML getSQLXML(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getSQLXML(columnLabel);<br \/>\n}<\/p>\n<p>public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException {<br \/>\nwrappedResultSet.updateSQLXML(columnIndex, xmlObject);<br \/>\n}<\/p>\n<p>public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException {<br \/>\nwrappedResultSet.updateSQLXML(columnLabel, xmlObject);<br \/>\n}<\/p>\n<p>public String getNString(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getNString(columnIndex);<br \/>\n}<\/p>\n<p>public String getNString(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getNString(columnLabel);<br \/>\n}<\/p>\n<p>public Reader getNCharacterStream(int columnIndex) throws SQLException {<br \/>\nreturn wrappedResultSet.getNCharacterStream(columnIndex);<br \/>\n}<\/p>\n<p>public Reader getNCharacterStream(String columnLabel) throws SQLException {<br \/>\nreturn wrappedResultSet.getNCharacterStream(columnLabel);<br \/>\n}<\/p>\n<p>public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException {<br \/>\nwrappedResultSet.updateNCharacterStream(columnIndex, x, length);<br \/>\n}<\/p>\n<p>public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException {<br \/>\nwrappedResultSet.updateNCharacterStream(columnLabel, reader, length);<br \/>\n}<\/p>\n<p>public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException {<br \/>\nwrappedResultSet.updateAsciiStream(columnIndex, x, length);<br \/>\n}<\/p>\n<p>public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException {<br \/>\nwrappedResultSet.updateBinaryStream(columnIndex, x, length);<br \/>\n}<\/p>\n<p>public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException {<br \/>\nwrappedResultSet.updateCharacterStream(columnIndex, x, length);<br \/>\n}<\/p>\n<p>public void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException {<br \/>\nwrappedResultSet.updateAsciiStream(columnLabel, x, length);<br \/>\n}<\/p>\n<p>public void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException {<br \/>\nwrappedResultSet.updateBinaryStream(columnLabel, x, length);<br \/>\n}<\/p>\n<p>public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException {<br \/>\nwrappedResultSet.updateCharacterStream(columnLabel, reader, length);<br \/>\n}<\/p>\n<p>public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException {<br \/>\nwrappedResultSet.updateBlob(columnIndex, inputStream, length);<br \/>\n}<\/p>\n<p>public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException {<br \/>\nwrappedResultSet.updateBlob(columnLabel, inputStream, length);<br \/>\n}<\/p>\n<p>public void updateClob(int columnIndex, Reader reader, long length) throws SQLException {<br \/>\nwrappedResultSet.updateClob(columnIndex, reader, length);<br \/>\n}<\/p>\n<p>public void updateClob(String columnLabel, Reader reader, long length) throws SQLException {<br \/>\nwrappedResultSet.updateClob(columnLabel, reader, length);<br \/>\n}<\/p>\n<p>public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException {<br \/>\nwrappedResultSet.updateNClob(columnIndex, reader, length);<br \/>\n}<\/p>\n<p>public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException {<br \/>\nwrappedResultSet.updateNClob(columnLabel, reader, length);<br \/>\n}<\/p>\n<p>public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException {<br \/>\nwrappedResultSet.updateNCharacterStream(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException {<br \/>\nwrappedResultSet.updateNCharacterStream(columnLabel, reader);<br \/>\n}<\/p>\n<p>public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException {<br \/>\nwrappedResultSet.updateAsciiStream(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {<br \/>\nwrappedResultSet.updateBinaryStream(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateCharacterStream(int columnIndex, Reader x) throws SQLException {<br \/>\nwrappedResultSet.updateCharacterStream(columnIndex, x);<br \/>\n}<\/p>\n<p>public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException {<br \/>\nwrappedResultSet.updateAsciiStream(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException {<br \/>\nwrappedResultSet.updateBinaryStream(columnLabel, x);<br \/>\n}<\/p>\n<p>public void updateCharacterStream(String columnLabel, Reader reader) throws SQLException {<br \/>\nwrappedResultSet.updateCharacterStream(columnLabel, reader);<br \/>\n}<\/p>\n<p>public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException {<br \/>\nwrappedResultSet.updateBlob(columnIndex, inputStream);<br \/>\n}<\/p>\n<p>public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException {<br \/>\nwrappedResultSet.updateBlob(columnLabel, inputStream);<br \/>\n}<\/p>\n<p>public void updateClob(int columnIndex, Reader reader) throws SQLException {<br \/>\nwrappedResultSet.updateClob(columnIndex, reader);<br \/>\n}<\/p>\n<p>public void updateClob(String columnLabel, Reader reader) throws SQLException {<br \/>\nwrappedResultSet.updateClob(columnLabel, reader);<br \/>\n}<\/p>\n<p>public void updateNClob(int columnIndex, Reader reader) throws SQLException {<br \/>\nwrappedResultSet.updateNClob(columnIndex, reader);<br \/>\n}<\/p>\n<p>public void updateNClob(String columnLabel, Reader reader) throws SQLException {<br \/>\nwrappedResultSet.updateNClob(columnLabel, reader);<br \/>\n}<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Boilerplate code to wrap implementations of important JDBC interfaces<\/p>\n","protected":false},"author":13401,"featured_media":67363,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[57],"tags":[],"dashboard":[],"coauthors":[],"class_list":["post-41515","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-company-news"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.7 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Boilerplate JDBC Wrapper - Redfin Real Estate News<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.redfin.com\/news\/boilerplate_jdbc_wrapper\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Boilerplate JDBC Wrapper\" \/>\n<meta property=\"og:description\" content=\"Boilerplate code to wrap implementations of important JDBC interfaces\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.redfin.com\/news\/boilerplate_jdbc_wrapper\/\" \/>\n<meta property=\"og:site_name\" content=\"Redfin Real Estate News\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/redfin\" \/>\n<meta property=\"article:published_time\" content=\"2011-03-11T20:43:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-10-05T20:12:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.redfin.com\/news\/wp-content\/uploads\/2011\/03\/Coding-scaled-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1707\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Michael Smedberg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@redfin\" \/>\n<meta name=\"twitter:site\" content=\"@redfin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Smedberg\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"42 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/boilerplate_jdbc_wrapper\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/boilerplate_jdbc_wrapper\\\/\"},\"author\":{\"name\":\"Michael Smedberg\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#\\\/schema\\\/person\\\/1ec44a1785738a92423e0392733cbd87\"},\"headline\":\"Boilerplate JDBC Wrapper\",\"datePublished\":\"2011-03-11T20:43:01+00:00\",\"dateModified\":\"2020-10-05T20:12:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/boilerplate_jdbc_wrapper\\\/\"},\"wordCount\":8447,\"publisher\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/boilerplate_jdbc_wrapper\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.redfin.com/news\\\/wp-content\\\/uploads\\\/2011\\\/03\\\/Coding-scaled-1.jpg\",\"articleSection\":[\"Company News\"],\"inLanguage\":\"en-US\",\"copyrightYear\":\"2011\",\"copyrightHolder\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/boilerplate_jdbc_wrapper\\\/\",\"url\":\"https:\\\/\\\/www.redfin.com/news\\\/boilerplate_jdbc_wrapper\\\/\",\"name\":\"Boilerplate JDBC Wrapper - Redfin Real Estate News\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/boilerplate_jdbc_wrapper\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/boilerplate_jdbc_wrapper\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.redfin.com/news\\\/wp-content\\\/uploads\\\/2011\\\/03\\\/Coding-scaled-1.jpg\",\"datePublished\":\"2011-03-11T20:43:01+00:00\",\"dateModified\":\"2020-10-05T20:12:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/boilerplate_jdbc_wrapper\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.redfin.com/news\\\/boilerplate_jdbc_wrapper\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/boilerplate_jdbc_wrapper\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.redfin.com/news\\\/wp-content\\\/uploads\\\/2011\\\/03\\\/Coding-scaled-1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.redfin.com/news\\\/wp-content\\\/uploads\\\/2011\\\/03\\\/Coding-scaled-1.jpg\",\"width\":1800,\"height\":1200},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/boilerplate_jdbc_wrapper\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.redfin.com/news\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Boilerplate JDBC Wrapper\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#website\",\"url\":\"https:\\\/\\\/www.redfin.com/news\\\/\",\"name\":\"Redfin Real Estate News\",\"description\":\"The latest real estate news and research from technology-powered residential real estate company, Redfin.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.redfin.com/news\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#organization\",\"name\":\"Redfin\",\"url\":\"https:\\\/\\\/www.redfin.com/news\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.redfin.com\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/Redfin-News-Logo.png\",\"contentUrl\":\"https:\\\/\\\/www.redfin.com\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/Redfin-News-Logo.png\",\"width\":1100,\"height\":235,\"caption\":\"Redfin\"},\"image\":{\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/redfin\",\"https:\\\/\\\/x.com\\\/redfin\",\"https:\\\/\\\/www.instagram.com\\\/redfinrealestate\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/redfin\",\"https:\\\/\\\/www.pinterest.com\\\/redfin\\\/\",\"https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/Redfin\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/#\\\/schema\\\/person\\\/1ec44a1785738a92423e0392733cbd87\",\"name\":\"Michael Smedberg\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.redfin.com/news\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/Redfin-2025-Logo-B-150x150.jpgb98d1f204d143aab6d4240c534a1657e\",\"url\":\"https:\\\/\\\/www.redfin.com/news\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/Redfin-2025-Logo-B-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/www.redfin.com/news\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/Redfin-2025-Logo-B-150x150.jpg\",\"caption\":\"Michael Smedberg\"},\"url\":\"https:\\\/\\\/www.redfin.com/news\\\/author\\\/michael-smedbergredfin-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Boilerplate JDBC Wrapper - Redfin Real Estate News","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.redfin.com\/news\/boilerplate_jdbc_wrapper\/","og_locale":"en_US","og_type":"article","og_title":"Boilerplate JDBC Wrapper","og_description":"Boilerplate code to wrap implementations of important JDBC interfaces","og_url":"https:\/\/www.redfin.com\/news\/boilerplate_jdbc_wrapper\/","og_site_name":"Redfin Real Estate News","article_publisher":"https:\/\/www.facebook.com\/redfin","article_published_time":"2011-03-11T20:43:01+00:00","article_modified_time":"2020-10-05T20:12:32+00:00","og_image":[{"width":2560,"height":1707,"url":"https:\/\/www.redfin.com\/news\/wp-content\/uploads\/2011\/03\/Coding-scaled-1.jpg","type":"image\/jpeg"}],"author":"Michael Smedberg","twitter_card":"summary_large_image","twitter_creator":"@redfin","twitter_site":"@redfin","twitter_misc":{"Written by":"Michael Smedberg","Est. reading time":"42 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.redfin.com\/news\/boilerplate_jdbc_wrapper\/#article","isPartOf":{"@id":"https:\/\/www.redfin.com\/news\/boilerplate_jdbc_wrapper\/"},"author":{"name":"Michael Smedberg","@id":"https:\/\/www.redfin.com\/news\/#\/schema\/person\/1ec44a1785738a92423e0392733cbd87"},"headline":"Boilerplate JDBC Wrapper","datePublished":"2011-03-11T20:43:01+00:00","dateModified":"2020-10-05T20:12:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.redfin.com\/news\/boilerplate_jdbc_wrapper\/"},"wordCount":8447,"publisher":{"@id":"https:\/\/www.redfin.com\/news\/#organization"},"image":{"@id":"https:\/\/www.redfin.com\/news\/boilerplate_jdbc_wrapper\/#primaryimage"},"thumbnailUrl":"https:\/\/www.redfin.com\/news\/wp-content\/uploads\/2011\/03\/Coding-scaled-1.jpg","articleSection":["Company News"],"inLanguage":"en-US","copyrightYear":"2011","copyrightHolder":{"@id":"https:\/\/www.redfin.com\/news\/#organization"}},{"@type":"WebPage","@id":"https:\/\/www.redfin.com\/news\/boilerplate_jdbc_wrapper\/","url":"https:\/\/www.redfin.com\/news\/boilerplate_jdbc_wrapper\/","name":"Boilerplate JDBC Wrapper - Redfin Real Estate News","isPartOf":{"@id":"https:\/\/www.redfin.com\/news\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.redfin.com\/news\/boilerplate_jdbc_wrapper\/#primaryimage"},"image":{"@id":"https:\/\/www.redfin.com\/news\/boilerplate_jdbc_wrapper\/#primaryimage"},"thumbnailUrl":"https:\/\/www.redfin.com\/news\/wp-content\/uploads\/2011\/03\/Coding-scaled-1.jpg","datePublished":"2011-03-11T20:43:01+00:00","dateModified":"2020-10-05T20:12:32+00:00","breadcrumb":{"@id":"https:\/\/www.redfin.com\/news\/boilerplate_jdbc_wrapper\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.redfin.com\/news\/boilerplate_jdbc_wrapper\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redfin.com\/news\/boilerplate_jdbc_wrapper\/#primaryimage","url":"https:\/\/www.redfin.com\/news\/wp-content\/uploads\/2011\/03\/Coding-scaled-1.jpg","contentUrl":"https:\/\/www.redfin.com\/news\/wp-content\/uploads\/2011\/03\/Coding-scaled-1.jpg","width":1800,"height":1200},{"@type":"BreadcrumbList","@id":"https:\/\/www.redfin.com\/news\/boilerplate_jdbc_wrapper\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.redfin.com\/news\/"},{"@type":"ListItem","position":2,"name":"Boilerplate JDBC Wrapper"}]},{"@type":"WebSite","@id":"https:\/\/www.redfin.com\/news\/#website","url":"https:\/\/www.redfin.com\/news\/","name":"Redfin Real Estate News","description":"The latest real estate news and research from technology-powered residential real estate company, Redfin.","publisher":{"@id":"https:\/\/www.redfin.com\/news\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.redfin.com\/news\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.redfin.com\/news\/#organization","name":"Redfin","url":"https:\/\/www.redfin.com\/news\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redfin.com\/news\/#\/schema\/logo\/image\/","url":"https:\/\/www.redfin.com\/news\/wp-content\/uploads\/2020\/10\/Redfin-News-Logo.png","contentUrl":"https:\/\/www.redfin.com\/news\/wp-content\/uploads\/2020\/10\/Redfin-News-Logo.png","width":1100,"height":235,"caption":"Redfin"},"image":{"@id":"https:\/\/www.redfin.com\/news\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/redfin","https:\/\/x.com\/redfin","https:\/\/www.instagram.com\/redfinrealestate\/","https:\/\/www.linkedin.com\/company\/redfin","https:\/\/www.pinterest.com\/redfin\/","https:\/\/en.wikipedia.org\/wiki\/Redfin"]},{"@type":"Person","@id":"https:\/\/www.redfin.com\/news\/#\/schema\/person\/1ec44a1785738a92423e0392733cbd87","name":"Michael Smedberg","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redfin.com\/news\/wp-content\/uploads\/2025\/06\/Redfin-2025-Logo-B-150x150.jpgb98d1f204d143aab6d4240c534a1657e","url":"https:\/\/www.redfin.com\/news\/wp-content\/uploads\/2025\/06\/Redfin-2025-Logo-B-150x150.jpg","contentUrl":"https:\/\/www.redfin.com\/news\/wp-content\/uploads\/2025\/06\/Redfin-2025-Logo-B-150x150.jpg","caption":"Michael Smedberg"},"url":"https:\/\/www.redfin.com\/news\/author\/michael-smedbergredfin-com\/"}]}},"_links":{"self":[{"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/posts\/41515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/users\/13401"}],"replies":[{"embeddable":true,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/comments?post=41515"}],"version-history":[{"count":0,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/posts\/41515\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/media\/67363"}],"wp:attachment":[{"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/media?parent=41515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/categories?post=41515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/tags?post=41515"},{"taxonomy":"dashboard","embeddable":true,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/dashboard?post=41515"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.redfin.com\/news\/wp-json\/wp\/v2\/coauthors?post=41515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}