1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.executor.statement;
17
18 import java.sql.Connection;
19 import java.sql.SQLException;
20 import java.sql.Statement;
21 import java.util.List;
22
23 import org.apache.ibatis.executor.parameter.ParameterHandler;
24 import org.apache.ibatis.mapping.BoundSql;
25 import org.apache.ibatis.session.ResultHandler;
26
27
28
29
30 public interface StatementHandler {
31
32 Statement prepare(Connection connection)
33 throws SQLException;
34
35 void parameterize(Statement statement)
36 throws SQLException;
37
38 void batch(Statement statement)
39 throws SQLException;
40
41 int update(Statement statement)
42 throws SQLException;
43
44 <E> List<E> query(Statement statement, ResultHandler resultHandler)
45 throws SQLException;
46
47 BoundSql getBoundSql();
48
49 ParameterHandler getParameterHandler();
50
51 }