01: /*
02: * Copyright 2006 The Apache Software Foundation
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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.execution;
17:
18: import java.io.Serializable;
19:
20: /**
21: * This class holds the statement and row information for every
22: * successful batch executed by iBATIS
23: *
24: * @author Jeff Butler
25: *
26: */
27: public class BatchResult implements Serializable {
28: private String sql;
29: private String statementId;
30: private int[] updateCounts;
31:
32: /**
33: *
34: */
35: public BatchResult(String statementId, String sql) {
36: super ();
37: this .statementId = statementId;
38: this .sql = sql;
39: }
40:
41: public String getSql() {
42: return sql;
43: }
44:
45: public int[] getUpdateCounts() {
46: return updateCounts;
47: }
48:
49: public void setUpdateCounts(int[] updateCounts) {
50: this .updateCounts = updateCounts;
51: }
52:
53: public String getStatementId() {
54: return statementId;
55: }
56: }
|