01: /**
02: * Sequoia: Database clustering technology.
03: * Copyright (C) 2005 Continuent, Inc.
04: * Contact: sequoia@continuent.org
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: *
18: * Initial developer(s): Emmanuel Cecchet.
19: * Contributor(s): ______________________.
20: */package org.continuent.sequoia.controller.backend.result;
21:
22: import java.io.Serializable;
23:
24: /**
25: * Definition of the result returned by an XXXExecuteUpdate query.<br>
26: * This result is an update count enriched with the generated Statement warnings
27: * inherited from <code>AbstractResult</code>
28: *
29: * @author <a href="mailto:gilles.rayrat@continuent.com">Gilles Rayrat</a>
30: */
31: public class ExecuteUpdateResult extends AbstractResult implements
32: Serializable {
33: private static final long serialVersionUID = -57478579897478732L;
34:
35: private int updateCount;
36:
37: /**
38: * Sets the update count
39: *
40: * @param uc result of the update
41: */
42: public ExecuteUpdateResult(int uc) {
43: updateCount = uc;
44: }
45:
46: /**
47: * Retrieves the update count resulting from the request execution
48: *
49: * @return update count value
50: */
51: public final int getUpdateCount() {
52: return updateCount;
53: }
54: }
|