Package org.apache.ibatis.scripting
Interface LanguageDriver
-
- All Known Implementing Classes:
RawLanguageDriver,XMLLanguageDriver
public interface LanguageDriver
-
-
Method Summary
Modifier and Type Method Description ParameterHandlercreateParameterHandler(MappedStatement mappedStatement, java.lang.Object parameterObject, BoundSql boundSql)Creates aParameterHandlerthat passes the actual parameters to the the JDBC statement.SqlSourcecreateSqlSource(Configuration configuration, java.lang.String script, java.lang.Class<?> parameterType)Creates anSqlSourcethat will hold the statement read from an annotation.SqlSourcecreateSqlSource(Configuration configuration, XNode script, java.lang.Class<?> parameterType)Creates anSqlSourcethat will hold the statement read from a mapper xml file.
-
-
-
Method Detail
-
createParameterHandler
ParameterHandler createParameterHandler(MappedStatement mappedStatement, java.lang.Object parameterObject, BoundSql boundSql)
Creates aParameterHandlerthat passes the actual parameters to the the JDBC statement.- 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
SqlSource createSqlSource(Configuration configuration, XNode script, java.lang.Class<?> parameterType)
Creates 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.- 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
SqlSource createSqlSource(Configuration configuration, java.lang.String script, java.lang.Class<?> parameterType)
Creates 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.- 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:
-
-