Class XMLLanguageDriver
java.lang.Object
org.apache.ibatis.scripting.xmltags.XMLLanguageDriver
- All Implemented Interfaces:
LanguageDriver
- Direct Known Subclasses:
RawLanguageDriver
- Author:
- Eduardo Macarron
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateParameterHandler(MappedStatement mappedStatement, Object parameterObject, BoundSql boundSql) Creates aParameterHandlerthat passes the actual parameters to the the JDBC statement.createSqlSource(Configuration configuration, String script, Class<?> parameterType) Creates anSqlSourcethat will hold the statement read from an annotation.createSqlSource(Configuration configuration, XNode script, Class<?> parameterType) Creates anSqlSourcethat will hold the statement read from a mapper xml file.
-
Constructor Details
-
XMLLanguageDriver
public XMLLanguageDriver()
-
-
Method Details
-
createParameterHandler
public ParameterHandler createParameterHandler(MappedStatement mappedStatement, Object parameterObject, BoundSql boundSql) Description copied from interface:LanguageDriverCreates aParameterHandlerthat passes the actual parameters to the the JDBC statement.- Specified by:
createParameterHandlerin 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:
- the parameter handler
- See Also:
-
createSqlSource
Description copied from interface:LanguageDriverCreates anSqlSourcethat 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:
createSqlSourcein 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:
- the sql source
-
createSqlSource
public SqlSource createSqlSource(Configuration configuration, String script, Class<?> parameterType) Description copied from interface:LanguageDriverCreates anSqlSourcethat 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:
createSqlSourcein 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:
- the sql source
-