Ableverse™
TOB 6.0

av.tob.rdb
Class SQLResultArrayList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Object[]>
              extended by av.tob.rdb.SQLResultArrayList
All Implemented Interfaces:
SQLResultList, Serializable, Cloneable, Iterable<Object[]>, Collection<Object[]>, List<Object[]>, RandomAccess

public class SQLResultArrayList
extends ArrayList<Object[]>
implements SQLResultList

An ArrayList based SQLResultList implementation used to return custom query results by SQLQuerier.query(long, long, String).

Author:
Compl
See Also:
Serialized Form

Field Summary
 String[] columnNames
          Result column names.
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SQLResultArrayList(int initialCapacity, String[] columnNames)
          Construct an instance.
SQLResultArrayList(String[] columnNames)
          Construct an instance.
 
Method Summary
 String[] getColumnNames()
          Obtain the result column names.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Field Detail

columnNames

public final String[] columnNames
Result column names.

Constructor Detail

SQLResultArrayList

public SQLResultArrayList(String[] columnNames)
Construct an instance.

Parameters:
columnNames - result column names

SQLResultArrayList

public SQLResultArrayList(int initialCapacity,
                          String[] columnNames)
Construct an instance.

Parameters:
initialCapacity - initial capacity
columnNames - result column names
See Also:
ArrayList.ArrayList(int)
Method Detail

getColumnNames

public String[] getColumnNames()
Obtain the result column names.

Specified by:
getColumnNames in interface SQLResultList
Returns:
result column names

Ableverse™
TOB 6.0

Copyright© 2006 Ableverse Platform. All rights reserved.