View Javadoc

1   /**
2    * Copyright 2010-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community 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    * http://www.opensource.org/licenses/ecl2.php
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 org.kuali.common.jdbc;
17  
18  public class ExecutionResult {
19  
20  	long updateCount;
21  	long startTimeMillis;
22  	long stopTimeMillis;
23  	long elapsed;
24  
25  	public ExecutionResult() {
26  		this(0, 0, 0);
27  	}
28  
29  	public ExecutionResult(long updateCount, long startTimeMillis, long stopTimeMillis) {
30  		super();
31  		this.updateCount = updateCount;
32  		this.startTimeMillis = startTimeMillis;
33  		this.stopTimeMillis = stopTimeMillis;
34  		this.elapsed = stopTimeMillis - startTimeMillis;
35  	}
36  
37  	public long getUpdateCount() {
38  		return updateCount;
39  	}
40  
41  	public void setUpdateCount(long updateCount) {
42  		this.updateCount = updateCount;
43  	}
44  
45  	public long getStartTimeMillis() {
46  		return startTimeMillis;
47  	}
48  
49  	public void setStartTimeMillis(long startTimeMillis) {
50  		this.startTimeMillis = startTimeMillis;
51  	}
52  
53  	public long getStopTimeMillis() {
54  		return stopTimeMillis;
55  	}
56  
57  	public void setStopTimeMillis(long stopTimeMillis) {
58  		this.stopTimeMillis = stopTimeMillis;
59  	}
60  
61  	public long getElapsed() {
62  		return elapsed;
63  	}
64  
65  	public void setElapsed(long elapsed) {
66  		this.elapsed = elapsed;
67  	}
68  
69  }