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

mybatis / ibatis-2 / 678

27 Dec 2025 01:13AM UTC coverage: 65.584% (+0.05%) from 65.532%
678

push

github

hazendaz
Merge remote-tracking branch 'upstream/master' into support-javax

1606 of 2810 branches covered (57.15%)

167 of 305 new or added lines in 90 files covered. (54.75%)

6 existing lines in 4 files now uncovered.

5067 of 7726 relevant lines covered (65.58%)

0.66 hits per line

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

50.0
/src/main/java/com/ibatis/sqlmap/engine/mapping/statement/ProcedureStatement.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.statement;
17

18
import com.ibatis.sqlmap.engine.scope.StatementScope;
19

20
import java.sql.Connection;
21
import java.sql.SQLException;
22

23
/**
24
 * The Class ProcedureStatement.
25
 */
26
public class ProcedureStatement extends MappedStatement {
1✔
27

28
  @Override
29
  protected void postProcessParameterObject(StatementScope statementScope, Object parameterObject,
30
      Object[] parameters) {
31
    statementScope.getParameterMap().refreshParameterObjectValues(statementScope, parameterObject, parameters);
1✔
32
  }
1✔
33

34
  @Override
35
  protected int sqlExecuteUpdate(StatementScope statementScope, Connection conn, String sqlString, Object[] parameters)
36
      throws SQLException {
37
    if (statementScope.getSession().isInBatch()) {
×
38
      getSqlExecutor().addBatch(statementScope, conn, sqlString, parameters);
×
39
      return 0;
×
40
    }
NEW
41
    return getSqlExecutor().executeUpdateProcedure(statementScope, conn, sqlString.trim(), parameters);
×
42
  }
43

44
  @Override
45
  protected void sqlExecuteQuery(StatementScope statementScope, Connection conn, String sqlString, Object[] parameters,
46
      int skipResults, int maxResults, RowHandlerCallback callback) throws SQLException {
47
    getSqlExecutor().executeQueryProcedure(statementScope, conn, sqlString.trim(), parameters, skipResults, maxResults,
1✔
48
        callback);
49
  }
1✔
50

51
  @Override
52
  public StatementType getStatementType() {
53
    return StatementType.PROCEDURE;
×
54
  }
55
}
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

© 2026 Coveralls, Inc