public class RawLanguageDriver extends XMLLanguageDriver
RawSqlSource
. So there is no need to use RAW unless you
want to make sure that there is not any dynamic tag for any reason.Constructor and Description |
---|
RawLanguageDriver() |
Modifier and Type | Method and Description |
---|---|
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. |
createParameterHandler
public SqlSource createSqlSource(Configuration configuration, XNode script, Class<?> parameterType)
LanguageDriver
SqlSource
that will hold the statement read from a mapper xml file.
It is called during startup, when the mapped statement is read from a class or an xml file.createSqlSource
in interface LanguageDriver
createSqlSource
in class XMLLanguageDriver
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 annotation.
It is called during startup, when the mapped statement is read from a class or an xml file.createSqlSource
in interface LanguageDriver
createSqlSource
in class XMLLanguageDriver
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–2015 MyBatis.org. All rights reserved.