public class ClasspathStatementLocator extends Object implements StatementLocator
Constructor and Description |
---|
ClasspathStatementLocator() |
Modifier and Type | Method and Description |
---|---|
String |
locate(String name,
StatementContext ctx)
If the passed in name doesn't look like SQL it will search the classpath for a file
which looks like the provided name.
|
static boolean |
looksLikeSql(String sql)
Very basic sanity test to see if a string looks like it might be sql
|
public String locate(String name, StatementContext ctx)
locate
in interface StatementLocator
name
- Name or statement literalUnableToCreateStatementException
- if an IOException occurs reading a found resourcepublic static boolean looksLikeSql(String sql)
Copyright © 2018. All rights reserved.