org.kuali.common.jdbc.suppliers
Class SimpleStringSupplier

java.lang.Object
  extended by org.kuali.common.jdbc.suppliers.AbstractSupplier
      extended by org.kuali.common.jdbc.suppliers.SimpleStringSupplier
All Implemented Interfaces:
Comparable<SqlSupplier>, SqlSupplier

public final class SimpleStringSupplier
extends AbstractSupplier

Supply SQL from strings that have one SQL statement each


Constructor Summary
SimpleStringSupplier(List<String> strings)
           
SimpleStringSupplier(String sql)
           
 
Method Summary
 void close()
          Close the supplier to free any resources it may have opened
 SqlMetaData getMetaData()
          Return SQL count and overall size
 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
 
Methods inherited from class org.kuali.common.jdbc.suppliers.AbstractSupplier
compareTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleStringSupplier

public SimpleStringSupplier(String sql)

SimpleStringSupplier

public SimpleStringSupplier(List<String> strings)
Method Detail

open

public void open()
Description copied from interface: SqlSupplier
Open the supplier so it is ready to provide SQL


getSql

public List<String> getSql()
Description copied from interface: SqlSupplier
Return a list of SQL statements to execute. Returns null when the SQL supply has been exhausted.


close

public void close()
Description copied from interface: SqlSupplier
Close the supplier to free any resources it may have opened


getMetaData

public SqlMetaData getMetaData()
Description copied from interface: SqlSupplier
Return SQL count and overall size


getStrings

public List<String> getStrings()


Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.