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.listener;
017    
018    /**
019     * @deprecated
020     */
021    @Deprecated
022    public class SqlEvent {
023    
024            private static final int DEFAULT_UPDATE_COUNT = -1;
025    
026            String sql;
027            long startTimeMillis;
028            long stopTimeMillis;
029            int updateCount = DEFAULT_UPDATE_COUNT;
030    
031            public SqlEvent() {
032                    this(null, 0);
033            }
034    
035            public SqlEvent(String sql, long startTimeMillis) {
036                    this(sql, DEFAULT_UPDATE_COUNT, startTimeMillis, 0);
037            }
038    
039            public SqlEvent(String sql, int updateCount, long startTimeMillis, long stopTimeMillis) {
040                    super();
041                    this.sql = sql;
042                    this.updateCount = updateCount;
043                    this.startTimeMillis = startTimeMillis;
044                    this.stopTimeMillis = stopTimeMillis;
045            }
046    
047            public String getSql() {
048                    return sql;
049            }
050    
051            public void setSql(String sql) {
052                    this.sql = sql;
053            }
054    
055            public long getStartTimeMillis() {
056                    return startTimeMillis;
057            }
058    
059            public void setStartTimeMillis(long startTimeMillis) {
060                    this.startTimeMillis = startTimeMillis;
061            }
062    
063            public long getStopTimeMillis() {
064                    return stopTimeMillis;
065            }
066    
067            public void setStopTimeMillis(long stopTimeMillis) {
068                    this.stopTimeMillis = stopTimeMillis;
069            }
070    
071            public int getUpdateCount() {
072                    return updateCount;
073            }
074    
075            public void setUpdateCount(int updateCount) {
076                    this.updateCount = updateCount;
077            }
078    
079    }