public class ResultSetMetaDataProxy extends Object implements InvocationHandler
ResultSetMetaData to return non-negative values
for the ResultSetMetaData.getScale(int) method.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Modifier and Type | Method and Description |
|---|---|
static ResultSetMetaData |
createMetaData(ResultSetMetaData metadata)
Returns a proxy meta data which returns a non-negative scale value
for number columns.
|
Object |
invoke(Object proxy,
Method method,
Object[] parameters)
The
InvocationHandler implementation. |
public static ResultSetMetaData createMetaData(ResultSetMetaData metadata)
metadata - The meta data that is to be proxied.public Object invoke(Object proxy, Method method, Object[] parameters) throws SQLException
InvocationHandler implementation. Passes
through to metadata except for invocation of the ResultSetMetaData.getScale(int) method which returns a
non-negative value for all cases.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.