org.apache.turbine.torque
Class TorqueDataDumpTask.TableTool
java.lang.Object
|
+--org.apache.turbine.torque.TorqueDataDumpTask.TableTool
- All Implemented Interfaces:
- java.util.Iterator
- Enclosing class:
- TorqueDataDumpTask
- public class TorqueDataDumpTask.TableTool
- extends java.lang.Object
- implements java.util.Iterator
A nasty do-it-all tool class. It serves as:
- context tool to fetch a table iterator
- the abovenamed iterator which iterates over the table
- getter for the table fields
- Author:
- fedor
Field Summary |
private java.sql.Connection |
conn
|
private boolean |
isEmpty
|
private java.sql.ResultSet |
rs
|
Method Summary |
TorqueDataDumpTask.TableTool |
fetch(java.lang.String tableName)
Description of the Method |
java.lang.String |
get(java.lang.String columnName)
Description of the Method |
boolean |
hasNext()
Description of the Method |
java.lang.Object |
next()
Description of the Method |
void |
remove()
Description of the Method |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
conn
private java.sql.Connection conn
rs
private java.sql.ResultSet rs
isEmpty
private boolean isEmpty
TorqueDataDumpTask.TableTool
public TorqueDataDumpTask.TableTool(java.sql.Connection conn)
- Constructor for the TableTool object
- Parameters:
conn
- Description of Parameter
TorqueDataDumpTask.TableTool
public TorqueDataDumpTask.TableTool(java.sql.ResultSet rs)
throws java.sql.SQLException
- Constructor for the TableTool object
- Parameters:
rs
- Description of Parameter- Throws:
java.sql.SQLException
- Description of Exception
fetch
public TorqueDataDumpTask.TableTool fetch(java.lang.String tableName)
throws java.sql.SQLException
- Description of the Method
- Parameters:
tableName
- Description of Parameter- Returns:
- Description of the Returned Value
- Throws:
java.sql.SQLException
- Description of Exception
hasNext
public boolean hasNext()
- Description of the Method
- Specified by:
hasNext
in interface java.util.Iterator
- Returns:
- Description of the Returned Value
next
public java.lang.Object next()
throws java.util.NoSuchElementException
- Description of the Method
- Specified by:
next
in interface java.util.Iterator
- Returns:
- Description of the Returned Value
- Throws:
java.util.NoSuchElementException
- Description of Exception
get
public java.lang.String get(java.lang.String columnName)
- Description of the Method
- Parameters:
columnName
- Description of Parameter- Returns:
- Description of the Returned Value
remove
public void remove()
throws java.lang.UnsupportedOperationException
- Description of the Method
- Specified by:
remove
in interface java.util.Iterator
- Throws:
java.lang.UnsupportedOperationException
- Description of Exception
Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.