com.jaeksoft.pojodbc
Class PartialList<T>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<T>
          extended by com.jaeksoft.pojodbc.PartialList<T>
All Implemented Interfaces:
java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>

public abstract class PartialList<T>
extends java.util.AbstractList<T>


Field Summary
protected  int currentStart
           
protected  java.util.List<T> partialList
           
protected  int rows
           
protected  int size
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
PartialList(int rows)
           
 
Method Summary
 T get(int index)
           
protected abstract  Transaction getDatabaseTransaction()
           
protected abstract  Query getQuery(Transaction transaction)
           
protected abstract  java.util.List<T> getResultList(Query query)
           
 int size()
           
 java.lang.String toString()
           
protected  void update(int start)
           
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Field Detail

size

protected int size

partialList

protected java.util.List<T> partialList

currentStart

protected int currentStart

rows

protected int rows
Constructor Detail

PartialList

public PartialList(int rows)
Method Detail

get

public T get(int index)
Specified by:
get in interface java.util.List<T>
Specified by:
get in class java.util.AbstractList<T>

getQuery

protected abstract Query getQuery(Transaction transaction)
                           throws java.sql.SQLException
Throws:
java.sql.SQLException

getDatabaseTransaction

protected abstract Transaction getDatabaseTransaction()
                                               throws java.sql.SQLException
Throws:
java.sql.SQLException

getResultList

protected abstract java.util.List<T> getResultList(Query query)
                                            throws java.lang.Exception
Throws:
java.lang.Exception

update

protected void update(int start)

size

public int size()
Specified by:
size in interface java.util.Collection<T>
Specified by:
size in interface java.util.List<T>
Specified by:
size in class java.util.AbstractCollection<T>

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractCollection<T>