public class ResultSetProxy extends Object implements InvocationHandler
ResultSet class to return the proxy ResultSetMetaDataProxy to protect against compatibility issues between
JDBC standard and SQL standard on number fields declared without
precision.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Modifier and Type | Method and Description |
|---|---|
static ResultSet |
createResultSet(ResultSet resultSet)
Returns a proxy result set which returns a proxy
ResultSetMetaData object to handle imprecisely defined number
columns |
Object |
invoke(Object proxy,
Method method,
Object[] parameters)
The
InvocationHandler implementation. |
public static ResultSet createResultSet(ResultSet resultSet)
ResultSetMetaData object to handle imprecisely defined number
columnsresultSet - The result set that is to be proxied.public Object invoke(Object proxy, Method method, Object[] parameters) throws SQLException
InvocationHandler implementation. Passes
through to resultSet except for invocation of the ResultSet.getMetaData() method which returns the proxy
ResultSetMetaDataProxy class.invoke in interface InvocationHandlerproxy - This proxy instance.method - The method that is to be executed.parameters - The parameters to pass to the method.SQLException - If errors are encountered while invoking the method.