public class StringTemplate3StatementLocator extends Object implements StatementLocator
Modifier and Type | Class and Description |
---|---|
static class |
StringTemplate3StatementLocator.Builder |
Modifier and Type | Field and Description |
---|---|
static String |
TEMPLATE_GROUP_EXTENSION |
Constructor and Description |
---|
StringTemplate3StatementLocator(Class baseClass)
Deprecated.
|
StringTemplate3StatementLocator(Class baseClass,
boolean allowImplicitTemplateGroup,
boolean treatLiteralsAsTemplates)
Deprecated.
|
StringTemplate3StatementLocator(Class baseClass,
boolean allowImplicitTemplateGroup,
boolean treatLiteralsAsTemplates,
boolean shouldCache)
Deprecated.
|
StringTemplate3StatementLocator(String templateGroupFilePathOnClasspath)
Deprecated.
|
StringTemplate3StatementLocator(String templateGroupFilePathOnClasspath,
boolean allowImplicitTemplateGroup,
boolean treatLiteralsAsTemplates)
Deprecated.
|
StringTemplate3StatementLocator(String templateGroupFilePathOnClasspath,
boolean allowImplicitTemplateGroup,
boolean treatLiteralsAsTemplates,
boolean shouldCache)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static StringTemplate3StatementLocator.Builder |
builder(Class<?> baseClass) |
static StringTemplate3StatementLocator.Builder |
builder(String templateGroupFilePathOnClasspath) |
String |
locate(String name,
StatementContext ctx)
Use this to map from a named statement to SQL.
|
public static final String TEMPLATE_GROUP_EXTENSION
@Deprecated public StringTemplate3StatementLocator(Class baseClass)
StringTemplate3StatementLocator#builder()
and StringTemplate3StatementLocator.Builder
.@Deprecated public StringTemplate3StatementLocator(Class baseClass, boolean allowImplicitTemplateGroup, boolean treatLiteralsAsTemplates)
StringTemplate3StatementLocator#builder()
and StringTemplate3StatementLocator.Builder
.@Deprecated public StringTemplate3StatementLocator(Class baseClass, boolean allowImplicitTemplateGroup, boolean treatLiteralsAsTemplates, boolean shouldCache)
StringTemplate3StatementLocator#builder()
and StringTemplate3StatementLocator.Builder
.@Deprecated public StringTemplate3StatementLocator(String templateGroupFilePathOnClasspath)
StringTemplate3StatementLocator#builder()
and StringTemplate3StatementLocator.Builder
.@Deprecated public StringTemplate3StatementLocator(String templateGroupFilePathOnClasspath, boolean allowImplicitTemplateGroup, boolean treatLiteralsAsTemplates)
StringTemplate3StatementLocator#builder()
and StringTemplate3StatementLocator.Builder
.@Deprecated public StringTemplate3StatementLocator(String templateGroupFilePathOnClasspath, boolean allowImplicitTemplateGroup, boolean treatLiteralsAsTemplates, boolean shouldCache)
StringTemplate3StatementLocator#builder()
and StringTemplate3StatementLocator.Builder
.public static final StringTemplate3StatementLocator.Builder builder(Class<?> baseClass)
public static final StringTemplate3StatementLocator.Builder builder(String templateGroupFilePathOnClasspath)
public String locate(String name, StatementContext ctx) throws Exception
StatementLocator
locate
in interface StatementLocator
name
- The name of the statement, as provided to a HandleException
- if anything goes wrong, jDBI will percolate expected exceptionsCopyright © 2018. All rights reserved.