cds.sql
Class DisplayResultReport

java.lang.Object
  extended bycds.sql.DisplayResult
      extended bycds.sql.DisplayResultReport

public class DisplayResultReport
extends DisplayResult

Display a result set as a report. A report output has the following format: column_name: value
... A blank line separates an object from another one

Version:
1.0 May 2003 1.1 July 2003 (SJ) : ajout des methodes display(...,nbToDisplay...) et display(...msg...)
Author:
Marc Wenger/CDS, Sylvaine Jaehn

Constructor Summary
DisplayResultReport()
           
 
Method Summary
 void display(java.io.PrintStream p, ResultSetBean rs, boolean out)
          MOD-BB 08-01-04 Ajout de cette methode.
 void display(java.io.PrintStream p, ResultSetBean rs, int nbToDisplay, boolean out)
          MOD-BB 08-01-04 Ajout de cette methode.
 void display(java.io.PrintStream prt, java.sql.ResultSet result, boolean out)
          Display the result set in the report format
 void display(java.io.PrintStream prt, java.sql.ResultSet result, int nbToDisplay, boolean out)
          Display the result set in the report format
 void display(java.io.PrintStream prt, java.lang.String msg, boolean out)
          Affichage d'un message sous forme d'une chaine de caracteres
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayResultReport

public DisplayResultReport()
Method Detail

display

public void display(java.io.PrintStream prt,
                    java.sql.ResultSet result,
                    boolean out)
Display the result set in the report format

Specified by:
display in class DisplayResult
Parameters:
prt - print stream
result - Result Set to display
out - false if the output should not occur

display

public void display(java.io.PrintStream prt,
                    java.sql.ResultSet result,
                    int nbToDisplay,
                    boolean out)
Display the result set in the report format

Specified by:
display in class DisplayResult
Parameters:
prt - print stream
result - Result Set to display
nbToDisplay - number of lines to display
out - false if the output should not occur

display

public void display(java.io.PrintStream prt,
                    java.lang.String msg,
                    boolean out)
Affichage d'un message sous forme d'une chaine de caracteres

Specified by:
display in class DisplayResult
Parameters:
prt - print stream
msg - message to display
out - false if the output should not occur

display

public void display(java.io.PrintStream p,
                    ResultSetBean rs,
                    boolean out)
MOD-BB 08-01-04 Ajout de cette methode. Display the result set in the report format

Specified by:
display in class DisplayResult
Parameters:
p - print stream
rs - ResultSetBean to display
out - false if the output should not occur

display

public void display(java.io.PrintStream p,
                    ResultSetBean rs,
                    int nbToDisplay,
                    boolean out)
MOD-BB 08-01-04 Ajout de cette methode. Display the result set in the report format

Specified by:
display in class DisplayResult
Parameters:
p - print stream
rs - ResultSetBean to display
nbToDisplay - number of lines to display
out - false if the output should not occur