001    /**
002     * Copyright 2010-2013 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.common.jdbc;
017    
018    /**
019     * @deprecated
020     */
021    @Deprecated
022    public class ExecutionResult {
023    
024            long updateCount;
025            long startTimeMillis;
026            long stopTimeMillis;
027            long elapsed;
028            long statementsExecuted;
029    
030            public ExecutionResult() {
031                    this(0, 0, 0, 0);
032            }
033    
034            public ExecutionResult(long updateCount, long startTimeMillis, long stopTimeMillis, long statementsExecuted) {
035                    super();
036                    this.updateCount = updateCount;
037                    this.startTimeMillis = startTimeMillis;
038                    this.stopTimeMillis = stopTimeMillis;
039                    this.statementsExecuted = statementsExecuted;
040                    this.elapsed = stopTimeMillis - startTimeMillis;
041            }
042    
043            public long getUpdateCount() {
044                    return updateCount;
045            }
046    
047            public void setUpdateCount(long updateCount) {
048                    this.updateCount = updateCount;
049            }
050    
051            public long getStartTimeMillis() {
052                    return startTimeMillis;
053            }
054    
055            public void setStartTimeMillis(long startTimeMillis) {
056                    this.startTimeMillis = startTimeMillis;
057            }
058    
059            public long getStopTimeMillis() {
060                    return stopTimeMillis;
061            }
062    
063            public void setStopTimeMillis(long stopTimeMillis) {
064                    this.stopTimeMillis = stopTimeMillis;
065            }
066    
067            public long getElapsed() {
068                    return elapsed;
069            }
070    
071            public void setElapsed(long elapsed) {
072                    this.elapsed = elapsed;
073            }
074    
075            public long getStatementsExecuted() {
076                    return statementsExecuted;
077            }
078    
079            public void setStatementsExecuted(long statementsExecuted) {
080                    this.statementsExecuted = statementsExecuted;
081            }
082    
083    }