public abstract class AbstractWrapper extends java.lang.Object implements java.sql.Wrapper, P6Proxy
Modifier | Constructor and Description |
---|---|
protected |
AbstractWrapper(java.lang.Object delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
static boolean |
isProxy(java.lang.Class<?> clazz)
Used to determine if the given class is a proxy class.
|
static boolean |
isProxy(java.lang.Object obj)
Used to determine is a given object is a Proxy created by this proxy factory.
|
boolean |
isWrapperFor(java.lang.Class<?> iface) |
<T> T |
unwrap(java.lang.Class<T> iface) |
java.lang.Object |
unwrapP6SpyProxy()
Returns the underlying object for the proxy.
|
public static boolean isProxy(java.lang.Object obj)
obj
- the object in questionpublic static boolean isProxy(java.lang.Class<?> clazz)
clazz
- the class in questionpublic <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException
unwrap
in interface java.sql.Wrapper
java.sql.SQLException
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException
isWrapperFor
in interface java.sql.Wrapper
java.sql.SQLException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object unwrapP6SpyProxy()
P6Proxy
WARNING: This is an internal method for P6Spy. This method should not be called directly. Use the methods
on the Wrapper
interface instead!
unwrapP6SpyProxy
in interface P6Proxy