butler.sql.query
Class AggregateQuery.AggregateRecordList
java.lang.Object
butler.sql.record.RecordList
butler.sql.query.AggregateQuery.AggregateRecordList
- All Implemented Interfaces:
- java.util.Collection, java.util.List
- Enclosing class:
- AggregateQuery
- public static class AggregateQuery.AggregateRecordList
- extends RecordList
| Methods inherited from class butler.sql.record.RecordList |
addFilter, getFirstRecord, getLastRecord, getQuery, getTable, parseRecordList, parseRecordList, setFilter, toXML, toXMLSimple, toXMLSimple |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.List |
equals, hashCode |
AggregateQuery.AggregateRecordList
public AggregateQuery.AggregateRecordList(JPreparedStatement stmt,
Query query)
throws java.lang.Exception
save
public void save()
throws java.lang.Exception
- Description copied from class:
RecordList
- Saves changed or new records in the database.
- Overrides:
save in class RecordList
- Throws:
java.lang.Exception
size
public int size()
- Specified by:
size in interface java.util.List- Overrides:
size in class RecordList
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface java.util.List- Overrides:
isEmpty in class RecordList
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains in interface java.util.List- Overrides:
contains in class RecordList
iterator
public java.util.Iterator iterator()
- Specified by:
iterator in interface java.util.List- Overrides:
iterator in class RecordList
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray in interface java.util.List- Overrides:
toArray in class RecordList
toArray
public java.lang.Object[] toArray(java.lang.Object[] a)
- Specified by:
toArray in interface java.util.List- Overrides:
toArray in class RecordList
add
public boolean add(java.lang.Object o)
- Specified by:
add in interface java.util.List- Overrides:
add in class RecordList
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove in interface java.util.List- Overrides:
remove in class RecordList
containsAll
public boolean containsAll(java.util.Collection c)
- Specified by:
containsAll in interface java.util.List- Overrides:
containsAll in class RecordList
addAll
public boolean addAll(java.util.Collection c)
- Specified by:
addAll in interface java.util.List- Overrides:
addAll in class RecordList
addAll
public boolean addAll(int index,
java.util.Collection c)
- Specified by:
addAll in interface java.util.List- Overrides:
addAll in class RecordList
removeAll
public boolean removeAll(java.util.Collection c)
- Specified by:
removeAll in interface java.util.List- Overrides:
removeAll in class RecordList
retainAll
public boolean retainAll(java.util.Collection c)
- Specified by:
retainAll in interface java.util.List- Overrides:
retainAll in class RecordList
clear
public void clear()
- Specified by:
clear in interface java.util.List- Overrides:
clear in class RecordList
get
public java.lang.Object get(int index)
- Specified by:
get in interface java.util.List- Overrides:
get in class RecordList
set
public java.lang.Object set(int index,
java.lang.Object element)
- Specified by:
set in interface java.util.List- Overrides:
set in class RecordList
add
public void add(int index,
java.lang.Object element)
- Specified by:
add in interface java.util.List- Overrides:
add in class RecordList
remove
public java.lang.Object remove(int index)
- Specified by:
remove in interface java.util.List- Overrides:
remove in class RecordList
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf in interface java.util.List- Overrides:
indexOf in class RecordList
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf in interface java.util.List- Overrides:
lastIndexOf in class RecordList
listIterator
public java.util.ListIterator listIterator()
- Specified by:
listIterator in interface java.util.List- Overrides:
listIterator in class RecordList
listIterator
public java.util.ListIterator listIterator(int index)
- Specified by:
listIterator in interface java.util.List- Overrides:
listIterator in class RecordList
subList
public java.util.List subList(int fromIndex,
int toIndex)
- Specified by:
subList in interface java.util.List- Overrides:
subList in class RecordList
toXML
public void toXML(org.xml.sax.ContentHandler handler)
throws java.lang.Exception
- Overrides:
toXML in class RecordList
- Throws:
java.lang.Exception
calculate
public java.lang.Double calculate(NumericAggregateFunction function,
Column col)
throws java.lang.Exception
- Overrides:
calculate in class RecordList
- Throws:
java.lang.Exception
calculate
public java.lang.Comparable calculate(CompareAggregateFunction function,
Column col)
throws java.lang.Exception
- Overrides:
calculate in class RecordList
- Throws:
java.lang.Exception
sum
public double sum(Column col)
throws java.lang.Exception
- Overrides:
sum in class RecordList
- Throws:
java.lang.Exception
max
public java.lang.Comparable max(Column col)
throws java.lang.Exception
- Overrides:
max in class RecordList
- Throws:
java.lang.Exception
sort
public void sort(RecordComparator comparator)
- Overrides:
sort in class RecordList