Package org.mybatis.scripting.thymeleaf
Class MyBatisDialect
java.lang.Object
org.thymeleaf.dialect.AbstractDialect
org.thymeleaf.dialect.AbstractProcessorDialect
org.mybatis.scripting.thymeleaf.MyBatisDialect
- All Implemented Interfaces:
org.thymeleaf.dialect.IDialect
,org.thymeleaf.dialect.IExpressionObjectDialect
,org.thymeleaf.dialect.IProcessorDialect
public class MyBatisDialect
extends org.thymeleaf.dialect.AbstractProcessorDialect
implements org.thymeleaf.dialect.IExpressionObjectDialect
The Dialect for integrating with MyBatis.
This dialect provides following features. This dialect prefix is
This dialect provides following features. This dialect prefix is
"mb"
by default.
#likes
expression :Likes
mb:p
attribute tag:MyBatisParamTagProcessor
mb:bind
attribute tag :MyBatisBindTagProcessor
- Version:
- 1.0.0
- Author:
- Kazuki Shimizu
-
Constructor Summary
ConstructorDescriptionDefault constructor.MyBatisDialect
(String prefix) Constructor that can be specified the dialect prefix. -
Method Summary
Modifier and TypeMethodDescriptionorg.thymeleaf.expression.IExpressionObjectFactory
Set
<org.thymeleaf.processor.IProcessor> getProcessors
(String dialectPrefix) void
setBindVariableRender
(BindVariableRender bindVariableRender) Set a bind variable render.void
Set an expression utility object that provide helper method for like feature.Methods inherited from class org.thymeleaf.dialect.AbstractProcessorDialect
getDialectProcessorPrecedence, getPrefix
Methods inherited from class org.thymeleaf.dialect.AbstractDialect
getName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.thymeleaf.dialect.IDialect
getName
-
Constructor Details
-
MyBatisDialect
public MyBatisDialect()Default constructor. -
MyBatisDialect
Constructor that can be specified the dialect prefix.- Parameters:
prefix
- A dialect prefix
-
-
Method Details
-
setLikes
Set an expression utility object that provide helper method for like feature.- Parameters:
likes
- An expression utility object that provide helper method for like feature
-
setBindVariableRender
Set a bind variable render.- Parameters:
bindVariableRender
- a bind variable render- Since:
- 1.0.2
-
getProcessors
-
getExpressionObjectFactory
public org.thymeleaf.expression.IExpressionObjectFactory getExpressionObjectFactory()- Specified by:
getExpressionObjectFactory
in interfaceorg.thymeleaf.dialect.IExpressionObjectDialect
-