Tabnine Logo
ClasspathStatementLocator.looksLikeSql
Code IndexAdd Tabnine to your IDE (free)

How to use
looksLikeSql
method
in
org.skife.jdbi.v2.ClasspathStatementLocator

Best Java code snippets using org.skife.jdbi.v2.ClasspathStatementLocator.looksLikeSql (Showing top 5 results out of 315)

origin: com.ning.jdbi/jdbi-metrics

  @Override
  public StatementName getStatementName(final StatementContext statementContext)
  {
    final String rawSql = statementContext.getRawSql();
    if (ClasspathStatementLocator.looksLikeSql(rawSql)) {
      return forRawSql(rawSql);
    }
    return null;
  }
}
origin: com.yammer.metrics/metrics-jdbi

  @Override
  public MetricName getStatementName(StatementContext statementContext) {
    final String rawSql = statementContext.getRawSql();
    if (ClasspathStatementLocator.looksLikeSql(rawSql)) {
      return forRawSql(rawSql);
    }
    return null;
  }
}
origin: io.kazuki/kazuki-db

 public String locate(String name, StatementContext ctx) throws Exception {
  if (ClasspathStatementLocator.looksLikeSql(name)) {
   return name;
  }
  final StringTokenizer tok = new StringTokenizer(name, ":");
  final String group_name = tok.nextToken();
  final String template_name = tok.nextToken();
  final StringTemplateGroup group = loader.loadGroup(group_name);
  final StringTemplate template = group.getInstanceOf(template_name);
  template.setAttributes(ctx.getAttributes());
  return template.toString();
 }
});
origin: org.kill-bill.commons/killbill-jdbi

if (looksLikeSql(name)) {
origin: com.ning.billing/killbill-osgi-bundles-analytics

if (looksLikeSql(name)) {
  found.putIfAbsent(cache_key, name);
  return name;
org.skife.jdbi.v2ClasspathStatementLocatorlooksLikeSql

Javadoc

Very basic sanity test to see if a string looks like it might be sql

Popular methods of ClasspathStatementLocator

  • <init>
  • isComment
  • left
  • mungify
  • selectClassLoader
    There *must* be a better place to put this without creating a helpers class just for it
  • stripStart

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • findViewById (Activity)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JFrame (javax.swing)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now