FileDocCategorySizeDatePackage
ResultsDecorator.javaAPI DocExample884Thu Mar 25 20:39:34 GMT 2004None

ResultsDecorator

public abstract class ResultsDecorator extends Object
Base class for a series of ResultSet printers.
version
$Id: ResultsDecorator.java,v 1.2 2004/03/26 02:39:33 ian Exp $

Fields Summary
ResultsDecoratorPrinter
parent
Constructors Summary
ResultsDecorator(ResultsDecoratorPrinter wr)

		this.parent = wr;
	
Methods Summary
abstract java.lang.StringgetName()
Print the name of this Decorator's output format

voidprint(java.lang.String lineSeg)

		parent.print(lineSeg);
	
voidprintln(java.lang.String line)

		parent.println(line);
	
voidprintln()

		parent.println();
	
abstract voidwrite(java.sql.ResultSet rs)
Print the contents of a ResultSet

abstract voidwrite(int rowCount)
Print the results of an operation as a Count