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 SqlMetaData implements Comparable<SqlMetaData> {
023    
024            // The number of individual sql statements
025            long count;
026    
027            // The collective size of the individual sql statements
028            long size;
029    
030            public SqlMetaData() {
031                    this(0, 0);
032            }
033    
034            public SqlMetaData(long count, long size) {
035                    super();
036                    this.count = count;
037                    this.size = size;
038            }
039    
040            @Override
041            public int compareTo(SqlMetaData other) {
042                    Long size1 = this.size;
043                    Long size2 = other.getSize();
044                    return size1.compareTo(size2);
045            }
046    
047            public long getCount() {
048                    return count;
049            }
050    
051            public void setCount(long count) {
052                    this.count = count;
053            }
054    
055            public long getSize() {
056                    return size;
057            }
058    
059            public void setSize(long size) {
060                    this.size = size;
061            }
062    
063    }