Allow the Javassist proxy generator to generate these delegate methods.

pull/192/head
Brett Wooldridge 11 years ago
parent e43c11f7ca
commit 74e6281a02

@ -17,8 +17,6 @@
package com.zaxxer.hikari.proxy;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* This is the proxy class for java.sql.PreparedStatement.
@ -36,15 +34,4 @@ public abstract class PreparedStatementProxy extends StatementProxy implements P
// Overridden java.sql.PreparedStatement Methods
// **********************************************************************
/** {@inheritDoc} */
@Override
public final ResultSet executeQuery() throws SQLException
{
try {
return ((PreparedStatement) delegate).executeQuery();
}
catch (SQLException e) {
throw connection.checkException(e);
}
}
}

@ -17,7 +17,6 @@
package com.zaxxer.hikari.proxy;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Wrapper;
@ -68,42 +67,6 @@ public abstract class StatementProxy implements Statement
}
}
/** {@inheritDoc} */
@Override
public final ResultSet executeQuery(String sql) throws SQLException
{
try {
return delegate.executeQuery(sql);
}
catch (SQLException e) {
throw connection.checkException(e);
}
}
/** {@inheritDoc} */
@Override
public final ResultSet getResultSet() throws SQLException
{
try {
return delegate.getResultSet();
}
catch (SQLException e) {
throw connection.checkException(e);
}
}
/** {@inheritDoc} */
@Override
public final ResultSet getGeneratedKeys() throws SQLException
{
try {
return delegate.getGeneratedKeys();
}
catch (SQLException e) {
throw connection.checkException(e);
}
}
/** {@inheritDoc} */
@Override
public final Connection getConnection() throws SQLException

@ -36,15 +36,4 @@ public abstract class PreparedStatementProxy extends StatementProxy implements P
// Overridden java.sql.PreparedStatement Methods
// **********************************************************************
/** {@inheritDoc} */
@Override
public final ResultSet executeQuery() throws SQLException
{
try {
return ((PreparedStatement) delegate).executeQuery();
}
catch (SQLException e) {
throw connection.checkException(e);
}
}
}

@ -68,42 +68,6 @@ public abstract class StatementProxy implements Statement
}
}
/** {@inheritDoc} */
@Override
public final ResultSet executeQuery(String sql) throws SQLException
{
try {
return delegate.executeQuery(sql);
}
catch (SQLException e) {
throw connection.checkException(e);
}
}
/** {@inheritDoc} */
@Override
public final ResultSet getResultSet() throws SQLException
{
try {
return delegate.getResultSet();
}
catch (SQLException e) {
throw connection.checkException(e);
}
}
/** {@inheritDoc} */
@Override
public final ResultSet getGeneratedKeys() throws SQLException
{
try {
return delegate.getGeneratedKeys();
}
catch (SQLException e) {
throw connection.checkException(e);
}
}
/** {@inheritDoc} */
@Override
public final Connection getConnection() throws SQLException

Loading…
Cancel
Save