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