• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mybatis / ibatis-2 / 730

28 Dec 2025 10:16PM UTC coverage: 65.615% (+0.5%) from 65.146%
730

push

github

web-flow
Update README.md

1602 of 2802 branches covered (57.17%)

5053 of 7701 relevant lines covered (65.61%)

0.66 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

57.14
/src/main/java/com/ibatis/sqlmap/engine/mapping/sql/raw/RawSql.java
1
/*
2
 * Copyright 2004-2025 the original author or authors.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *    https://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
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
 * A non-executable SQL container simply for communicating raw SQL around the framework.
25
 */
26
public class RawSql implements Sql {
27

28
  /** The sql. */
29
  private String sql;
30

31
  /**
32
   * Instantiates a new raw sql.
33
   *
34
   * @param sql
35
   *          the sql
36
   */
37
  public RawSql(String sql) {
1✔
38
    this.sql = sql;
1✔
39
  }
1✔
40

41
  @Override
42
  public String getSql(StatementScope statementScope, Object parameterObject) {
43
    return sql;
1✔
44
  }
45

46
  @Override
47
  public ParameterMap getParameterMap(StatementScope statementScope, Object parameterObject) {
48
    throw new RuntimeException("Method not implemented on RawSql.");
×
49
  }
50

51
  @Override
52
  public ResultMap getResultMap(StatementScope statementScope, Object parameterObject) {
53
    throw new RuntimeException("Method not implemented on RawSql.");
×
54
  }
55

56
  @Override
57
  public void cleanup(StatementScope statementScope) {
58
    throw new RuntimeException("Method not implemented on RawSql.");
×
59
  }
60
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc