org.elasticsearch.xpack.sql.jdbc.ConnectionProxy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of galen Show documentation
Show all versions of galen Show documentation
A library for layout testing of websites
The newest version!
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.xpack.sql.jdbc;
import java.sql.DatabaseMetaData;
import java.sql.Statement;
final class ConnectionProxy extends DebuggingInvoker {
ConnectionProxy(DebugLog log, Object target) {
super(log, target, null);
}
@Override
protected Object postProcess(Object result, Object proxy) {
if (result instanceof Statement) {
return Debug.proxy(result, new StatementProxy(log, result, proxy));
}
if (result instanceof DatabaseMetaData) {
return Debug.proxy(new DatabaseMetaDataProxy(log, result, proxy));
}
return result;
}
}
© 2015 - 2026 Weber Informatics LLC | Privacy Policy