20
20
import org .apache .ibatis .mapping .MappedStatement ;
21
21
import org .apache .ibatis .mapping .SqlSource ;
22
22
import org .apache .ibatis .parsing .XNode ;
23
+ import org .apache .ibatis .scripting .defaults .DefaultParameterHandler ;
23
24
import org .apache .ibatis .session .Configuration ;
24
25
25
26
public interface LanguageDriver {
26
27
27
28
/**
28
- * Creates a {@link ParameterHandler} that will set the parameters of the
29
- *
29
+ * Creates a {@link ParameterHandler} that passes the actual parameters to the the JDBC statement.
30
+ *
31
+ * @see DefaultParameterHandler
30
32
* @param mappedStatement The mapped statement that is being executed
31
33
* @param parameterObject The input parameter object (can be null)
32
34
* @param boundSql The resulting SQL once the dynamic language has been executed.
@@ -35,7 +37,8 @@ public interface LanguageDriver {
35
37
ParameterHandler createParameterHandler (MappedStatement mappedStatement , Object parameterObject , BoundSql boundSql );
36
38
37
39
/**
38
- * Creates an {@link SqlSource} that will hold the statement read from a mapper xml file
40
+ * Creates an {@link SqlSource} that will hold the statement read from a mapper xml file.
41
+ * It is called during startup, when the mapped statement is read from a class or an xml file.
39
42
*
40
43
* @param configuration The MyBatis configuration
41
44
* @param script XNode parsed from a XML file
@@ -45,7 +48,8 @@ public interface LanguageDriver {
45
48
SqlSource createSqlSource (Configuration configuration , XNode script , Class <?> parameterType );
46
49
47
50
/**
48
- * Creates an {@link SqlSource} that will hold the statement read from an annotation
51
+ * Creates an {@link SqlSource} that will hold the statement read from an annotation.
52
+ * It is called during startup, when the mapped statement is read from a class or an xml file.
49
53
*
50
54
* @param configuration The MyBatis configuration
51
55
* @param script The content of the annotation
0 commit comments