cds.sql
Class DisplayResult

java.lang.Object
  extended bycds.sql.DisplayResult
Direct Known Subclasses:
DisplayResultReport, DisplayResultTable, DisplayResultTSV

public abstract class DisplayResult
extends java.lang.Object

Abstract class for defining resultset output formats

Version:
1.0 June 2003 1.1 July 2003 (SJ) : ajout des methodes display(...,nbToDisplay...) et display(...msg...) 1.2 Janvier 2004 (BB) : ajout des methods pour manipuler les ResultSetBean
Author:
Marc Wenger/CDS, Sylvaine Jaehn, Benoit Baranne (Stagiaire UTBM)

Constructor Summary
DisplayResult()
          basic constructor
 
Method Summary
abstract  void display(java.io.PrintStream p, ResultSetBean rs, boolean out)
          MOD-BB 08-01-04 Affiche un ResultSetBean.
abstract  void display(java.io.PrintStream p, ResultSetBean rs, int nbToDisplay, boolean out)
          MOD-BB 08-01-04 Affiche un ResultSetBean.
abstract  void display(java.io.PrintStream p, java.sql.ResultSet rs, boolean out)
          display a result set
abstract  void display(java.io.PrintStream p, java.sql.ResultSet rs, int nbToDispay, boolean out)
          display a result set
abstract  void display(java.io.PrintStream p, java.lang.String msg, boolean out)
          display a message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayResult

public DisplayResult()
basic constructor

Method Detail

display

public abstract void display(java.io.PrintStream p,
                             ResultSetBean rs,
                             boolean out)
MOD-BB 08-01-04 Affiche un ResultSetBean.

Parameters:
p - defines a printstream
rs - resultset to display
out - if false, no output will occur

display

public abstract void display(java.io.PrintStream p,
                             ResultSetBean rs,
                             int nbToDisplay,
                             boolean out)
MOD-BB 08-01-04 Affiche un ResultSetBean.

Parameters:
p - defines a printstream
rs - resultset to display
nbToDisplay - number of lines to display
out - if false, no output will occur

display

public abstract void display(java.io.PrintStream p,
                             java.sql.ResultSet rs,
                             boolean out)
display a result set

Parameters:
p - defines a printstream
rs - resultset to display
out - if false, no output will occur

display

public abstract void display(java.io.PrintStream p,
                             java.sql.ResultSet rs,
                             int nbToDispay,
                             boolean out)
display a result set

Parameters:
p - defines a printstream
rs - resultset to display
out - if false, no output will occur

display

public abstract void display(java.io.PrintStream p,
                             java.lang.String msg,
                             boolean out)
display a message

Parameters:
p - defines a printstream
msg - message to display
out - if false, no output will occur