|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.echo2.table.ResultSetMetaDataProxy
public class ResultSetMetaDataProxy
A proxy ResultSetMetaData to return non-negative values
for the ResultSetMetaData.getScale(int) method.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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.
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||