uk.ac.man.documentparser.input
Class DatabaseListIterator

java.lang.Object
  extended by uk.ac.man.documentparser.input.DatabaseListIterator
All Implemented Interfaces:
java.lang.Iterable<Document>, java.util.Iterator<Document>, DocumentIterator

public class DatabaseListIterator
extends java.lang.Object
implements DocumentIterator


Field Summary
private  java.sql.Connection conn
           
private  boolean full
           
private  boolean hasNext
           
private  java.util.List<java.lang.String> id_exts
           
private  int id_exts_counter
           
private  MyConnection myConn
           
private  java.sql.ResultSet rs
           
private  java.sql.Statement stmt
           
private  java.lang.String table
           
 
Constructor Summary
DatabaseListIterator(MyConnection myConn, java.lang.String table, java.util.List<java.lang.String> id_exts, boolean full)
           
 
Method Summary
private  Author[] convAuthors(java.lang.String string)
           
private  ExternalID.Source convSource(java.lang.String source)
           
private  Document.Text_raw_type convTextRawType(java.lang.String type)
           
private  Document.Type convType(java.lang.String type)
           
private  void getDoc()
           
 boolean hasNext()
           
 java.util.Iterator<Document> iterator()
           
 Document next()
           
 void remove()
           
 void skip()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rs

private java.sql.ResultSet rs

hasNext

private boolean hasNext

full

private boolean full

stmt

private java.sql.Statement stmt

myConn

private MyConnection myConn

conn

private java.sql.Connection conn

table

private java.lang.String table

id_exts_counter

private int id_exts_counter

id_exts

private java.util.List<java.lang.String> id_exts
Constructor Detail

DatabaseListIterator

public DatabaseListIterator(MyConnection myConn,
                            java.lang.String table,
                            java.util.List<java.lang.String> id_exts,
                            boolean full)
Method Detail

getDoc

private void getDoc()

skip

public void skip()
Specified by:
skip in interface DocumentIterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<Document>

next

public Document next()
Specified by:
next in interface java.util.Iterator<Document>

convSource

private ExternalID.Source convSource(java.lang.String source)

convAuthors

private Author[] convAuthors(java.lang.String string)

convType

private Document.Type convType(java.lang.String type)

convTextRawType

private Document.Text_raw_type convTextRawType(java.lang.String type)

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<Document>

iterator

public java.util.Iterator<Document> iterator()
Specified by:
iterator in interface java.lang.Iterable<Document>