| Modifier and Type | Field and Description |
|---|---|
| private final ColumnNameCache | |
| private static final Logger | |
| private static final Class | |
| private final ResultSet |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private Object[] | |
| private int | Returns: The column index corresponding to the given column name.The column name to resolve into an index. columnName)Locate the column index corresponding to the given column name via the cache. |
| public static ResultSet | Returns: The generated proxy.The resultSet to wrap. resultSet, ColumnNameCache The cache storing data for converting column names to column indexes. columnNameCache)Generates a proxy wrapping the ResultSet. |
| public static ClassLoader | Returns: The class loader appropriate for proxy construction.Determines the appropriate class loader to which the generated proxy should be scoped. |
| public Object | invoke(Object
the proxy instance that the method was invoked on proxy, Method the method, Object[] Method instance corresponding to
the interface method invoked on the proxy instance. The declaring
class of the Method object will be the interface that
the method was declared in, which may be a superinterface of the
proxy interface that the proxy class inherits the method through.an array of objects containing the values of the
arguments passed in the method invocation on the proxy instance,
or args)null if interface method takes no arguments.
Arguments of primitive types are wrapped in instances of the
appropriate primitive wrapper class, such as
java.lang.Integer or java.lang.Boolean.Implements java. |
| private Object | |
| private boolean | |
| private Method | Returns: The corresponding method passed the column index.The method passed the column name columnNameMethod)For a given |
| columnNameCache | back to summary |
|---|---|
| private final ColumnNameCache columnNameCache | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| PROXY_INTERFACES | back to summary |
|---|---|
| private static final Class<T>[] PROXY_INTERFACES | |
| rs | back to summary |
|---|---|
| private final ResultSet rs | |
| ResultSetWrapperProxy | back to summary |
|---|---|
| private ResultSetWrapperProxy(ResultSet rs, ColumnNameCache columnNameCache) | |
| buildColumnIndexMethodArgs | back to summary |
|---|---|
| private Object[] buildColumnIndexMethodArgs(Object[] incomingArgs, int columnIndex) | |
| findColumn | back to summary |
|---|---|
| private int findColumn(String columnName) throws SQLException Locate the column index corresponding to the given column name via the cache.
| |
| generateProxy | back to summary |
|---|---|
| public static ResultSet generateProxy(ResultSet resultSet, ColumnNameCache columnNameCache) Generates a proxy wrapping the ResultSet.
| |
| getProxyClassLoader | back to summary |
|---|---|
| public static ClassLoader getProxyClassLoader() Determines the appropriate class loader to which the generated proxy should be scoped.
| |
| invoke | back to summary |
|---|---|
| public Object invoke(Object proxy, Method method, Object[] args) throws Throwable Implements java. Doc from java. Processes a method invocation on a proxy instance and returns the result. This method will be invoked on an invocation handler when a method is invoked on a proxy instance that it is associated with.
| |
| invokeMethod | back to summary |
|---|---|
| private Object invokeMethod(Method method, Object[] args) throws Throwable | |
| isFirstArgColumnLabel | back to summary |
|---|---|
| private boolean isFirstArgColumnLabel(Method method, Object[] args) | |
| locateCorrespondingColumnIndexMethod | back to summary |
|---|---|
| private Method locateCorrespondingColumnIndexMethod(Method columnNameMethod) throws NoSuchMethodException For a given
| |