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.threads;
017    
018    import java.util.ArrayList;
019    import java.util.List;
020    
021    import org.kuali.common.jdbc.supplier.SqlSupplier;
022    
023    /**
024     * @deprecated
025     */
026    @Deprecated
027    public class SqlBucket implements Comparable<SqlBucket> {
028    
029            long count;
030            long size;
031            List<SqlSupplier> suppliers = new ArrayList<SqlSupplier>();
032    
033            @Override
034            public int compareTo(SqlBucket other) {
035                    Long size1 = this.size;
036                    Long size2 = other.getSize();
037                    return size1.compareTo(size2);
038            }
039    
040            public long getCount() {
041                    return count;
042            }
043    
044            public void setCount(long count) {
045                    this.count = count;
046            }
047    
048            public long getSize() {
049                    return size;
050            }
051    
052            public void setSize(long size) {
053                    this.size = size;
054            }
055    
056            public List<SqlSupplier> getSuppliers() {
057                    return suppliers;
058            }
059    
060            public void setSuppliers(List<SqlSupplier> suppliers) {
061                    this.suppliers = suppliers;
062            }
063    
064    }