Class NoTemplateEngine
java.lang.Object
org.jdbi.v3.core.statement.NoTemplateEngine
- All Implemented Interfaces:
TemplateEngine
A TemplateEngine that does not do any templating but returns SQL verbatim.
-
Nested Class Summary
Nested classes/interfaces inherited from interface TemplateEngine
TemplateEngine.Parsing -
Field Summary
Fields inherited from interface TemplateEngine
NOPModifier and TypeFieldDescriptionstatic final TemplateEngineConvenience constant that returns the input template. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrender(String template, StatementContext ctx) Renders an SQL statement from the given template, using the statement context as needed.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TemplateEngine
parseModifier and TypeMethodDescriptiondefault Optional<Function<StatementContext, String>> parse(String template, ConfigRegistry config) Parse a SQL template and return a parsed representation ready to apply to a statement.
-
Constructor Details
-
NoTemplateEngine
public NoTemplateEngine()
-
-
Method Details
-
render
Description copied from interface:TemplateEngineRenders an SQL statement from the given template, using the statement context as needed.- Specified by:
renderin interfaceTemplateEngine- Parameters:
template- The SQL to rewritectx- The statement context for the statement being executed- Returns:
- something which can provide the actual SQL to prepare a statement from and which can bind the correct arguments to that prepared statement
-