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.
#likesexpression :Likesmb:pattribute tag:MyBatisParamTagProcessormb:bindattribute tag :MyBatisBindTagProcessor
- Version:
- 1.0.0
- Author:
- Kazuki Shimizu
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.MyBatisDialect(String prefix) Constructor that can be specified the dialect prefix. -
Method Summary
Modifier and TypeMethodDescriptionorg.thymeleaf.expression.IExpressionObjectFactorySet<org.thymeleaf.processor.IProcessor> getProcessors(String dialectPrefix) voidsetBindVariableRender(BindVariableRender bindVariableRender) Set a bind variable render.voidSet an expression utility object that provide helper method for like feature.Methods inherited from class org.thymeleaf.dialect.AbstractProcessorDialect
getDialectProcessorPrecedence, getPrefixMethods inherited from class org.thymeleaf.dialect.AbstractDialect
getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
- Specified by:
getProcessorsin interfaceorg.thymeleaf.dialect.IProcessorDialect
-
getExpressionObjectFactory
public org.thymeleaf.expression.IExpressionObjectFactory getExpressionObjectFactory()- Specified by:
getExpressionObjectFactoryin interfaceorg.thymeleaf.dialect.IExpressionObjectDialect
-