|
|
@ -5,6 +5,12 @@ import java.sql.DatabaseMetaData;
|
|
|
|
import java.sql.ResultSet;
|
|
|
|
import java.sql.ResultSet;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* This is the proxy class for {@link DatabaseMetaData}.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @author Brett Wooldridge
|
|
|
|
|
|
|
|
* @author Yanming Zhou
|
|
|
|
|
|
|
|
*/
|
|
|
|
public abstract class ProxyDatabaseMetaData implements DatabaseMetaData
|
|
|
|
public abstract class ProxyDatabaseMetaData implements DatabaseMetaData
|
|
|
|
{
|
|
|
|
{
|
|
|
|
protected final ProxyConnection connection;
|
|
|
|
protected final ProxyConnection connection;
|
|
|
@ -302,6 +308,13 @@ public abstract class ProxyDatabaseMetaData implements DatabaseMetaData
|
|
|
|
return ProxyFactory.getProxyResultSet(connection, (ProxyStatement) statement, resultSet);
|
|
|
|
return ProxyFactory.getProxyResultSet(connection, (ProxyStatement) statement, resultSet);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** {@inheritDoc} */
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public final boolean isWrapperFor(Class<?> iface) throws SQLException
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return iface.isInstance(delegate) || (delegate != null && delegate.isWrapperFor(iface));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** {@inheritDoc} */
|
|
|
|
/** {@inheritDoc} */
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
|