1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package com.ibatis.sqlmap.engine.mapping.sql.raw;
17
18 import com.ibatis.sqlmap.engine.mapping.parameter.ParameterMap;
19 import com.ibatis.sqlmap.engine.mapping.result.ResultMap;
20 import com.ibatis.sqlmap.engine.mapping.sql.Sql;
21 import com.ibatis.sqlmap.engine.scope.StatementScope;
22
23
24
25
26 public class RawSql implements Sql {
27
28
29 private String sql;
30
31
32
33
34
35
36
37 public RawSql(String sql) {
38 this.sql = sql;
39 }
40
41 public String getSql(StatementScope statementScope, Object parameterObject) {
42 return sql;
43 }
44
45 public ParameterMap getParameterMap(StatementScope statementScope, Object parameterObject) {
46 throw new RuntimeException("Method not implemented on RawSql.");
47 }
48
49 public ResultMap getResultMap(StatementScope statementScope, Object parameterObject) {
50 throw new RuntimeException("Method not implemented on RawSql.");
51 }
52
53 public void cleanup(StatementScope statementScope) {
54 throw new RuntimeException("Method not implemented on RawSql.");
55 }
56 }