com.darwinsys.sql
Class ResultsDecoratorSQL
java.lang.Object
com.darwinsys.sql.ResultsDecorator
com.darwinsys.sql.ResultsDecoratorSQL
public class ResultsDecoratorSQL
- extends ResultsDecorator
Print an SQL ResultSet in SQL-import format.
- Version:
- $Id: ResultsDecoratorSQL.java,v 1.14 2007/10/17 21:37:14 ian Exp $
|
Method Summary |
void |
displayTable(java.lang.String tableName,
java.sql.ResultSet rs)
Display this resultset assuming it is a
Table description. |
java.lang.String |
getName()
Print the name of this Decorator's output format |
void |
printRowCount(int rowCount)
|
int |
write(java.sql.ResultSet rs)
Write a "normal" (data-holding) ResultSet |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultsDecoratorSQL
public ResultsDecoratorSQL(java.io.PrintWriter out,
Verbosity v)
write
public int write(java.sql.ResultSet rs)
throws java.io.IOException,
java.sql.SQLException
- Write a "normal" (data-holding) ResultSet
- Specified by:
write in class ResultsDecorator
- Throws:
java.io.IOException
java.sql.SQLException
displayTable
public void displayTable(java.lang.String tableName,
java.sql.ResultSet rs)
throws java.io.IOException,
java.sql.SQLException
- Display this resultset assuming it is a
Table description.
- Specified by:
displayTable in class ResultsDecorator
- Throws:
java.io.IOException
java.sql.SQLException
printRowCount
public void printRowCount(int rowCount)
throws java.io.IOException
- Overrides:
printRowCount in class ResultsDecorator
- Throws:
java.io.IOException
getName
public java.lang.String getName()
- Description copied from class:
ResultsDecorator
- Print the name of this Decorator's output format
- Specified by:
getName in class ResultsDecorator
Copyright © 1996-2004 Ian F. Darwin. See license.html for usage license.