|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.afcs.warts.db.DataSetLoader
The DataSetLoader class allows the loading of the data
used to create a DataSet
instance to be trivially invoked in a
new thread using classes from the concurrent programming library.
LICENSE: This code is released to the public domain and may be used for any purpose whatsoever without permission or acknowledgment.
Constructor Summary | |
DataSetLoader(TableDescription tableDescription)
Initialise a new instance to load data from the specified table. |
|
DataSetLoader(TableDescription tableDescription,
int maxRowsToLoad)
Initialise a new instance to load up to the specified maximum number of rows from the specified table. |
Method Summary | |
DataSet |
getDataSet()
Returns the dataset that was loaded when run() was called. |
void |
run()
Loads the dataset for the table specified at initialisation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataSetLoader(TableDescription tableDescription)
tableDescription
- The table to load data from.
java.lang.NullPointerException
- If tableDescription is null.public DataSetLoader(TableDescription tableDescription, int maxRowsToLoad)
tableDescription
- The table to load data from.maxRowsToLoad
- The maximum number of rows to load.
java.lang.NullPointerException
- If tableDescription is null.Method Detail |
public DataSet getDataSet()
run()
was called. If this
is called before run()
is called, it will return null.
run()
was
called.public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |