| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.common.jdbc.supplier.AbstractSupplier
org.kuali.common.jdbc.supplier.ComplexStringSupplier
public class ComplexStringSupplier
Supply SQL from strings that may have more than one SQL statement each
| Field Summary | |
|---|---|
| protected  BufferedReader | in | 
| protected  int | index | 
| Fields inherited from class org.kuali.common.jdbc.supplier.AbstractSupplier | 
|---|
| metaData | 
| Constructor Summary | |
|---|---|
| ComplexStringSupplier() | |
| ComplexStringSupplier(List<String> strings) | |
| Method Summary | |
|---|---|
|  void | close()Close the supplier to free any resources it may have opened | 
|  void | fillInMetaData()Fill in SQL count + overall size | 
| protected  BufferedReader | getBufferedReader(List<String> strings,
                                   int index)Extract a String from the list and open a BufferedReader that can read from it | 
| protected  SqlMetaData | getMetaData(String sql) | 
|  SqlReader | getReader() | 
|  List<String> | getSql()Return a list of SQL statements to execute. | 
|  List<String> | getStrings() | 
|  void | open()Open the supplier so it is ready to provide SQL | 
|  void | setReader(SqlReader reader) | 
|  void | setStrings(List<String> strings) | 
| Methods inherited from class org.kuali.common.jdbc.supplier.AbstractSupplier | 
|---|
| compareTo, getMetaData | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected int index
protected BufferedReader in
| Constructor Detail | 
|---|
public ComplexStringSupplier()
public ComplexStringSupplier(List<String> strings)
| Method Detail | 
|---|
public void open()
SqlSupplier
public List<String> getSql()
SqlSuppliernull when the SQL supply has been exhausted.
protected BufferedReader getBufferedReader(List<String> strings,
                                           int index)
public void close()
SqlSupplier
public void fillInMetaData()
SqlSupplier
protected SqlMetaData getMetaData(String sql)
public List<String> getStrings()
public void setStrings(List<String> strings)
public SqlReader getReader()
public void setReader(SqlReader reader)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||