|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.torque.task.TorqueDataDumpTask.TableTool
A nasty do-it-all tool class. It serves as:
Field Summary | |
private int |
curIndex
current index |
private com.workingdogs.village.Record |
curRec
current record |
private boolean |
isEmpty
is empty |
private com.workingdogs.village.QueryDataSet |
qds
querydataset |
Constructor Summary | |
|
TorqueDataDumpTask.TableTool()
Constructor for the TableTool object |
protected |
TorqueDataDumpTask.TableTool(com.workingdogs.village.QueryDataSet qds)
Constructor for the TableTool object |
Method Summary | |
TorqueDataDumpTask.TableTool |
fetch(java.lang.String tableName)
Fetches an Iterator for the data in the named table. |
java.lang.String |
get(java.lang.String columnName)
Returns the value for the column |
boolean |
hasNext()
check if there are more records in the QueryDataSet |
java.lang.Object |
next()
load the next record from the QueryDataSet |
void |
remove()
unsupported! always throws Exception |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private com.workingdogs.village.QueryDataSet qds
private boolean isEmpty
private int curIndex
private com.workingdogs.village.Record curRec
Constructor Detail |
public TorqueDataDumpTask.TableTool()
protected TorqueDataDumpTask.TableTool(com.workingdogs.village.QueryDataSet qds) throws java.lang.Exception
qds
- Description of Parameter
java.lang.Exception
- Problem using database record set cursor.Method Detail |
public TorqueDataDumpTask.TableTool fetch(java.lang.String tableName) throws java.lang.Exception
Iterator
for the data in the named table.
tableName
- Description of Parameter
Iterator
for the fetched data.
java.lang.Exception
- Problem creating connection or executing query.public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next() throws java.util.NoSuchElementException
next
in interface java.util.Iterator
java.util.NoSuchElementException
- Description of Exceptionpublic java.lang.String get(java.lang.String columnName)
columnName
- name of the column
public void remove() throws java.lang.UnsupportedOperationException
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
- unsupported
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |