Codota Logo
ProfilingConnectionHandler.buildStatementProxy
Code IndexAdd Codota to your IDE (free)

How to use
buildStatementProxy
method
in
org.sonar.db.profiling.ProfilingConnectionHandler

Best Java code snippets using org.sonar.db.profiling.ProfilingConnectionHandler.buildStatementProxy (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: SonarSource/sonarqube

@Override
public Object invoke(Object target, Method method, Object[] args) throws Throwable {
 Object result = InvocationUtils.invokeQuietly(connection, method, args);
 if ("prepareStatement".equals(method.getName())) {
  PreparedStatement statement = (PreparedStatement) result;
  String sql = (String) args[0];
  return buildStatementProxy(PreparedStatement.class, new ProfilingPreparedStatementHandler(statement, sql));
 }
 if ("createStatement".equals(method.getName())) {
  Statement statement = (Statement) result;
  return buildStatementProxy(Statement.class, new ProfilingStatementHandler(statement));
 }
 return result;
}
origin: org.sonarsource.sonarqube/sonar-db

@Override
public Object invoke(Object target, Method method, Object[] args) throws Throwable {
 Object result = InvocationUtils.invokeQuietly(connection, method, args);
 if ("prepareStatement".equals(method.getName())) {
  PreparedStatement statement = (PreparedStatement) result;
  String sql = (String) args[0];
  return buildStatementProxy(PreparedStatement.class, new ProfilingPreparedStatementHandler(statement, sql));
 }
 if ("createStatement".equals(method.getName())) {
  Statement statement = (Statement) result;
  return buildStatementProxy(Statement.class, new ProfilingStatementHandler(statement));
 }
 return result;
}
origin: org.sonarsource.sonarqube/sonar-db-core

@Override
public Object invoke(Object target, Method method, Object[] args) throws Throwable {
 Object result = InvocationUtils.invokeQuietly(connection, method, args);
 if ("prepareStatement".equals(method.getName())) {
  PreparedStatement statement = (PreparedStatement) result;
  String sql = (String) args[0];
  return buildStatementProxy(PreparedStatement.class, new ProfilingPreparedStatementHandler(statement, sql));
 }
 if ("createStatement".equals(method.getName())) {
  Statement statement = (Statement) result;
  return buildStatementProxy(Statement.class, new ProfilingStatementHandler(statement));
 }
 return result;
}
org.sonar.db.profilingProfilingConnectionHandlerbuildStatementProxy

Popular methods of ProfilingConnectionHandler

  • <init>

Popular in Java

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • startActivity (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Menu (java.awt)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now