Package org.mybatis.scripting.thymeleaf
Class ThymeleafLanguageDriver
java.lang.Object
org.mybatis.scripting.thymeleaf.ThymeleafLanguageDriver
- All Implemented Interfaces:
org.apache.ibatis.scripting.LanguageDriver
public class ThymeleafLanguageDriver
extends Object
implements org.apache.ibatis.scripting.LanguageDriver
The
LanguageDriver
for integrating with Thymeleaf.- Version:
- 1.0.0
- Author:
- Kazuki Shimizu
-
Constructor Summary
ConstructorDescriptionConstructor for creating instance with defaultTemplateEngine
.Constructor for creating instance with user specifiedProperties
.ThymeleafLanguageDriver
(org.thymeleaf.ITemplateEngine templateEngine) Constructor for creating instance with user definedITemplateEngine
. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.ibatis.executor.parameter.ParameterHandler
createParameterHandler
(org.apache.ibatis.mapping.MappedStatement mappedStatement, Object parameterObject, org.apache.ibatis.mapping.BoundSql boundSql) org.apache.ibatis.mapping.SqlSource
createSqlSource
(org.apache.ibatis.session.Configuration configuration, String script, Class<?> parameterType) org.apache.ibatis.mapping.SqlSource
createSqlSource
(org.apache.ibatis.session.Configuration configuration, org.apache.ibatis.parsing.XNode script, Class<?> parameterType)
-
Constructor Details
-
ThymeleafLanguageDriver
public ThymeleafLanguageDriver()Constructor for creating instance with defaultTemplateEngine
. -
ThymeleafLanguageDriver
Constructor for creating instance with user specifiedProperties
.- Parameters:
config
- A user definedITemplateEngine
instance
-
ThymeleafLanguageDriver
public ThymeleafLanguageDriver(org.thymeleaf.ITemplateEngine templateEngine) Constructor for creating instance with user definedITemplateEngine
.- Parameters:
templateEngine
- A user definedITemplateEngine
instance
-
-
Method Details
-
createParameterHandler
public org.apache.ibatis.executor.parameter.ParameterHandler createParameterHandler(org.apache.ibatis.mapping.MappedStatement mappedStatement, Object parameterObject, org.apache.ibatis.mapping.BoundSql boundSql) - Specified by:
createParameterHandler
in interfaceorg.apache.ibatis.scripting.LanguageDriver
-
createSqlSource
public org.apache.ibatis.mapping.SqlSource createSqlSource(org.apache.ibatis.session.Configuration configuration, org.apache.ibatis.parsing.XNode script, Class<?> parameterType) - Specified by:
createSqlSource
in interfaceorg.apache.ibatis.scripting.LanguageDriver
-
createSqlSource
-