com.darwinsys.sql
Class ResultsDecoratorText
java.lang.Object
com.darwinsys.sql.ResultsDecorator
com.darwinsys.sql.ResultsDecoratorText
public class ResultsDecoratorText
- extends ResultsDecorator
Print a ResultSet in plain text.
- Version:
- $Id: ResultsDecoratorText.java,v 1.12 2007/01/17 21:57:40 ian Exp $
Method Summary |
java.lang.String |
getName()
Print the name of this Decorator's output format |
void |
printRowCount(int rowCount)
|
int |
write(java.sql.ResultSet rs)
Print the contents of a ResultSet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultsDecoratorText
public ResultsDecoratorText(java.io.PrintWriter out,
Verbosity v)
write
public int write(java.sql.ResultSet rs)
throws java.io.IOException,
java.sql.SQLException
- Description copied from class:
ResultsDecorator
- Print the contents of a ResultSet
- Specified by:
write
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.