public class RawLanguageDriver extends Object implements LanguageDriver
Constructor and Description |
---|
RawLanguageDriver() |
Modifier and Type | Method and Description |
---|---|
ParameterHandler |
createParameterHandler(MappedStatement mappedStatement,
Object parameterObject,
BoundSql boundSql)
Creates a
ParameterHandler that will set the parameters of the |
SqlSource |
createSqlSource(Configuration configuration,
String script,
Class<?> parameterType)
Creates an
SqlSource that will hold the statement read from an annotation |
SqlSource |
createSqlSource(Configuration configuration,
XNode script,
Class<?> parameterType)
Creates an
SqlSource that will hold the statement read from a mapper xml file |
public ParameterHandler createParameterHandler(MappedStatement mappedStatement, Object parameterObject, BoundSql boundSql)
LanguageDriver
ParameterHandler
that will set the parameters of thecreateParameterHandler
in interface LanguageDriver
mappedStatement
- The mapped statement that is being executedparameterObject
- The input parameter object (can be null)boundSql
- The resulting SQL once the dynamic language has been executed.public SqlSource createSqlSource(Configuration configuration, XNode script, Class<?> parameterType)
LanguageDriver
SqlSource
that will hold the statement read from a mapper xml filecreateSqlSource
in interface LanguageDriver
configuration
- The MyBatis configurationscript
- XNode parsed from a XML fileparameterType
- input parameter type got from a mapper method or specified in the parameterType xml attribute. Can be null.public SqlSource createSqlSource(Configuration configuration, String script, Class<?> parameterType)
LanguageDriver
SqlSource
that will hold the statement read from an annotationcreateSqlSource
in interface LanguageDriver
configuration
- The MyBatis configurationscript
- The content of the annotationparameterType
- input parameter type got from a mapper method or specified in the parameterType xml attribute. Can be null.Copyright © 2010–2014 MyBatis.org. All rights reserved.