Class XMLLanguageDriver
- java.lang.Object
-
- org.apache.ibatis.scripting.xmltags.XMLLanguageDriver
-
- All Implemented Interfaces:
LanguageDriver
- Direct Known Subclasses:
RawLanguageDriver
public class XMLLanguageDriver extends java.lang.Object implements LanguageDriver
- Author:
- Eduardo Macarron
-
-
Constructor Summary
Constructors Constructor Description XMLLanguageDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterHandler
createParameterHandler(MappedStatement mappedStatement, java.lang.Object parameterObject, BoundSql boundSql)
Creates aParameterHandler
that passes the actual parameters to the the JDBC statement.SqlSource
createSqlSource(Configuration configuration, java.lang.String script, java.lang.Class<?> parameterType)
Creates anSqlSource
that will hold the statement read from an annotation.SqlSource
createSqlSource(Configuration configuration, XNode script, java.lang.Class<?> parameterType)
Creates anSqlSource
that will hold the statement read from a mapper xml file.
-
-
-
Method Detail
-
createParameterHandler
public ParameterHandler createParameterHandler(MappedStatement mappedStatement, java.lang.Object parameterObject, BoundSql boundSql)
Description copied from interface:LanguageDriver
Creates aParameterHandler
that passes the actual parameters to the the JDBC statement.- Specified by:
createParameterHandler
in interfaceLanguageDriver
- Parameters:
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.- Returns:
- See Also:
DefaultParameterHandler
-
createSqlSource
public SqlSource createSqlSource(Configuration configuration, XNode script, java.lang.Class<?> parameterType)
Description copied from interface:LanguageDriver
Creates anSqlSource
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.- Specified by:
createSqlSource
in interfaceLanguageDriver
- Parameters:
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.- Returns:
-
createSqlSource
public SqlSource createSqlSource(Configuration configuration, java.lang.String script, java.lang.Class<?> parameterType)
Description copied from interface:LanguageDriver
Creates anSqlSource
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.- Specified by:
createSqlSource
in interfaceLanguageDriver
- Parameters:
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.- Returns:
-
-